Skip to content

thanhdat21293/Arrowcms-document

Repository files navigation

Hướng dẫn làm hoàn chỉnh 1 trang web sử dụng ArrowCMS

Xong phần tạo blog, page, categories, submit form, Send email.

Hướng dẫn làm hoàn chỉnh 1 trang web shop sử dụng ArrowCMS

Tải Eshop Link

Thêm theme Eshop vào ArrowCMS. Hướng dẫn: add new theme

Tạo folders/files cần thiết cho frontend shop

Trong folder /features/products/

.
└── frontend
    ├── controllers
        └──product.js
    └── route.js

Code ban đầu cho file route.js

'use strict';

module.exports = function (component) {
    let comp = component.controllers.frontend;

    return {

        //Route o day


    }
};

Code ban đầu cho file product.js

'use strict';

const promise = require('arrowjs').Promise;

module.exports = function (controller, component, application) {

    let redis = application.redisClient;
    let adminPrefix = application.getConfig('admin_prefix') || 'admin';
    let redisPrefix = application.getConfig('redis_prefix') || 'arrowCMS_';
    let itemOfPage = application.getConfig('pagination').numberItem || 10;
    
    //Controllers xử lý ở đây
    
};

Trang index: Features Items, Product tab theo categories, Recommended items

Bài anh Cường giao:

Thêm options cho phần language ở Ckeditor nhé

Mình đã thêm được

Gợi ý: ở trong folder: /themes/backend/

language

Highlight code ở frontend

Vì thiếu 1 số file css, js nên chưa hiển thị đẹp

Các bạn vào đây để lấy các file css, js về.

Sau khi hoàn thành:

abc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors