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.

title or url_title

November 05, 2013 9:52am

Subscribe [2]
  • #1 / Nov 05, 2013 9:52am

    kenny2

    90 posts

    In the docs referring to Relationships there is the following example:

    {exp:channel:entries channel="seasons" title="Spring 2013" limit="1"}

    Should that be url_title=“Spring 2013”? I tried just the title and it didn’t seem to work for me.

  • #2 / Nov 05, 2013 10:06am

    Ralph

    78 posts

    url_title refers to the “URL Title” field in the publish screen (aka slug in wordpress). This is a unique value which is used as the name of the page as it appears in the URL. For your example this will likely work:

    {exp:channel:entries channel=“seasons” title=“spring_2013” limit=“1”}
  • #3 / Nov 06, 2013 4:13am

    kenny2

    90 posts

    I didn’t see ‘title’ listed in the docs as a parameter for the entries tag which is why i thought it was a typo in the docs.

  • #4 / Nov 06, 2013 4:17am

    Ralph

    78 posts

    My mistake the code snippet should be as follows. I don’t know if you can search by title on the channel entries tag.

    {exp:channel:entries channel=“seasons” url_title=“spring_2013” limit=“1”}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases