The purpose of this tutorial is to develop a VaahCMS Theme for the management of blog with CMS Module.
Steps to install VaahCMS is available at Getting Started > Installation
Install NodeJs package
VaahCLI globally, instructions are available at VaahCLI.
npm i vaah -g
VaahCLI will help you to quickly generate
You can effectively use the tool with
Command Generator at Generators.
Let's call the theme as
BlogTheme. Open the command line tool & navigate to the project root folder or in PHPStorm open
Terminal and to generate scaffolding for the theme, use following command:
npx vaah cms:theme
It will ask you following questions, answers also mentioned in
- Enter your theme name:
- Enter meaningful title for your theme:
Theme for Blog
- Enter your theme description:
- Enter Author name:
- Enter Author email:
- Enter author website:
- Enter download URL: (don't enter anything, just press enter)
- Do you want to run migration when activated (true/false):
- Will your theme contains sample data (true/false):
Once this step is complete, it will generate a new folder at
VaahCMS > Themes > BlogTheme.
Now, you actually activate the theme by visiting following URL:
Once, the theme is activated, you will be able to see the "BlogTheme" on Public url.
You will see the view generated from the following blade file