Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi

I have an editable region called 'template'. The value of 'template' can be any of the following:

one.html
two.html
three.html

I have three files in my snippets folder with the same names.

If I use...

Code: Select all
<cms:show template />


... then it works fine. However, if I use it like this...

Code: Select all
<cms:embed '<cms:show template />' />


... I am getting this error:

Error embedding file: /home/mysite.com/public_html/snippets/<cms:show template />

Why isn't <cms:show template /> being converted when used within the embed tag? I'm assuming it is something to do with Couch processing tags in a particular order.

Is there a way to make this work?
It's all in the quotes, take a look at http://www.couchcms.com/forum/viewtopic.php?f=4&t=6936.
Code: Select all
<cms:embed "<cms:show template />" />

OR

<cms:embed template />
Thank you :)

It's so obvious now, but it was bugging me for over an hour ...
3 posts Page 1 of 1
cron