We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22383
    • 5 Posts
    Hello,
    I know there are a few topics about this, but I didn’t find solution/hack for the current ditto version and I really need it :
    I’m currently trying to use ditto to make an XML output for flash,calling ditto recursively in chunk for parsing the entire content. It work well but , unfortunately, in one case i have to call alternative template based on the type of the content ex: gallerie or portfolio .
    The only solution i figured out is to use &tplAlt &tplFirst &tplLast and &tpl with TV embed in parent template.
    This is not practical because the structure of the content is fixed .
    If anyone has a solution ( ditto 2.02 ) , I would be very happy

      • 18397
      • 3,250 Posts
      What about using PHx conditionals in &tpl to "alternative template based on the type of the content"?
      See http://wiki.modxcms.com/index.php/PHx#Conditional_operators
        • 22383
        • 5 Posts
        i’ll try