ZenphotoCMS Forum
Saving deletes html in description - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Saving deletes html in description (/thread-4955.html)



Saving deletes html in description - ekvernen - 2009-04-03

Hi!
When I edit a photo or gallery description from the administrative back-end of my gallery, and then click "save," any html tags that were included in the description are lost. These tags seem to be generated when I add manual line breaks on the front end (by pressing enter when editing a description).

Is there a way that I can get Zenphoto to keep these tags in the description fields? As it is right now, anytime I edit an image description via the back end, I have to go back through the front end and add a bunch of manual line breaks for the surrounding 10 images.

Thanks so much!
Elisabeth




Saving deletes html in description - sbillard - 2009-04-03

There is an allowed tags option for the gallery. You need to be sure any tags you want to use in your descriptions are included in the allowed list.




Saving deletes html in description - ekvernen - 2009-04-04

Would I just add the break code to the list and save? (Sorry for my ignorance!) The other tags were set up in a strange way, i.e.

h3=>(style=>())

I wasn't sure exactly how to add the break tag. When I tried and then went back, it just showed up as a blank line (I think it's applying the code).
Thanks.




Saving deletes html in description - sbillard - 2009-04-04

br=>()




Saving deletes html in description - ekvernen - 2009-04-04

Thanks!




Saving deletes html in description - smiguel - 2009-04-06

I want put in the description this code:

Hola Hello

But I can't!!!

Any solution?




Saving deletes html in description - sbillard - 2009-04-06

You must make sure any tags you wish to use are listed in the allowed tags list in the gallery options. So you would need to add span=>(class=>()) to the list.