Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hello!

Shortly here is my situation:
Code: Select all
<cms:template title='Template_1' clonable='1' >
   <cms:editable name='field_1' label='Some text' required='1' type='text' />
</cms:template>

<cms:if k_is_page >
   <cms:set my_field_1=field_1 scope='global' />
   
    <cms:pages masterpage='members/template_2.php' custom_field='field_x=<cms:show my_field_1/>' >
       some things to display
   </cms:pages>
   
<cms:else />
    <cms:embed 'template_1_list.html' />
</cms:if>

As I know, the above code should be working, but is not. It's only working if I use it hardcoded, like this:
Code: Select all
<cms:pages masterpage='members/template_2.php' custom_field='field_x=Some text here' >

What I'm missing here? Any idea? Anybody?

Thank you!
What I'm missing here?

Double quotes :)
Please see https://docs.couchcms.com/concepts/sett ... eters.html for what I mean to say.

Of course, do let me know if you still don't manage to solve the issue.
KK wrote:
What I'm missing here?

Double quotes :)

Yap! Indeed, double quotes were the problem :oops:
This happens when copy-pasting and not thinking about things.
Thanks, KK, works as expected, case closed :D
3 posts Page 1 of 1
cron