Recent Topics

Aggregated Blog: Post class according to blogid

Started by on Dec 18, 2010 – Contents updated: Dec 18, 2010

Dec 18, 2010 14:12    

My b2evolution Version: Not Entered

I have an aggregated blog and i want to display posts differently according to which blog they belong.AFAIK posts are not directly associated to blogs but are associated via their categories

Any idea how can i get blog id of the post and make:

<div class="post blog1...

<div class="post blog4...

Dec 18, 2010 18:20

tilqicom wrote:

My b2evolution Version: Not Entered

2.4.x inc/items/model/_itemlight.class.php :


     * Derived from $main_cat_ID
     * This is set at instanciation.
     * @var integer
    var $blog_ID;
     * The Blog of the Item (lazy filled, use {@link get_Blog()} to access it.
     * @access protected
     * @var Blog
    var $Blog;


echo '<div class="post blog'.$Item->blog_ID.'">'."\n";

At a guess


Form is loading...

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