2 waltercruz Oct 23, 2009 19:39

From dashboard > settings > reading:
http://i87.photobucket.com/albums/k150/iceblocky/wpsetting.jpg
You can create an account at wordpress.com to have a look.
I can think on something to help you, but it will have to wait some days.. ok?
This is something we should permanently build into the core. Walter if you can, please do so ;)
Looking forward to see this!
Ooooh, I'd LOVE this. It would make it much easier to use this as my entire website, instead of just a blog section.
I've kinda cheated on this one. A blog with only one post as the default blog on index ;) Close comments, style it appropriately, put one post per page, and there you go.
There's a much easier way
if( is_default_page() )
{
$disp = 'home';
}
skin_include( '$disp$', array(
'disp_home' => '_home.disp.php',
'disp_posts' => '', // We already handled this case above
'disp_single' => '', // We already handled this case above
'disp_page' => '', // We already handled this case above
) );
And then create a new disp file _home.disp.php
SWEET!
I always forget about custom disp/include pages :(
I have to say I went the same route as EdB - a one post blog as the default blog in the system. I also added some skin settings to allow me to turn off all the tags, categories and other related metadata.
I didn't think of a custom display page either. I like the idea of managing all my pages through b2evo though so the one post blog works really well for that.
Allowing a page to be the default front page would be a great addition.
L
I completely agree. The lack of this feature has been driving me insane :lol:
I'm running 4.0.3
The is_default_page() method for a default home page isn't working for me.
If I put in the url index.php?disp=home all is well and my _home_disp.php page displays. But the following code fails to work.
from my index.main.php
<?php
if (is_default_page()){
$disp = 'home';
}
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
'disp_about' => '_about.disp.php',
'disp_home' => '_home.disp.php',
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
Any idea what is going wrong here?
edit to add: By not working I mean if you hit the entry page of the site index.php the _home.disp.php doesn't load - you just get the main post list. I tossed an echo statement in the task bar to confirm that is_default_page() is returning true/1 when expected. And I tried just taking the if statement out and simply setting $disp=home to try to force the issue but it still loaded the regular main post list. Could this be a variable scope problem with $disp?
sam2kb wrote:
There's a much easier way
if( is_default_page() ) { $disp = 'home'; } skin_include( '$disp$', array( 'disp_home' => '_home.disp.php', 'disp_posts' => '', // We already handled this case above 'disp_single' => '', // We already handled this case above 'disp_page' => '', // We already handled this case above ) );
And then create a new disp file _home.disp.php
can you show me a example of how it works in a wordpress? a real blog with it.. or a screenshot?