Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • kb100 Friend
    #195754

    Hi Guys,

    I’ve got an issue with the “Content-Feautured” layout.
    Purity 3 creates an own Bootstrap-Row for euch Row of Featured Articles – If you’ve got 2 Columns, Purity puts 2 Articles in one Row in differnet columns, the next 2 Articles get their own Row and so on.

    The Output looks like this in the DOM:
    <div class=”blog-featured”>
    <div class=”items-row cols-2 row-0 row”>
    <div class=”item column-1 col-md-6″>
    <article> <!–Article 1–> </article>
    </div>
    <div class=”item column-2 col-md-6″>
    <article> <!–Article 2–> </article>
    </div>
    </div>
    <div class=”items-row cols-2 row-1 row”>
    <div class=”item column-1 col-md-6″>
    <article> <!–Article 3–> </article>
    </div>
    <div class=”item column-2 col-md-6″>
    <article> <!–Article 4–> </article>
    </div>
    </div>
    </div>

    With this structure, the article with the biggest height determines the height of the row, smaller ones have white space on the bottom.

    I’d like to position Article 3 exactyle under Article 1, I made a screenshot for better understanding, since my English is not the best… The DOM should look like this afterwards:
    <div class=”blog-featured”>
    <div class=”items-row cols-2 row-0 row”>
    <div class=”item column-1 col-md-6″>
    <article> <!–Article 1–> </article>
    <article> <!–Article 2–> </article>
    </div>
    <div class=”item column-2 col-md-6″>
    <article> <!–Article 3–> </article>
    <article> <!–Article 4–> </article>
    </div>
    </div>
    </div>

    I tried to tweak the Code in /templates/purity_iii/html/com_content/featured/default.php, Line 49-76, but I didn’t get it to work…
    [PHP]<?php if (!empty($this->intro_items)) : ?>
    <?php foreach ($this->intro_items as $key => &$item) : ?>

    <?php
    $key = ($key – $leadingcount) + 1;
    $rowcount = (((int) $key – 1) % (int) $this->columns) + 1;
    $row = $counter / $this->columns;

    if ($rowcount == 1) : ?>

    <div class=”items-row cols-<?php echo (int) $this->columns;?> <?php echo ‘row-‘.$row; ?> row”>
    <?php endif; ?>

    <div class=”item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ‘ system-unpublished’ : null; ?> col-md-<?php echo round((12 / $this->columns));?>”>
    <?php
    $this->item = &$item;
    echo $this->loadTemplate(‘item’);
    ?>
    </div>
    <?php $counter++; ?>

    <?php if (($rowcount == $this->columns) or ($counter == $introcount)) : ?>

    </div>
    <?php endif; ?>

    <?php endforeach; ?>
    <?php endif; ?>[/PHP]

    Do you have any suggestions for me? Any help appreciated!

    Many Thanks in advance,
    Max


    1. FeaturedStandard
    2. FeaturedTweaked
    Nazario A Friend
    #526861

    Hi Max,

    Please PM me the URL, admin, FTP credential of your site, I need to have a closer look into your site and will give you suggestion then.

    kb100 Friend
    #527720

    <em>@Nazario A 416549 wrote:</em><blockquote>Hi Max,

    Please PM me the URL, admin, FTP credential of your site, I need to have a closer look into your site and will give you suggestion then.</blockquote>

    Thanks, you’ve got Mail 🙂

    Nazario A Friend
    #527982

    @kb100,

    I could not access your admin (http://prntscr.com/33wjji). Please PM me correct credentials again.

    By the way, have you tried out this user guide?

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Nazario A 10 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum