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.

Getting the proper permalink for multiple-channel entries

August 31, 2011 2:42pm

Subscribe [2]
  • #1 / Aug 31, 2011 2:42pm

    Glen Coulthard

    16 posts

    Hi there,

    I’m trying to provide links to individual entries in a listing of “Recent Changes.”

    Here is the code, I was trying (since my channel_short_name is the same as my template). Can anybody let me know what’s wrong with the following?

    {exp:channel:entries channel="blog|news" orderby="date" limit="6"}
       {title} ({channel}) 
       <a permalink="{channel_short_name}/view">more</a>
    {/exp:channel:entries}

    Thanks for any assistance offered!

  • #2 / Aug 31, 2011 3:23pm

    Boyink!

    5011 posts

    Ah - there’s a better way.  In your channel configuration you can set a path to a comments template.  Do that for both channels.

    Then use the {comment_url_title_auto_path} variable here.  It will build correct links based on your channel configurations.

    Recorded for EE1, but same idea:
    http://www.train-ee.com/courseware/free-tutorials/comments/working-with-combined-weblogs/

  • #3 / Aug 31, 2011 4:33pm

    Glen Coulthard

    16 posts

    Oh my, what a brain fart! Thank you very much—I had used the comment_url_title_auto_path variable elsewhere in my site but completely forgot about it. Geesh—Glen

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

ExpressionEngine News!

#eecms, #events, #releases