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 a single field from the channel entry into a template

January 28, 2011 4:14pm

Subscribe [2]
  • #1 / Jan 28, 2011 4:14pm

    SoHo

    1 posts

    Hi, I’m trying to figure out the easiest way to do the following in EE2:

    I have a template “mypage” that resolves to http://www.mysite.com/mypage

    Then I have a channel “static” that has an entry with url title “mystaticentry”

    How can I embed the field called “text” from that entry into “mypage” template?

  • #2 / Jan 28, 2011 8:00pm

    mhughes73

    60 posts

    Hi SoHo,

    Try this:

    {exp:channel:entries channel="static" dynamic="no" url_title="mystaticentry" limit="1"}
            {text}
          {/exp:channel:entries}

    Cheers,

    Mike

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

ExpressionEngine News!

#eecms, #events, #releases