We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5994
    • 46 Posts
    Hi all,

    Let’s say I write an article on a page, and then need to insert a photo directly under the text. Is the recommended way to do this simply to use the ’insert image’ button in TinyMCE? I ask this because I’m trying to do just that, with an adsense ad block between the text and the photo, but the adsense keeps getting pushed under the photo.

    I know that I can go back in and manually move things around to correct this, but I hate to resort to that unless I have to. My existing static website has hundreds of pages that consist of text, adsense and a photo, all waiting to be converted. So I was maybe hoping for a more efficient and faster solution.

    I am already using a template intended specifically for this portion of my website, so I’m essentially free to do or change anything I need to.

    I’m new to modx so I know I’m missing something basic here. But any insight or suggestions would be really helpful!

    Cris

      • 16895
      • 87 Posts
      Sounds like a TinyMCE bug, but I’m not sure---is the adsense block integrated into your template or not? If every post ends with a photo it might be easier to use a Template Variable to show it. That means your template would look something like this (with the adsense built in automatically as a chunk):
      [*content*]
      {{adsense}}
      [*photo*]
      Set the photo TV up as richtext and then insert the photo into that.
        • 5994
        • 46 Posts
        Hey thanks for the help, legio. I did just that and it seems to have worked fine. My first template variable and it’s a success!

        Cris
          • 16895
          • 87 Posts
          Well done smiley