Page 1 of 1

News module - problem and a workaround

Posted: Fri Jun 15, 2007 12:02 pm
by olavt
I have tried a few times to get help with a problem with the News-module, without result. A \ is added before each " or ', and it seems to happen each time the news item is saved. (Edit the item, and you get a new \ added). This destroys every URL, as they will be like Site. I had almost given up using the News module for this reason.

The \ seems to be added when the news item is prepared for storage in the database. And it seems that the basic error is that text extracted from the database is parsed as plain html, not as php, smarty or anything like that. (Maybe php will work, but not smarty tags.) When the text is extracted from the database and put on the page, the \ does not work as an escape command.

Frustrated by this, I had decided to make my own news table in the database and include it with a user defined tag. But when I looked at the cms_module_news table in the database, I found that I could edit out the unwanted \ from the text in the database. I practice I write a dummy text in the news module, and then write the real text in a html editor and paste the html-formatted text into the relevant fields in the database. I cannot say that news are "Made Simple" this way, but it works. Now it is possible to write news with URLs, which is how I want to use this module. But I really hope that this will be fixed.

Re: News module - problem and a workaround

Posted: Sat Jun 16, 2007 2:35 pm
by calguy1000
Have you tried isolating the problem, i.e: by disabling the wysiwyg (to see if it is a wysiwyg problem). 

Also, you haven't explained which version of CMS Made Simple you're working with.

Re: News module - problem and a workaround

Posted: Sat Jun 16, 2007 11:23 pm
by olavt
I started with version 1.05, and have upgraded to 1.07 via 1.06. The problem has been there through all these versions.

The WYSIWYG (unfortunatly) does not work with Opera. The news items have been written as plin html-code, not using the WYSIWYG editor.

The error only occurs in the News module.

Re: News module - problem and a workaround

Posted: Mon Jun 18, 2007 12:56 pm
by stopsatgreen
I had this exact same problem with the PiSearch module:

http://forum.cmsmadesimple.org/index.ph ... l#msg39502

Never experienced it with News, though.