We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29181
    • 480 Posts
    Hi,
    I have the following dilemma:

    I need to create a new template which will be used by 4 documents. Each document will, for all intensive purposes, be identical except that a ditto call will have different parameters (filter & id) and the content (obviously).

    My initial thought was to create a TV with the ditto call differing for each of the documents. After initially setting this TV, nobody should really be able to see it. In the past I have found a way (although unorthodox) which I would like to describe:

    I create a TV and assign it to the template. I edit the TV in each page to the setting I require and call it wherever I need to.
    I then delete the TV. The page will still display the TV but the client can’t see it to edit it (or anyone unless they go into the DB). Now obviously this is not how this should work, but in true MODx fashion, if it works, it can’t be wrong...right?

    Ideally I would like to be able to use something similar to ManagerManager but according to the documentation making TV’s invisible is not an option. Because the author of that plugin is light years ahead of me, my thoughts are that if he didnt do it for some reason, I probably can’t.

    Should I be using some other method such as a snippet call and a case statement to grab the doc id?

    I’d like to keep the backend as clutter-free as possible, because if its there...someone is going to break it!

    Your thoughts would be appreciated.

    Taff
      Adrian Lawley: www.adrianlawley.com
      • 7455
      • 2,204 Posts
      create a documentgroup asigned to admin when creating a tv you can select that group on the bottom of the tv (not in the document but in the tv creation part below the tempolate to asign the tv to)

      that way the tv is working for the page and can be changed by the admin but its not showing when a non admin is logged in.

      Dimmy
        follow me on twitter: @dimmy01
        • 29181
        • 480 Posts
        That is just great! Thanks Dimmy, you just made my day.

        Taff
          Adrian Lawley: www.adrianlawley.com