Base

2025-12-11 0 992

TypiCMS

TypiCMS is a modular multilingual content management system built with Laravel. Out of the box you can manage pages, events, news, places, menus, translations, etc.

Table of contents

  • Features
  • Requirements
  • Installation
    • Assets
    • Locales configuration
    • Installation of a module
  • Available modules
    • Pages
    • Menus
    • Projects
    • Categories
    • Tags
    • Events
    • News
    • Contacts
    • Partners
    • Files
    • Users and roles
    • Blocks
    • Translations
    • Sitemap
    • Settings
    • History
  • Facades
  • Artisan commands
  • Roadmap
  • Change log
  • Contributing
  • Credits
  • Licence

Features

URLs

These kind of URLs are managed by the CMS:

Modules:

  • /en/events/slug-in-english
  • /fr/evenements/slug-en-francais

Pages:

  • /en/parent-pages-slug-en/subpage-slug-en/page-slug-en
  • /fr/parent-pages-slug-fr/subpage-slug-fr/page-slug-fr

Requirements

  • PHP >= 7.2
  • MySQL 5.7.8
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Installation

First install Composer

  1. Create a new project

    composer create-project typicms/base mywebsite
    
  2. Enter the newly created folder

    cd mywebsite
    
  3. Migration of the database, seeding, user creation, npm installation and directory rights

    php artisan typicms:install
    

Note: if you use MariaDB, set \’mariadb\’ to true in config/typicms.php

Go to http://m*yweb*site.*test/admin and log in.

Assets

Assets are managed with Laravel Mix.
In order to work on assets, you need to install Node.js, then go to your website folder and run these commands:

  1. Install npm packages (in directory node_modules)

    npm install
    
  2. Compile admin and public assets

    npm run dev
    

Locales configuration

  1. Set the locales in config/typicms.php, the first key of this array is the main locale and should be the same as the locale defined in config/app.php.
  2. Set main_locale_in_url in config/typicms.php to true or false.

Installation of a module

This example is for the News module. After these steps, the module will appear in the sidebar of the back office.
If you need to customize it, you can publish it!

  1. Install a module with Composer

    composer require typicms/news
    
  2. Add TypiCMS\\Modules\\News\\Providers\\ModuleServiceProvider::class, to config/app.php, before TypiCMS\\Modules\\Core\\Providers\\ModuleServiceProvider::class,

  3. Publish the views and migrations

    php artisan vendor:publish
    
  4. Migrate the database

    php artisan migrate
    

Module scaffolding

Let’s create a module called Cats.

  1. Create the module with artisan:

    php artisan typicms:create cats
    
  2. The module is in /Modules/Cats, you can customize it

  3. Add TypiCMS\\Modules\\Cats\\Providers\\ModuleServiceProvider::class, to config/app.php, before TypiCMS\\Modules\\Core\\Providers\\ModuleServiceProvider::class,

  4. Migrate the database

    php artisan migrate
    

Available modules

Each module can be published.

Pages

Pages are nestable with a drag and drop, on drop, URIs are generated and saved in the database.
Each translation of a page has its own route.
A page can be linked to a module.
A page can have multiple sections.

Menus

Each menu has nestable entries. One entry can be linked to a page or URL.
You can return a HTML formated menu with Menus::render(\'menuname\') or @menu(\'menuname\').

Projects

Projects have categories, projects URLs follows this pattern: /en/projects/category-slug/project-slug

Tags

Tags are linked to projects and use the Selectize plugin.
The tags module has many to many polymorphic relations so a tag can be easily linked to any module.

Events

Events have starting and ending dates.

News

News module.

Contacts

Frontend contact form and admin side records management.

Partners

A partner has a logo, website URL, title and body content.

Files

The files module allows you to upload and organize images, documents and folders. It works with DropzoneJS for the uploading proccess.
Thumbnails are generated on the fly thanks to Croppa.

If you want to store the original images on a storage service such as Amazon s3 and your cropped images on the local disk, set FILESYSTEM_DRIVER=s3 in your .env file and in config/croppa.php set \'src_dir\' => \'filesystem.default.driver\' and \'crops_dir\' => storage_path(\'app/public\').

Users and roles

User registration can be enabled through the settings panel (/admin/settings).
Roles and Permissions are managed with spatie/laravel-permission.

Blocks

Blocks are useful to display custom content in your views.
You can display the content of a block with Blocks::render(\'blockname\') or @block(\'blockname\').

Translations

Translations can be stored in the database through the admin panel (/admin/translations).

You can get a translation from the database with the standard Laravel functions: __(\'Key\'), trans(\'Key\') or @lang(\'Key\').

Sitemap

A sitemap is generated by reading all pages available in your project. The URL is /sitemap.xml.

Settings

Change the website title, logo, and other options in the settings panel.

History

created, updated, deleted, online and offline actions are logged in database.
Latest records are displayed in the back office’s dashboard.

Facades

Each module has a facade that gives you access to the repository, you can call for example News::latest(3) to get the three latest news.
Check available methods in each module’s repository.

Artisan commands

Commands are located in /vendor/typicms/core/src/Commands

Installation of TypiCMS

php artisan typicms:install

Initial migration and seed

php artisan typicms:database

This command is triggered by typicms:install

Publish a module

If you want to modify a module, for example to add some fields or a relation, you have to publish it by running:

php artisan typicms:publish <modulename>

The module is now located in the /Modules directory.

These steps will be executed:

  1. Publishing of views and migrations for Pages module.
  2. Copying of everything excepted views and migrations from /vendor/typicms/pages/src to /Modules/Pages.
  3. Running composer remove typicms/pages.

When a module is published, it will be tracked by git and you will be able to make changes in /Modules/Modulename directory without loosing changes when running composer update.

Changelog

Please see CHANGELOG for more information on what has changed.

Contributing

Please see CONTRIBUTING for details.

Credits

  • Samuel De Backer
  • All contributors

License

TypiCMS is an open-source software licensed under the MIT license.

下载源码

通过命令行克隆项目:

git clone https://github.com/TypiCMS/Base.git

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

申明:本文由第三方发布,内容仅代表作者观点,与本网站无关。对本文以及其中全部或者部分内容的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。本网发布或转载文章出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,也不代表本网对其真实性负责。

左子网 建站资源 Base https://www.zuozi.net/34919.html

confess crush
上一篇: confess crush
fiction
下一篇: fiction
常见问题
  • 1、自动:拍下后,点击(下载)链接即可下载;2、手动:拍下后,联系卖家发放即可或者联系官方找开发者发货。
查看详情
  • 1、源码默认交易周期:手动发货商品为1-3天,并且用户付款金额将会进入平台担保直到交易完成或者3-7天即可发放,如遇纠纷无限期延长收款金额直至纠纷解决或者退款!;
查看详情
  • 1、描述:源码描述(含标题)与实际源码不一致的(例:货不对板); 2、演示:有演示站时,与实际源码小于95%一致的(但描述中有”不保证完全一样、有变化的可能性”类似显著声明的除外); 3、发货:不发货可无理由退款; 4、安装:免费提供安装服务的源码但卖家不履行的; 5、收费:价格虚标,额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外); 6、其他:如质量方面的硬性常规问题BUG等。 注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。
查看详情
  • 1、左子会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全! 2、左子无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别; 3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外); 4、在没有”无任何正当退款依据”的前提下,商品写有”一旦售出,概不支持退款”等类似的声明,视为无效声明; 5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准); 6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在左子上所留的QQ、手机号沟通,以防对方不承认自我承诺。 7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于左子介入快速处理。
查看详情

相关文章

猜你喜欢
发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务