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.

How to make titles link properly when listing multiple blog entries

May 26, 2010 6:12pm

Subscribe [1]
  • #1 / May 26, 2010 6:12pm

    gogglez

    23 posts

    I’m having a problem where I call multiple weblog entries into one page using this code:

    {exp:weblog:entries weblog="home|leadership|foodentertainment|green" dynamic="off" limit="8" show_future_entries="yes"}
                    <div class="content_item">
                        <h1><a href="http://{url_title_path=listings/index_detail}">{title}</a></h1>
                        {entry_date format="%F %j%S, %Y"} by {author}
                        {exp:word_limit_plus if_exceeds="200" stop_after="175" the_link="<a href='{title_permalink=listings/index_detail}'>Read more…</a>"}{Home}{/exp:word_limit_plus}<div class="clear"></div>
                        {exp:word_limit_plus if_exceeds="200" stop_after="175" the_link="<a href='{title_permalink=listings/leadership_detail}'>Read more…</a>"}{Leadership}{/exp:word_limit_plus}<div class="clear"></div>
                        {exp:word_limit_plus if_exceeds="200" stop_after="175" the_link="<a href='{title_permalink=listings/food_entertainment_detail}'>Read more…</a>"}{FoodEntertainment}{/exp:word_limit_plus}<div class="clear"></div>
                        {exp:word_limit_plus if_exceeds="200" stop_after="175" the_link="<a href='{title_permalink=listings/green_detail}'>Read more…</a>"}{Green}{/exp:word_limit_plus}
                    </div>
                {/exp:weblog:entries}

    The problem I’m having is that the titles of the entries will only link to listings/index_detail seeing as it’s the only location for titles to redirect to that’s specified. However, if I give each title a location to link to, each entry gets compounding titles above it, each leading to a different url. This is predictable behaviour really but I’m still really confused about how to make these titles link to their respective detail pages.

    Is there actually a way to make this work? Any help would be greatly appreciated.

    Steve

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

ExpressionEngine News!

#eecms, #events, #releases