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.

Double Nesting Embeds/Snippets?

June 22, 2012 6:49pm

Subscribe [2]
  • #1 / Jun 22, 2012 6:49pm

    bmpire

    27 posts

    Hello,

    The EE system allows the ability nest a snippet with an embed statement.  However, how can you add another snippet or embed level to this?

    I would like to have a snippet nested within an embed which is also nested within an embed or snippet.

    How can I accomplish this?

    Thanks,

    Brandon

     

  • #2 / Jun 22, 2012 7:23pm

    R.K.Foster

    138 posts

    Exp Eng parses the content of your templates in a particular order. (There is a pdf somewhere that lists the full parsing order) Snippets are near the beginning and embeds are parsed after that. You should be able to use the snippets wherever but the parsing order may not get you the results you expect. Is there something you’ve tried that hasn’t worked? Maybe you could post an example?

    - Bob.

  • #3 / Jun 25, 2012 4:23pm

    Shane Eckert

    7174 posts

    Hey BMPIRE,

    Bob is right on. He mentioned the Parse Order document by Low. This is a good place to start.

    Can you post an example as Bob mentioned?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases