Question

I have a joomla 1.5 installation and for some reason when ever i put in an iframe into the site joomla strips it out.

I copy and past this code into the code editor and chose save and it will remove it. How do i make it stop this?

<iframe src ="client_login.html" width="100%" height="300px">
  <p>Your browser does not support iframes.</p>
</iframe>
Was it helpful?

Solution

I ran into the same problem when trying to embed Google map widgets into articles. The solution that I found was to do the following:

  1. In Article Preferences (Content->Article Manager->Parameters), under "Filtering Options", deselect the group associated with your user account -- this will disable the server-side sanitization
  2. On your user account page (Site->User Manager->your name), under "Parameters" set "User Editor" to "No Editor" -- this will prevent the WYSIWYG editor from stripping out the IFRAME tag

Now obviously this solution has one glaring problem: you're not going to want to do this for groups the general public will fall into. In my case, it was just for "Super Administrator" so I considered it an acceptable risk.

You can easily toggle the user editor on and off, so if you only have to add such content sparingly it shouldn't be too terribly annoying. The other advantage here is that this is a stock Joomla! 1.5 solution so future upgrades shouldn't break this workaround, and it doesn't require an extension which may impact performance.

OTHER TIPS

After trying Whitelist in Article manager, and use iframe plugins and not working, sourcerer plugin did it. Use the [[ ]] to replace < and >.

I had tried plugins before to do this but none of them seemed to work either. I found a REALLY simple plugin thats works perfect.

http://extensions.joomla.org/extensions/style-&-design/popups-&-iframes/4144/details

To add an iframe with it all you do is {iframe}url{/iframe} you can set width and height and everything.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top