Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello all ... I have a textarea set up as follows:
Code: Select all
<cms:editable name='embed_video' type='textarea' label='Video embed code (add &autoplay=1 at the end of the embed code for autoplay)' no_xss_check='1' height='30' order='45'/>

What I would really like to have in the label is
(add &amp;autoplay=1 at the end of the embed code for autoplay)
i.e. "&amp;" rather than "&". Not sure if this is possible as the "&amp;" is automatically translated as an HTML entity code?

Also when &amp; is keyed in to the textarea it is altered back to & when re-saved in the Admin Panel which causes a validation error -
& did not start a character reference. (& probably should have been escaped as &amp;.)
Just wondering if it is possible to override this behaviour?
Perhaps the html_encode tag is what you want to use on the front end?

Nevertheless, it sounds like shortcodes would be more appropriate and user-friendly for all of this than entering in html or query strings... If you are not sure please provide more details, otherwise disregard this.
I hadn't spotted the html_encode tag - just what I needed, all working great now! Thanks! :)
3 posts Page 1 of 1
cron