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

    I was wondering should i keep Content field & Rich text TVs complete clean from code. Including also chunk/snippet tags? I usually add chunk tags to content, but it's a bit problematic when non-technical admin/editor edits pages. It's just easier than deal with templates & snippets etc.
    How do you work with RTE fields?
      • 42562
      • 1,145 Posts
      If my RTE is turned on, I still use MODX tags. It is no problem, the worst thing I can get is that I end up with <p>[[$myChunk]]</p>

      If you are going to set up MODX for non-technical person who uses RTE, tell them to never put in any code in the resource content/TV. Or hide MODX elements tree from the user.
      TinymceWrapper does not allow dragging and dropping of MODX elements; so, quasi-technical users are not likely to screw things up.
      If the user is going to manually type in the [[!MODX tag]], then the person is no longer non-technical.

      Come to think of it, you can write a TinyMCE plugin that will clean off <p>[[$myChunk]]</p> upon save.. ..hmm..
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.