Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Mar 04, 2013 @ 09:00
    Bjarne Fyrstenborg
    0

    List item data in groups of four

    I want to list some company logos in a grid with 4 columns.

    So I loop through the company nodes:

    <xsl:foreach select="$company">
    <div class="item">
      <img src="" alt="" />
    </div>
    </xsl:foreach>

    I would like to place a div with details after each 4th item, but still with each company info.

    So instead of this:
    <div class="item">...</div>
    <div class="details">...</div>
    <div class="item">...</div>
    <div class="details">...</div>
    <div class="item">...</div>
    <div class="details">...</div>
    <div class="item">...</div>
    <div class="details">...</div>

    a want something like this:

    <div class="item">...</div>
    <div class="item">...</div>
    <div class="item">...</div>
    <div class="item">...</div>
    <div class="details">...</div>
    <div class="details">...</div>
    <div class="details">...</div>
    <div class="details">...</div>
    <div class="item">...</div>
    ....

    How can I achieve this?

    I want this setup to match the number of columns, so onclick on each company logo, I can expand a row below with to details of the company.

    An example of the functionality you could click on the first logo in the upper left corner here: http://vindinggaardcenter.skaevt.com/

    /Bjarne

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Mar 04, 2013 @ 12:59
    Jeroen Breuer
    0

    If you can also use Razor try this: http://our.umbraco.org/forum/developers/razor/33050-IngroupsOf

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies