Iframe HTML control is another document or Web page in an inline frame in your document. So what is a user of the Web page is, the document is transparent. Common use of the iframe command include the insertion of a Google calendar in your website, photo, scrolling text or part of another website galleries. This powerful command, you will need to spend a few hurdles to be used with success, however from Joomla.
Horde number 1: filter settings in Joomla options
Login as root Joomla and pass paramètres.faites this.click article Manager scroll and you'll see the filter options at the bottom.This section is a security measure to protect your site from hostile code. you would be anyone who has the possibility to add an article to your site and be able to program code?
You have chosen to white list, are only allowed commands that you list in the tag filter and filter attribute fields (the bottom two fields on the screen) purposesyou have no HTML is selected, all tags HTML stripped when the item is saved.If the black list selected a default list of commands on black list, including the IFRAME command. In addition, you can use the filter groups (registered, author, editor, Publisher, Manager, administrator, super administrator) to which the settings apply.
In order to get your code to stay in your article and have not deleted, you must do one of the following actions:
Enable black list and then select all groups of filterting, except for the groups that you are capable of HTML. in versions of Joomla 1.5.9 use want and in addition, you can ensure that no option is defined .you can check whitelist and iframe tags list add to the filter.
Horde n ° 2: your editor.
TinyMCE and JCE have the bad habit of stripping of iframes (and several other pieces of HTML code) of your document.then, if you're part of this series as the editor and you edit an article, you will lose any work that you typed in.
Try.create a new item.Click Insert HTML.your code.
This is a test.
There is a line of code IFRAME between this is a test and this rule.
Click Update.Look at your article. Click the HTML button again and your code will be lost and you have something that looks like this:
This is a test.
There is a line of code IFRAME between this is a test and this rule.
Do, how you get around to it? first, I recommend installing CodeMirror .c ' is a non-commercial package that says that it will be included in Joomla 1.6 base.CodeMirror package is nice, because it converts the HTML tags in a different color of the text of the article and it does not remove the IFRAME tag.
Expressway to circumvent the editor stripping IFRAME code to obtain the User Manager and click on your account. change your editor CodeMirror as an alternative, it is unnecessary to install CodeMirror.Vous can simply make your editor "noeditor."
To a longer way, favorably, to autour editor stripping to pass to creating another called user "noeditor" or "CodeMirror."Logoff and logon as this utilisateur.Créer your document.then log in again as yourself.I find this method better because the author displays as "noeditor" or "CodeMirror" and I know not to edit this article like myself, thus losing code.
And yet another way to work around this problem is to change your éditeur.Si plugin you use TinyMCE, go to the manager plugin (under extensions).Click on "the TinyMCE editor '.""on the side right of the screen in the settings of the Plugin, there is a radio button for" code cleanup at startup "and" code cleanup to be registered."You can use the" clean-up code on save "forever.
JCE Editor can be changed by logging a superuser and JCE administration/Plugings by selecting the menu component.Look in the list of plugins "Code cleanup" and disable this feature.
Horde No.3: your template.
If you have an iframe with a width of your content area or incorporate module width (depending on the where you are incorporating the iframe), model will get rate up terrible could look at.determine the maximum width of your iframe.some models have verified this column width when you click the name of the template in the template Manager.another.as many times as you used for the calculation of the maximum width is good for the content area.Anyway, it's a little difficult to understand this fate.
You know the maximum width, add a width attribute to your iframe code.
What should I do?
I can tell you what to do because each site has different requirements.I can tell you that for Joomla sites only one or two actual authors (say a customizable client and myself), I disable the cleanup code in the editorial and I set any filter in the settings section.If I were to use a site with several authors make me, it's a nice idea filter.