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.
News module - problem and a workaround Topic is solved
-
olavt
News module - problem and a workaround
Last edited by olavt on Fri Jun 15, 2007 2:30 pm, edited 1 time in total.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: News module - problem and a workaround
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.
Also, you haven't explained which version of CMS Made Simple you're working with.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
olavt
Re: News module - problem and a workaround
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.
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.
-
stopsatgreen
- Power Poster

- Posts: 322
- Joined: Sat Feb 04, 2006 1:24 am
Re: News module - problem and a workaround
I had this exact same problem with the PiSearch module:
http://forum.cmsmadesimple.org/index.ph ... l#msg39502
Never experienced it with News, though.
http://forum.cmsmadesimple.org/index.ph ... l#msg39502
Never experienced it with News, though.
Last edited by stopsatgreen on Mon Jun 18, 2007 12:58 pm, edited 1 time in total.
