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.

Embed question

February 24, 2011 9:58pm

Subscribe [2]
  • #1 / Feb 24, 2011 9:58pm

    DavidG

    46 posts

    I’m trying to embed some news articles into a page. Everything works except for the path/url-title bit.
    Here is my embed code:

    {exp:channel:entries  limit="4" channel="channelX|channelY" dynamic="off" }
                            <h4><a href="http://{path=news/article}">{title}</a></h4>
    <p>{/exp:channel:entries}

    and in the page:

    {embed="embeds/news-contents"}

    I have tried {path=news/article} and /news/{url-title} and neither work. I’m sure I’m missing something obvious but my tired mind can’t peg it right now. Any help would be most appreciated.

  • #2 / Feb 25, 2011 5:08pm

    DavidG

    46 posts

    Figured it out. Had the incorrect path code. So this can be deleted or closed. {title_permalink=news/article} is what it should have been. Result of too little sleep!

  • #3 / Feb 26, 2011 5:32pm

    John St-Amand

    865 posts

    Also:

    {url_title_path=template_group/template}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases