cmsgears/template-community 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cmsgears/template-community

Composer 安装命令:

composer create-project cmsgears/template-community

包简介

The community template for community module having default theme set to community.

README 文档

README

Project - CMSGears (https://www.cmsgears.org)

Template - Community

License - GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html)

Description - The community template requires below listed modules, plugins, themes and widgets freely provided by CMSGears.

Modules

  1. Core Module to manage site users, galleries, newsletters, roles and permissions.
  2. Forms Module to accept forms in both ajax and regular way.
  3. CMS Module to manage page, post, blocks, menus, sidebars and widgets.
  4. Community Module to manage groups, group members, group messages, friends.

Plugins

  1. File Manager Plugin provide default component to accept uploaded files and File Uploader Widget to uploads files.
  2. Social Meta Plugin provides options to customise pages and posts on facebook and twitter wall.

Widgets

  1. CLEditor Widget can be used to edit content using CLEditor WYSIWYG editor.
  2. Block Widget can be used to form pages using Blocks.
  3. Nav Widget can be used to form navigation menus.
  4. Login Widget can be used to login or register on site using Ajax.
  5. Gallery Widget can be used to show Image Galleries.
  6. Newsletter Widget can be used to allow site users to register for news and updates from site.
  7. Form Widget can be used to display forms stored in database using yii way.
  8. Ajax Form Widget can be used to display forms stored in database. These can be submitted using Ajax.
  9. Blog Widget can be used to show blog posts.

Themes

  1. Admin Theme provide layouts to manage Core, Forms and CMS modules. It also provide options to configure modules and plugins.
  2. Community Theme for frontend. It provide layouts and views for Core, Forms and CMS modules.

Template Details

The Community Template is a group of directories and configuration files used to manage the backend and frontend applications.

It also provide DB configuration having required test data. The uploads directory is uploaded by default files required for demonstration purpose.

Template Demo

  1. Frontend - https://demo.cmsgears.com/templates/community (demouser@cmsgears.com, test#123)
  2. Admin - https://demo.cmsgears.com/templates/community/admin (demomaster@cmsgears.com, test#123)

Template Installation

The Community Template can be installed via composer using the below mentioned command. To install composer, please refer to their official site https://getcomposer.org.

We can install release and pre-release i.e. alpha, beta versions using composer as mentioned below.

// Release Versions

php composer.phar create-project --prefer-dist --stability=stable cmsgears/template-community cmgdemocommunity

or

composer create-project --prefer-dist --stability=stable cmsgears/template-community cmgdemocommunity

We can also use below mentioned commands to access the pre release code

// Pre-release Versions

php composer.phar create-project --prefer-dist --stability=<alpha or beta or RC> cmsgears/template-community cmgdemocommunity

or

composer create-project --prefer-dist --stability=<alpha or beta or RC> cmsgears/template-community cmgdemocommunity

We can also install the template for latest code by cloning Community Template for the pre-release branch i.e. alpha, beta. In this case, we need to install composer.json file to initialise vendor directory.

Server Details

  1. Apache - If we are using Apache web server, we need to run either of the above mentioned command under Apache web root directory. More details can be found at http://www.cmsgears.org. The modules rewrite and headers must be enabled for apache.

Template Configuration - New

  1. Create the database, database user and update both the environments config - environments/dev/common/config/config-env.php, environments/prod/common/config/config-env.php. The default database and database user are cmgdemobasic.
  2. To trigger real-time mails in production environment, remove the config param 'useFileTransport' from the environments/prod/common/config/config-env.php.
  3. Install the DB using all-in-one-d.sql provided within the console/migrations directory. We might need to change database name if it's different than cmgdemobasic.
  4. Run the php script init.php to initialize the application for the predefined environments. The script will ask to choose environemnt among prod or dev.
  5. Update htaccess located under template root based on your web server needs. More details about live application settings can be found at http://www.cmsgears.org.
  6. Download the Admin, Mutisite and Blog Themes and place them under /themes/admin, /themes/community and /themes/blog directories respectively.
  7. Now we can run the template using our preferred browser. Example links are as mentioned below.
  8. Login to admin and update file upload url in case project name is different.
  9. By default all the files uploaded by users will be stored in uploads directory.
  10. Frontend - http://localhost/cmgdemocommunity/frontend/web
    Admin - http://localhost/cmgdemocommunity/frontend/web
    

    Template Configuration - Update

    We can update the dependencies using composer.json file located at the root of template. Once done the standard composer command can be used to update dependencies.

    Default Pages

    The Blog Theme installed for Community Template provide views for default system pages as listed below.

    Public Pages

    1. Landing - Site index page.
    2. Login - Login page allows users to login.
    3. Register - Register page allows users to sign up.
    4. Confirm Account - Users can confirm account by following the link sent to their email while submitting Register form.
    5. Forgot Password - It can be used to generate password reset link.
    6. Reset Password - Users can reset password by following the link sent to their email while submitting Forgot Password form.
    7. Activate Account - User accounts added by site admin can be activated using this page.
    8. Blog - The blog page shows most recent posts published on site.

    Private Pages

    1. User Home - Page displayed on login.
    2. User Profile - User profile page allows users to configure their profile details.
    3. User Settings - Settings page allows users to configure settings icluding account, notifications, reminders.

    CMS

    1. CMS Page - The published pages can be accessed by site url followed by page slug.
    2. CMS Post - The published posts can be accessed by site url followed by post/(post slug).

cmsgears/template-community 适用场景与选型建议

cmsgears/template-community 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 01 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「template」 「community」 「yii2」 「cmsgears」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 cmsgears/template-community 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 cmsgears/template-community 我们能提供哪些服务?
定制开发 / 二次开发

基于 cmsgears/template-community 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2018-01-20