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

    i want to list teams and there Matchdates. The structure is the following.

    - Teams
        - Teamname ( team 1 )
            - Matchdates
                - Date1 ( document)
                - Date2 ( document)
        
        - Teamname ( team 2 )
            - Matchdates
                - Date1 ( document)
                - Date2 ( document)
        
        - [further teams] 
    


    The Ditto call in "Teams" is:
    [[Ditto? &tpl=`team` &sortDir=`ASC` &startID=`29` &display=`all`]]


    The Template "team":
    <div class="c4">
        <div class="c4Inner [color=red][classname_dependent_on_current_iteration][/color]">
            [*content*]
            <h2>Matches</h2>     
            [!Ditto? &tpl=`team_dates` &sortBy=`menuindex` &sortDir=`ASC` &startID=`[[FirstChildID?parentID=`[+id+]`]]` &display=`all`!]
        </div>
    </div>
    [on each fourth iteration](<div class="clearboth"></div>)
    


    The Container is formatted(with float) as a colum and now i need hint how to manipulate the classname of the "c4Inner"-container dependent on the current recordnumber and fill in a splitter-container every fourth iteration. I started a attempt with PHx and the [+current+] Placeholder, but the placeholder give nothing back. how to use it?

    more: http://modxcms.com/forums/index.php/topic,15018.0.html

    thank you and sorry for my horrible english, i hope its understandable what i want.
    ciao, Stefan
      • 28436
      • 242 Posts