Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi

I have just downloaded couchcms v2 for my clients site and all installed ok and just putting in the integration of it so the customer can edit their text content etc. but it has messed up the layout so took out the extra divs that it said it has, it is still messed up but not sure if it is down to the iframes that are in the coding and couchcms just sees it as normal text instead of HTML, can anyone help please as I am new to version 2 of couchcms as have been using the old version

The site is http://coolsoundsmobiledisco.com/

Thank you in advance
Hi

Just a update I have got the layout sorted but how do I add iframe code to the box to display a iframe on the site as it I can see is the iframe code instead of a video?

The site is http://coolsoundsmobiledisco.com/

Thank you in advance
Ian,

The editable regions in Couch, as a security measure, 'sanitize' the inputted HTML to neutralize potentially dangerous code, The '<iframe>' code that you see verbatim is a result of this sanitization.

What puzzles me is that this behavior remains exactly the same in v2.0 as was in all past versions. I can't see why this issue could have cropped up only after upgrading to the new version.

Anyway, that said, you may use one of the two methods mentioned below for inputting this kind of code -

1. Use a region of type 'textarea' and set its 'no_xss_check' parameter to '1'. This will make Couch accept any kind of code through this region without attempting to sanitize it. Please see viewtopic.php?f=4&t=185#p545 for an example.

2. Use a shortcode e.g. the one here - viewtopic.php?f=8&t=7950

Hope it helps. Do let me know if you still require any help.
Hi KK

Thank you for the reply and solution, I tried the first method and got it working
4 posts Page 1 of 1
cron