Homepage design different from other pages
Permalink
I have a homepage that is a different design than the rest of my site. The other pages will be editable but not the homepage.
How do I set this up in Concrete 5?
How do I set this up in Concrete 5?
Hi,
Yes jordanlev is right, you need to create seperate page type for home page and hard code it as you want.
Yes jordanlev is right, you need to create seperate page type for home page and hard code it as you want.
Just wanted to add in here that after you set a new page type in the dashboard you can do the following.
1.) Inside your theme make a file named: "home.php". Mine for example is /themes/easyapi/home.php
2.) Go to the home page and then in the editable part click "Edit Page"
3.) Then click "Design"
4.) Then select the new page type
Now your home page will be using whatever you type into /themes/{your theme}/home.php
Furthermore you can also add in a custom controller named home.php inside of /controllers/page_types/
Happy coding!
1.) Inside your theme make a file named: "home.php". Mine for example is /themes/easyapi/home.php
2.) Go to the home page and then in the editable part click "Edit Page"
3.) Then click "Design"
4.) Then select the new page type
Now your home page will be using whatever you type into /themes/{your theme}/home.php
Furthermore you can also add in a custom controller named home.php inside of /controllers/page_types/
Happy coding!
It is also possible to do a static page, and I believe there has been some discussion about which is best, page type vs single page.
http://www.concrete5.org/community/forums/customizing_c5/home-page-...
http://www.concrete5.org/community/forums/customizing_c5/home-page-...
But I would jump on the bandwagon I use, Page type and name it home.php.
I often find myself including an extra header, specifically for the home page as I will often add extra JavaScript to the home page not found elsewhere in the site.
http://www.concrete5.org/community/forums/customizing_c5/home-page-...
http://www.concrete5.org/community/forums/customizing_c5/home-page-...
But I would jump on the bandwagon I use, Page type and name it home.php.
I often find myself including an extra header, specifically for the home page as I will often add extra JavaScript to the home page not found elsewhere in the site.
This makes sense conceptually, but I have never been able to make it work in Concrete5. I think it's because the home page is the top-level page for all other pages in the sitemap, so it needs to be a "normal" page. Also was never able to get the page path to work for it -- I could hack something up where index would redirect to /home (which was a single_page), but it seemed like way too much trouble for very little benefit.
If you *really* want the entire home page to be static, just hard-code everything you want into the page type template (don't put in any c5 areas).