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.

Page with entries from two weblogs linking to commens template in two different template groups

October 29, 2007 5:13pm

Subscribe [1]
  • #1 / Oct 29, 2007 5:13pm

    Andy_vdG

    62 posts

    Hi

    I am sure this is an easy one but I can’t figure it out.
    I am displaying entries from two weblogs on one page. Then for the comments I want it to link to different template groups depending on which weblog it is.

    Here’s what I’ve tried:

    {exp:weblog:entries weblog="weblog1|weblog2" sort="desc" orderby="date"}
    <div class="post">
        <h2 class="post-title"><a href="http://{entry_id_path={weblog}/comments}" title="Read '{title}'">{title}</a></h2>
        
        <em>{entry_date format="%d.%m.%Y"}</em>
        <a href="http://{entry_id_path={weblog}/comments}class=comments">{comment_total} Kommentare</a>
        
        <div class="post-content">
            {exp:word_limit total="100"}{body}{/exp:word_limit}
            <a href="http://{entry_id_path={weblog}/comments}" class="more">weiter lesen…</a>
        </div>
    </div>
    {/exp:weblog:entries}

    But the link is always rendered as: http://www.mysite.com/ee_installation/{entry_id_path=weblog1/comments}

    I’ve also tried it with {if weblog == "weblog1"} statements but that hasn’t worked either.
    What am I missing?

  • #2 / Oct 29, 2007 7:40pm

    Andy_vdG

    62 posts

    Oh - completely forgot to mention… my weblogs and my template groups I want to use have the same name.

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

ExpressionEngine News!

#eecms, #events, #releases