We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12168
    • 19 Posts
    Here’s what i’d like to do.

    Main Page - On the main page I use a ditto call to call some of my recent news. I use fancybox to pop up an IFRAME to call the news using a blank template.

    Articles Page - I also have an articles page linking all news and archives. I’d like to be able to click on the news articles using a different template.

    Is there an easy way of changing the template if different conditions are met? or using $_GET variables?


    Thanks,

    Nick.

      • 33992 ☆ A M B ☆
      • 455 Posts
      As TVs are depended to Templates, changing Templates by request does not seems nice or may be impossible.
      I suggest to create a resource to only display iframe data. Put an Ditto in it and use Ditto request extender to specify resource ID by GET And link to news something like below:
      http://www.example.com/news.html?ditto_documents=15

      Beware about accessing users to restricted resources by ditto parameters...
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)