2 fplanque May 18, 2004 14:21

I pasted the code above the $ blog and im getting a parse error
I forgot a ; after the last )
I'm editing the code above.
Hi... im using B2evo as a Content Management System for a news portal in Spanish... it´s an excellent software by the way.
Anyway i made sort of a merge between the skin file and the summary / multiblogs templates. My "top news" (main category) are in the main part and the "other news" (several other categories) in the sidebar. The sidebar was generated using a piece of the multiblogs code.
I made the stub file that restricts the category and made that default category show up in the main part of the blog, and the other ones in the sidebar. But when i click on "read more..." in the sidebar it outputs "sorry, there is no post to show" (im translating from Spanish, it probably would say something different in the English version)
The thing is: you can override the stub file if you put a cat=n parameter, but you can´t override it if you are clicking a permalink.
Can anyone help me here? pls!!!
I forgot
you guys can check out the blog i´m talking about at
anamassanet wrote:
I forgot you guys can check out the blog i´m talking about at http://www.noticierodigital.com/b2evo/hugo.php
Sorry for being off-topic now, but you have a great site. Which skin do you use or did you design it yourself?
Thanks... i designed it myself... I just embedded pieces of b2evo php code inside a predesigned html layout.
BTW i kinda managed to get the effect i wanted to by passing a ?cat=n parameter through the URL in several parts (in the link that goes to that section, for example, and the "return to main page" link)...
Here is an easy way to start with a specific category. Insert the following code in index.php
if ( empty($cat) )
{ // No category requested
$cat = 3; // this will start with cat. 3
}
:D [/code]
param( 'cat', 'integer', 3 );
Does the same thing as
if ( empty($cat) )
{ // No category requested
$cat = 3; // this will start with cat. 3
}
;)
¥
Has the "sorry, there is no post to show" thing been solved? We have the same problem..
you must create a stub file for your blog to do that.
inside the stub file, before $blog= , add the following lines:
15 is the default for param 'cat' that can be overriden by the URL.
$cat will always be forced to integer.