We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36985
    • 9 Posts
    This is my current setup i have four columns that stack by eachother, notice that the last div is called "threecol last", i can easily call [[$BlogPostTemplate]] into the first "threecol", and it generates fine. But it breaks the layout if it doesnt have the last div extension "threecol last". How can i solve this?

    This is revolution btw

    <div class="threecol">
    </div>
    <div class="threecol">
    </div>
    <div class="threecol">
    </div>
    <div class="threecol last">
    </div>
    [ed. note: wrkwrk last edited this post 15 years, 1 month ago.]
      • 12028
      • 152 Posts
      Well - I don't know what you are using to output your div's, but if you are using getResources it could be something like:

      [[getResources? &parents=`5` &tpl=`chk-threecol` &tplLast=`chk-threecol-last` ]] etc.


      where the chunk chk-threecol contains
      <div class="threecol">
         [[+placeholdertagshere]]
      </div>


      And the chunk chk-threecol-last contains
      <div class="threecol last">
         [[+placeholdertagshere]]
      </div>


      You can read more here: http://rtfm.modx.com/display/ADDON/getResources [ed. note: Henrik Nielsen last edited this post 15 years, 1 month ago.]
        - A small step for mankind, so why not take two...

        Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
        • 36985
        • 9 Posts
        i found a solution just using &tpl4=`chk-threecol-last` &tpl8=`chk-threecol-last` &tpl12=`chk-threecol-last`

        etc works like a charm :O