We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26879
    • 53 Posts
    I have an iFrame I need to put in my resource. For some reason it is not displaying. After I submit it, I go back and look at the HTML, and it’s gone. Any idea if there is a work around on this? Thank you!
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: shaftb at Nov 13, 2009, 12:14 PM

      I have an iFrame I need to put in my resource. For some reason it is not displaying. After I submit it, I go back and look at the HTML, and it’s gone. Any idea if there is a work around on this? Thank you!
      If you mean in the source of the Resource, then it’s likely getting stripped by mod_security or a similar extension configured on your web server.
        • 26879
        • 53 Posts
        Yes, sorry. The source of the resource. IS there a way around this by chance? Thank you!
          • 26931
          • 2,314 Posts
          IS there a way around this by chance? Thank you!
          either try disabling RichText for that ressource ( i use iframes on one site with RichText turned off and it’s working ), or go to :
          "Elements" -> "Manage Elements" -> "Plugins" -> "TinyMCE Rich Text Editor" -> "Configuration" -> "Cleanup" -> disabled ( but test this setting beforehand, use cautiously )

          there’s also the View Port Widget for TVs ... it will output an iframe ( haven’t used it yet, you need to search the forum posts for that smiley )

          edit: ...maybe you could also test creating a chunk with the iframe code and placing it in your content field
            • 26879
            • 53 Posts
            Quote from: sharkbait at Nov 13, 2009, 02:50 PM

            edit: ...maybe you could also test creating a chunk with the iframe code and placing it in your content field

            Sharkbait... creating my own chunk worked! Thank you so much. Helps me out a ton. Thank you!
              • 29332
              • 80 Posts
              I’ve tried creating a chunk for my iframe, but it still will not display. my chunk called "iframe" has this:
              <iframe name="service" src="SERVICE_AGREEMENT.pdf" width="600" height="700" border="1"></iframe>


              and I am calling my chunk on my page like this:
              [*iframe*]


              When I go to the page, nothing appears in the content area. Any ideas?
                Teaching myself MODx
                • 9994
                • 133 Posts
                lol yea, a chunk you call with {{iframe}} doh! tongue
                  Best CMS eva!
                  • 42601
                  • 24 Posts
                  ive been hacked with an iframes thing, i deleted everything that had the words iframes and still the hack still appears in the browsers source (yes i cleared the cache) im lost, i have no idea where it may be hidding, I deleted everything with IFRAMES

                  help, anyone????