-
AuthorPosts
-
March 13, 2014 at 11:55 am #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-
Nazario A Friend
Nazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
March 22, 2014 at 8:44 pm #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 FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
March 25, 2014 at 4:21 am #527982I 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?
-
AuthorPosts
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, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-