On a recent client’s site I had to create a form in a module position to allow users to book a room. Everything looked fine and dandy in the backend, however, when the user clicked on the submit button on the frontend the page just refreshed. On further analysis it turned out that Joomla (1.7.2) was stripping the action tag from the form.
OK, have come across this in Joomla 1.5 (and 1.0) a number of times so I went into the JCE administrator and turned off all code cleanup and tried again. That’s odd, it happened again. What’s going on? hmm, I wonder if this is a problem with the new JCE (unlikely methinks) or if it’s some quirk of Joomla 1.6 and Joomla 1.7.
OK, no try it in plain text view. Same problem!
OK, so now to I turned off the editor in the Global Configuration – I really thought that this would work as I’m just editing plain text now, but it didn’t. Hmm, something quite different in Joomla 1.6 and Joomla 1.7 then. On further research this behaviour was occurring due to Joomla‘s new text filtering functionality.
Solution: Even though this is a module the content editing is controlled by the Article Manager options. To fix
- Go to Article Manager
- Options
- Text Filtering
- Select the group Super Users
- Select No Filtering
- Save
Once I went back to the module manager the code was being saved correctly.
I can’t understand why the system would be set to strip these kind of tags out by default, but at least I have a workaround now.
UPDATE: Joomla 2.5 has been released. In this version the team have moved the Text Filtering option into the Global Configuration section.
QED
Thank you for this article! This was driving me crazy.
Glad it helped!
This was driving me crazy as well. I checked several websites until I finally realized what the real problem was which you described perfectly. Fortunately, unlike Joomla’s forum, you had the right solution. I had changed the editors, changed attributes to the editors to no avail. One thing, I had changed the allowed elements and attributes for TinyMCE and it was still doing crazy stuff. When I took them out, everything went back to normal. Also, don’t forget to log out and back in when doing this change. Apparently although the settings are set, since the action is happening on the database, the old filters appear to still be running.
Thanks again!
Hi Iain, thanks for taking the time to reply. Yeah, that caught me out for a while before I found a solution. Also remember that the location of the text filtering is under Global Configuration on the new Joomla (2.5+).
Trev
Thank you for posting this solution!! This has been driving me crazy too, and of course, this works like a charm!!!
Liz
Thanks for the post Liz. Glad it helped.
Thank you CMSBloke – nailed it.
good. Thank you for this article!