After create a
Content Type, you can see that
Content Type in Top Menu under
For creating Content, you need to follow some steps:
1. Create Template through seeds.
Create a json file of name
VaahCms/Themes/BlogTheme/Database/Seeds/json/ this directory.
You have to set
blade file path in template.json file. The content link return to this Blade File. The data in the fields of that content show in that Blade file only.
├── BlogTheme ├── Database/ ├── Seeds/ ├── DatabaseTableSeeder.php ├── SampleDataTableSeeder.php ├── json/ ├── templates.json
To run this seed, you have to add some code in
Now, you just need to reactivate the theme by visiting this url:
Once, the theme is activated, Template will also be created
Now you can go to Blog page in Content and create a content for
Fill out all fields in Create form. In Templates, you can see the data that you have been created through seeds. and this will decide which
Blade file will open for that content.
In Templates, You can add some fields that means that fields are template specific and will be shown when you select that Template
You can also add author for this content.
Now, You can see the content that you have input in Cms.