Home page as Single Page?

Permalink
Is it possible to make the home page a single page?
I use a setup for the home page of my clients new site that'll never show up anywhere else, and i'd prefer not having a "Home" page type on the list.

PhilipWitte
 
PhilipWitte replied on at Permalink Reply
PhilipWitte
Sorry for the stupid post. Should have been more thorough in my search before I post ;)
focus43 replied on at Permalink Reply
focus43
Sooo... can you direct me to where you found your answer
osu replied on at Permalink Reply
osu
I'd also like to know the answer to this please
everydaycoder replied on at Permalink Reply
everydaycoder
Check out this thread:

http://www.concrete5.org/community/forums/customizing_c5/home-page-...

I just used a Page Type for mine, but using home.php seems to be the single page method.
PhilipWitte replied on at Permalink Reply
PhilipWitte
For those with similar questions, the answer to date (i'm posting this 5/31/2010 c5 v5.4.0.5) is that Home pages cannot be single pages. If you make a home.php inside your themes directory it will be automatically selected for Home page (so they say). There is also a way to hide individual page types from the users view with advanced permissions (requires adjusting a text file i believe), but that seems more trouble than it's worth.

It would be nice, if in a future version of c5 there was a way to make Home a single page.
ScottC replied on at Permalink Reply
ScottC
if home is a page type(sorry working from an older version right now of concrete5) you should be able to assign a page_type controller to it and have most of the same functionality as one would have with a single_page, assuming you are going about home as a single_page because you want to act on $_GETs and log those in a meaningful way?
ScottC replied on at Permalink Reply
ScottC
or do a/b testing or something.
PhilipWitte replied on at Permalink Reply
PhilipWitte
Interesting, I didn't know Single Pages had access to $_GET variables, thanks.

I think the main issue ppl are having (i now it's the issue i'm having) is that you can't remove the "Home" page type from the selectable list of page types when it's only going to be used in one place.
Fernandos replied on at Permalink Reply
Fernandos
you can remove that "home" page-type from the list, when you enable advanced permissions and choose the users who should see that page-type. Other users won't see it.

so, your solution is to:
1. create a file in your themes root directory call it whatever you want (home.php makes sense as a "page-type")
2. setup that page-type in the backend in the page-types tab. (initialize/refresh the theme to see the new page-type)
3. enable advanced permissions, use the forum search to find out how.
4. goto the sitemap and choose the superuser + administrators as the users who have full access to the "home" page-type.

Done.
vibraharmonics replied on at Permalink Reply
vibraharmonics
1
infiniteuptime replied on at Permalink Reply
If you want to simplify a theme for your users, it is nice to eliminate any extra page types from their view. In this case, you can easily move your home/default content into element files, like so:

<?php defined('C5_EXECUTE') or die (t('Access Denied.'));
$this->inc('elements/header.php');
if ($c->getCollectionID() === HOME_CID) {
    $this->inc('elements/home.php');
} else {
    $this->inc('elements/default.php');
}
$this->inc('elements/footer.php');