[SOLVED] html being dropped??

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
thintech
Forum Members
Forum Members
Posts: 23
Joined: Thu Sep 25, 2008 11:53 am

[SOLVED] html being dropped??

Post by thintech »

hi,

when i use tags they get dropped when the user logs in and makes changes to the page??

also does it with flash embed code??

anyone know how to stop it from doing this as every time client logs in to change something he is on the phone to me to re-write the code?? which of course makes it completely useless being content managed as i still have to work on it!

thanks
Last edited by tyman00 on Fri Apr 03, 2009 4:09 pm, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: html being dropped??

Post by Ted »

Best practice is to put things like iframes, flash, javascript blocks, etc into global content blocks.  That way they only have one {tag} they can potentially mess up instead of a whole block of code.  The farther the really important code bits are from the client, the better.

See http://wiki.cmsmadesimple.org/index.php ... ent_Blocks for a so-so description of what they're for.  :)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: html being dropped??

Post by RonnyK »

Personallly, I use GCBs for that as well... And in addition I allways set the GlobalSettings to NOT allow a wysiwyg on GCBs. That way logic in iframes/paypal/youtube etc.... doesnt get modified by the wysiwyg. The GCB can then be called in the page or template.

Ronny
NaN

Re: html being dropped??

Post by NaN »

Another way to integrate iframes without disabling the wysiwyg-editor is using the {embed}-tag.
thintech
Forum Members
Forum Members
Posts: 23
Joined: Thu Sep 25, 2008 11:53 am

Re: html being dropped??

Post by thintech »

Ted wrote: Best practice is to put things like iframes, flash, javascript blocks, etc into global content blocks.  That way they only have one {tag} they can potentially mess up instead of a whole block of code.  The farther the really important code bits are from the client, the better.

See http://wiki.cmsmadesimple.org/index.php ... ent_Blocks for a so-so description of what they're for.  :)
Brilliant works a treat....thank you
thintech
Forum Members
Forum Members
Posts: 23
Joined: Thu Sep 25, 2008 11:53 am

Re: html being dropped?? [Solved]

Post by thintech »

Solved...Thanks

Any comments welcome....

http://www.dat1.co.uk


(Still under construction)
Last edited by thintech on Fri Apr 03, 2009 2:23 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”