[Solved] Home page as a landing page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
ColonelBlimp
Forum Members
Forum Members
Posts: 12
Joined: Fri Nov 06, 2015 5:06 am

[Solved] Home page as a landing page

Post by ColonelBlimp »

Using 2.0.1.1 with wampserver 2.5

I would like to have a homepage that is simply a landing page with links to pages that have content? For example, the homepage could have a summary of a 'featured' news item with a 'Read more...' link. Then below this there could be various menu items linked to other articles.

I tried to use create a template based on Core::Generic, but I cannot set this as the default page. I was forced to use Core::Page (which must contain the {content} tag and then had to link and empty content item to it to get my page to render. Ideally, I don't want the {content} tag rather a {news} tag?

I am a new to CMSMS, so have I misunderstood something there?

Thanks.
Last edited by ColonelBlimp on Fri Dec 11, 2015 2:27 pm, edited 2 times in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Home page as a landing page

Post by velden »

You must have a Content Page to set as default. A Page must have a Page Template and a Page Template must have a default content block {content}.

That said, you don't have to use that content block in your template, it just have to exist. Hence, it will show up in the page edit area.

Code: Select all

{content oneline=true assign=dummy}
You must type something in the content area when submitting this page.

Further, you can use the permissions system to prevent regular editors from changing the page.
ColonelBlimp
Forum Members
Forum Members
Posts: 12
Joined: Fri Nov 06, 2015 5:06 am

Re: Home page as a landing page

Post by ColonelBlimp »

Many thanks for the help!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved] Home page as a landing page

Post by Dr.CSS »

Of course you could have put the {news} tag in a pages {content} edit box...
Locked

Return to “CMSMS Core”