We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19388
    • 297 Posts
    To reduce errors and for debugging reasons I reduced from 3 chunks to two. And simplified this chunks to avoid nested conditionals. But the problem persists. Now, snippet is beign executed two times...
    It is really strange

    diasan_1col
    [*content*]


    diasan_2col
    <div id="colIzq">[*imagenLateral*]
    
    </div>
           <div id="colDer"> 
    
    
    
    [*content*]
            </div>
      • 3749
      • 24,544 Posts
      Take a look at the template used for the page and any chunks used on the page. The [*content*] tag can only appear once and should never be used in the resource field of the resource.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 4172
        • 5,888 Posts
        [*subplantilla:is=`profesionales`:then=`
           {{profesionales_tpl}}
        `:else=`
            [*subplantilla:is=`1columna`:then=`
               {{diasan_1col}}
            `:else=`   
        	    [*subplantilla:is=`2columnas`:then=`
           			{{diasan_2col}}
        		`*] 
            `*] 
        `*] 


        you can do the same without phx.

        for your checkbox/dropdown-TV [*subplantilla*]
        set input-option-values:
        profesionales=={{profesionales_tpl}}||1columna=={{diasan_1col}}||2columnas=={{diasan_2col}}


        in your template just
        [*subplantilla*]

          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 19388
          • 297 Posts
          Thanks for your help. I made it on other way and I’ve just read your code Bruno17 and is better than mine. I’m going to test it. Really thanks all for your help. MODx community is THE BEST! laugh
            • 6228
            • 249 Posts
            Quote from: Bruno17 at Nov 23, 2010, 01:10 AM

            for your checkbox/dropdown-TV [*subplantilla*]
            set input-option-values:
            profesionales=={{profesionales_tpl}}||1columna=={{diasan_1col}}||2columnas=={{diasan_2col}}


            Thanks, Bruno. I had no idea you could call chunks with select options that way. Great tip!
              lo9on.com

              MODx Evolution/Revolution | Remote Desktop Training | Development