Recent Topics

is it possible to have a default category that shows up

Started by on May 18, 2004 – Contents updated: May 18, 2004

May 18, 2004 14:33    

is it possible to have a default category that shows up like default.. IE index.php would have a default category of 15 but if you click on a link it would show other categories if you have like index.php?cat=16

you must create a stub file for your blog to do that.
inside the stub file, before $blog= , add the following lines:

Code

require(dirname(__FILE__).'/b2evocore/_main.php');
 
param( 'cat', 'integer', 15 );

15 is the default for param 'cat' that can be overriden by the URL.
$cat will always be forced to integer.


Form is loading...

multiblog engine – This forum is powered by b2evolution CMS, a complete engine for your website.