Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
<cms:pages masterpage='super-dooper-config-file.php'>
<cms:cloak_email '<cms:show contact_email />' />
</cms:pages>

Is there a special way to do this? :D
There got to be a special way to explain what you need. :) At least I didn't comprehend the post.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
I suppose the problem is that the <cms:cloak_email /> statement is not cloaking the email address as fetched from the database - rather it is cloaking the '<cms:show contact_email />' string verbatim.

That would be because of the use of single-quotes around <cms:show /> -
<cms:cloak_email '<cms:show contact_email />' />

The correct syntax would be as follows (please notice we are now using 'double-quotes) -
Code: Select all
<cms:cloak_email "<cms:show contact_email />" />

or simply this -
Code: Select all
<cms:cloak_email  contact_email  />

Hope it helps.

P.S. if the use of single/double quote is unclear to you, please see http://docs.couchcms.com/concepts/setti ... eters.html
3 posts Page 1 of 1