Recent Topics

1 Oct 22, 2009 01:11    

I previously asked a question in support and realized it's not an option in b2evo:

http://forums.b2evolution.net//viewtopic.php?t=19828

This option is available in wordpress and I think b2evo should have one too!

2 Oct 23, 2009 19:39

can you show me a example of how it works in a wordpress? a real blog with it.. or a screenshot?

4 Oct 30, 2009 13:49

I can think on something to help you, but it will have to wait some days.. ok?

5 Nov 04, 2009 22:44

This is something we should permanently build into the core. Walter if you can, please do so ;)

6 Nov 04, 2009 23:56

Looking forward to see this!

7 Nov 21, 2009 23:36

Ooooh, I'd LOVE this. It would make it much easier to use this as my entire website, instead of just a blog section.

8 Nov 22, 2009 00:22

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.

9 Nov 22, 2009 00:58

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

10 Nov 22, 2009 02:20

SWEET!

I always forget about custom disp/include pages :(

11 Nov 22, 2009 09:59

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

12 Apr 26, 2010 22:40

I completely agree. The lack of this feature has been driving me insane :lol:

13 Feb 07, 2011 07:45

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


Form is loading...