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.

Link Structure When Referring to Multiple Weblogs in the Entries Tag

October 10, 2009 11:17am

Subscribe [2]
  • #1 / Oct 10, 2009 11:17am

    jfm

    17 posts

    I use four weblogs on my site and want to create a single linked list of entries.  My weblog:entries tag looks similar to this:

    {exp:weblog:entries weblog="excel|notes|downloads|utilities" limit="5"}

    How can I refer to the weblog name in the link so that the link points the viewer to the proper entry for that weblog?  The weblog name in the example below is what I can’t seem to get right.

    <a href="http://{title_permalink={weblog_name}/comments}">{title}</a>

    Thanks for your help.

  • #2 / Oct 10, 2009 2:00pm

    Herb

    224 posts

    You are using the wrong variable: should be {weblog} per Weblog module single variables

  • #3 / Oct 10, 2009 2:49pm

    Lisa Wess

    20502 posts

    You’d more likely want to use {weblog_short_name} if that matches your template structure.  My personal preference, also available on the page that Herb linked to, is {comment_url_title_auto_path} which pulls from the weblog settings directly.

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

ExpressionEngine News!

#eecms, #events, #releases