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

    I was looking at the RTFM for MIGx and was wondering if there is a way to have an alt template chunk for the call, I want to use MIGX to control a list of items, but each item is to have a separate template, I could style it via CSS and the idx tag but that just seems a long way around?

    Thanks
      • 4172
      • 5,888 Posts
      alt template chunk
      but each item is to have a separate template

      every second or each?

      every second:
      [[+_alt:is=`1`:then=`
      alttemplate
      `:else=`
      normal template
      `]]


      each a separate template:
      have a field chunkname, where you have different chunknames as values and use the property:

      &tpl=`@FIELD:chunkname`
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 30912
        • 463 Posts
        Every second item, so;

        Item 1
        Item 2 < this one
        Item 3
        Item 4 < this one.

        I think the _alt placeholder will do it - ill find out when i add it

        thanks

        Tyr