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.

Using variables in tags

May 26, 2012 9:13pm

Subscribe [2]
  • #1 / May 26, 2012 9:13pm

    sandyyu

    6 posts

    Why does this work?
    {exp:channel:entries entry_id="48"}

    but this not?
    {preload_replace:eId='48'}
    {exp:channel:entries entry_id="{eId}”}

    Thanks!

  • #2 / May 29, 2012 1:38pm

    Dan Decker

    7338 posts

    Hi sandyyu,

    ExpressionEngine’s Parse Order allows for this, you just need to change this:

    {preload_replace:eId="48"}
    {exp:channel:entries entry_id="{eId}"}

    Check out Low’s post on using Preload Replace and Snippets in templates. Very informative!

    Cheers,

  • #3 / Jul 01, 2012 6:41pm

    sandyyu

    6 posts

    Sorry - this was sent prematurely.

  • #4 / Jul 02, 2012 3:34pm

    Shane Eckert

    7174 posts

    Hey sandyyu,

    No worries.

    Is there anything else we can help with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases