We make tools that make websites.

Forums (Archived)

The Solspace Support Forums are now CLOSED (read-only)

Check out our new support options here. Please refer to this blog post for more information.

   

Snippets inside of Morsels

RankRankRank

Total Posts: 142

Joined: Jun 28, 2007

PM

Ignore

 

For me, snippets don’t render when embedded in a morsel. 

I am on the newest EE build, Newest Morsels..

Avatar
RankRankRankRankRank

Total Posts: 9901

Joined: Jan 8, 2009

PM

Ignore

 

I can reproduce this. Global variables, on the other hand, work within Morsels.
I will bring this to our developer’s attention. What you can do in the meantime (in some cases), is pass the snippet as a dynamic parameter:

{exp:template_morsels:fetch name="my_morsel" snip="{foo}"

You would then use {snip} in your morsel.

Oddly though, double quotes in the snippet stops the snippet code at the first encounter of a double quote, if double quotes have been used in the above snip=”” parameter, and vice-versa. I will let the devs know smile

Signature

RankRankRank

Total Posts: 142

Joined: Jun 28, 2007

PM

Ignore

 

It makes sense with the parsing order.

Global Variables should work in any strange combo since they are last, but I would expect snippets to parse before Morsels.

I think this is an important request in keeping morsels relevant as EE adds all of these variable tools. Thanks for noting.