Download the PHP package webid/cms without Composer
On this page you can find all versions of the php package webid/cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cms
CMS^ID
Table of contents
- Requirements
- Installation
- Install the package
- Publish files
- Install databases
- Add nova-components in composer
- Prepare routes
- Link storage files
- Configure sitemap.xml
- Customization
- Use cookies.js
- Use form
- Internationalization
- Update email template
- Add images for components
- Extending functionalities
- Create a new component
- Modules
- Module form
Requirements
- PHP >= 8.0
- Composer 2
- MariaDB / MySQL
Installation
1. Install the package
This package can be installed as a Composer dependency.
2. Publish files
Case 1 : First install
Case 2 : Second install (or after)
3. Install databases
4. Add nova-components in composer
Then run composer update
5. Prepare routes
You have to remove all routes from your routes/web.php file to make sure
the cms will work properly.
If the project is a fresh Laravel project, you may have some generated code like this to remove :
6. Link storage files
Run command php artisan storage:link.
7. Configure sitemap.xml
If you want to allow robots to access your sitemap, add this line in the robots.txt file :
⚠ Replace www.your-domain.com by your actual website domain.
⚠ ⚠ Do not delete existing code in nova-components !!! ⚠ ⚠ 
Customization
Disable robots follow
To disable the tracking of robots, you must add in the .env DISABLE_ROBOTS_FOLLOW=true
Use cookies.js
To use the cookies popin, just fill the resources/views/warning_cookies.blade.php view, include it in resources/views/template.blade.php with the js public/cms/js/cookies.js
Use form
js
do not modify the file send_form.js !
Edit the helper.js file with the form front information to display errors and the success message.
Added to package.json :
In the webpack.mix file, add the send_form_js file. The file is already linked in the front.
front-end
You can change the form frontend but DO NOT TOUCH the submit_form class for sending forms.
Internationalization
Don't forget to create a service to display the languages as you need them. Use this service into a ViewServiceProvider to share both languages and translated slugs to views.
To create the service provider, you can run :
⚠ Don't forget to add the service provider in the file config/app.php.
Update email template
Template email in resources/views/mail/form.blade.php
You can change the design of the mail template but do not delete or modify the existing code! The present code allows you to display the fields of the form sent in the email.
Add images for components
Extending functionalities
Create a new component
1. create Models, migration, repositories, Nova, Resource for the new component (register all elements in a Components folder)
2. update config\component.php with the information of the new component and add the image of the component in public/components/
3. update App\Models\Template with the information of the new component
4. update Services\ComponentsService.php with the information of the new component
5. update nova-components\ComponentField with the information of the new component
Modules
Module form
1. Add in your .env file the SEND_EMAIL_CONFIRMATION key, to send or not to send a confirmation email
All versions of cms with dependencies
laravel/framework Version ^9
laravel/nova Version ~2.0|~3.0
whitecube/nova-flexible-content Version ^0.2.0
idf/nova-html-card Version ^1.2
eminiarts/nova-tabs Version 1.3.*
digital-creative/collapsible-resource-manager Version ^1.2
digital-creative/conditional-container Version ^1.2
epartment/nova-dependency-container Version ^1.2
maatwebsite/laravel-nova-excel Version ^1.1
spatie/laravel-varnish Version ^2.8
spatie/laravel-honeypot Version ^4.0
ext-json Version *
symfony/polyfill-mbstring Version ^1.20.0
spatie/laravel-translatable Version ^6.0
tightenco/ziggy Version ^1.4
spatie/laravel-sitemap Version ^6.1
nwidart/laravel-modules Version 8.2.*
webid/nova-filemanager Version ^3.1.2