ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Related categories mode, output problem

February 15, 2008 4:17pm

Subscribe [1]
  • #1 / Feb 15, 2008 4:17pm

    bnaut

    34 posts

    On a single entry page, below the post-entry, I want the titles of four related articles, from the same category to be displayed. Instead, I get one title and it is the title of the article displayed in the single entry.

    I have tried without the php code for stripping the category parent, I have tried dynamic off, took out exp widont - and can not think of any other changes in the template recently that could have caused this.

    Thank you.

    {exp:weblog:entries weblog="{my_weblog} | news" track_views="one" limit="1" disable="member_data|pagination"}
    <h2>{title}</h2>
    <p><div class="bodythree"><br />
    {summary}<br />
    {body}<br />
    {link}<br />
    {extended}<br />
    </div></p>
    
    <p><div class="posted">postad {entry_date format="%j/%n/%y"} <span class="italic"><a href="http://{permalink={my_template_group}/archive}">@</a></span> {entry_date format="%H:%i"} av {author} i <br />
    {categories}<br />
    <?php<br />
    $lastcatname="  {category_name}";<br />
    ?><br />
    {/categories}<br />
    kategori <a href="http://{path=trade/index}"><?php echo $lastcatname; ?></a><br />
     · skicka artikeln som <a href="http://{permalink={my_weblog}/tell}">e-mail</a><br />
    </div></p>
    
    
    
    <p>{exp:weblog:entries weblog="{my_weblog}|news" related_categories_mode="on" custom_fields="on" limit="4" orderby="date"  sort="desc"}<br />
    <ul class="titletwo"><br />
    <li><h2 class="h2rel"><a href="http://{title_permalink={my_template_group}/article}{entry_date">{title}</a></h2><br />
    {exp:trunchtml chars="160" inline="..."} {summary} {/exp:trunchtml } ... <a href="http://{title_permalink={my_template_group}/article}{entry_date">» Läs mer</a> <span>· postad {entry_date format="%j/%n/%y"} · {view_count_one}  </span></li></ul><br />
    {/exp:weblog:entries}</p>
    
    <p></div>

  • #2 / Feb 15, 2008 4:40pm

    Lisa Wess

    20502 posts

    You are not closing the first weblog entries tag before opening the second one. =)

  • #3 / Feb 15, 2008 4:52pm

    bnaut

    34 posts

    ops this is a road I’ve been down with you before 😊  Sorry - and Thanks!

  • #4 / Feb 15, 2008 4:56pm

    Lisa Wess

    20502 posts

    No worries, took me a few to spot it, too!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases