Page 1 of 1

Two problems (and two hacks)

Posted: Sun Jul 09, 2006 1:19 pm
by gsalmeri
A few days ago I have installed my first site using CMSMS. All is excellent, but I have met two little but annoying problems. Both of them regard the editing of a page *after* its creation.

1. When re-editing a page where I have inserted the entity &, the entity is silently transformed in a simple &. The consequence is that the page does not validate anymore, unless each time I correct the text before submitting.
2. When re-editing a page that contains a tag, a total disaster follows. Therefore I have to delete the page and to re-create it in order to make any correction.

I have found the workaround of making two user defined tags {amp} and {endtextarea}, defined as "echo '&';" and "echo '';", but I think that in the first case there is a little bug should be corrected, in the second a mechanism should be coded that automatically (albeit not transparently) does some transformation in the code inserted.

Anyway: congratulations to the authors for this excellent program!

Re: Two problems (and two hacks)

Posted: Sun Jul 09, 2006 1:23 pm
by Dr.CSS
are you putting these directly into the edit 'box' or are you cliking the source button and putting them in that 'window'?

Re: Two problems (and two hacks)

Posted: Sun Jul 09, 2006 1:34 pm
by gsalmeri
mark wrote: are you putting these directly into the edit 'box' or are you cliking the source button and putting them in that 'window'?
Sorry, I'm afraid I don't understand. When in the Admin panel I am in listcontent.php, I click on the edit icon (that calls editcontent.php), then I edit the "Content" textarea. Is there another way to edit a page?

Re: Two problems (and two hacks)

Posted: Sun Jul 09, 2006 1:53 pm
by gsalmeri
gsalmeri wrote: A few days ago I have installed my first site using CMSMS. All is excellent, but I have met two little but annoying problems. Both of them regard the editing of a page *after* its creation.
In case it helps: CMS Made Simple 0.13, PHP 4.3.10, MySQL 4.0.25-standard, Apache 1.3.34 (Unix) running on Linux.
Sorry for not saying that before.

Re: Two problems (and two hacks)

Posted: Sun Jul 09, 2006 1:55 pm
by Dr.CSS
when in the Content » Pages » Edit Page: yourpage, you have a content edit 'box'/textarea with a tool bar across the top, some things need to go in the source so they dont get changed by the editor, in the upper left corner there is a 'Source' button clik that and you will see the HTML version of the content things like that, this is useful for adding module tags and such so they don't end up with {moduletag} or some other formatting :.
what is the for?

Re: Two problems (and two hacks)

Posted: Sun Jul 09, 2006 5:34 pm
by gsalmeri
mark wrote: when in the Content » Pages » Edit Page: yourpage, you have a content edit 'box'/textarea with a tool bar across the top
Thank you very much for your hint, I think I have undestood exactly my problem. Normally I use Opera, which is not compatible with FCKeditor, so I didn't even see the toolbar... No problem for me, since I don't want a wysiwyg editor (I have always coded HTM by hand). BUT after some experiments I have discovered that the problem with the ampersand arise only when in Opera (or perhaps in any browser that isn't supported by FCKeditor) FCKeditor is not actually disabled (in User Prefs). I don't know if this could be called a bug, but perhaps a remark in the documentation should be useful.

Now I will investigate the problem...

Re: Two problems (and two hacks)

Posted: Sun Jul 09, 2006 5:39 pm
by gsalmeri
Also the issue with is addressed by explicitely disabling FCKeditor. Now all is OK. Thank again for the hint.