Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • xiondesigns Friend
    #151788

    Hi, im creating a new website here:
    http://www.iguazuviajes.com/15/

    Its a modified version from Ja Norite.

    In internal pages like:
    http://www.iguazuviajes.com/15/index.php?option=com_zoo&task=item&item_id=1

    The right column goes down. I have modified the layout to add those rounded backgrounds but i see the difference beetween frontpage and internal pages is this:

    In frontpage:

    In internal pages:

    I mean, the ja-right goes inside another div, And this happens in most of the template. could it be something i have modified?.

    Thanks

    xiondesigns Friend
    #347025

    SOLVED.

    I was just forgetting to start a div inside the PHP IF condition.. so if there where no modules published that starting div was braking the whole website.

    Thanks anyway xD

    riteshdalal Friend
    #347034

    This also happens when a K2 category is supposed to show 2 columns but has an odd number of items to go in that layout

    xiondesigns Friend
    #347035

    That was another problem i had!… thanks đŸ˜€

    izerobot Friend
    #347100

    specificlly in regard of K2 category – what DIV should I add and where to add it to???

    xiondesigns Friend
    #347124

    <em>@riteshdalal 182796 wrote:</em><blockquote>This also happens when a K2 category is supposed to show 2 columns but has an odd number of items to go in that layout</blockquote>

    If you discover how yo solve this, please post it.

    I had that problem on some websites, but now i have a similar problem on two categories:

    http://www.jpfeinmann.com/?option=com_k2&view=itemlist&task=category&id=29:2008&Itemid=10
    http://www.jpfeinmann.com/?option=com_k2&view=itemlist&task=category&id=30:2009&Itemid=10

    The footer gets broken.

    riteshdalal Friend
    #347143

    So the issue is in the category.php file under /templates/ja_norite/html/com_k2/category.php

    On line 146
    <?php if(($key+1)%($this->params->get(‘num_leading_columns’))==0): ?>

    On line 171
    <?php if(($key+1)%($this->params->get(‘num_primary_columns’))==0): ?>

    On line 196
    <?php if(($key+1)%($this->params->get(‘num_secondary_columns’))==0): ?>

    These if conditions are not satisfied when the number of articles is not an exact multiple of the number of columns

    The fix would be to add a check to see if we have iterated through all the items already by adding a check as follows

    On line 146
    <?php if(($key+1)%($this->params->get(‘num_leading_columns’))==0 || ($key+1)==count($this->leading)): ?>

    On line 171
    <?php if(($key+1)%($this->params->get(‘num_primary_columns’))==0 || ($key+1)==count($this->primary)): ?>

    On line 196
    <?php if(($key+1)%($this->params->get(‘num_secondary_columns’))==0 || ($key+1)==count($this->secondary)): ?>

    David Porré Friend
    #348391

    Hello riteshdalal,
    Thanks for your fix, works perfectly ! ;p
    Best regards,
    David aka Shapes

    Peter Konstantakos Friend
    #358088

    Great fix dude. I would have never figured that out. Is this issue addressed in the template upgrade?

    Saguaros Moderator
    #358159

    <em>@Konstantakos 197361 wrote:</em><blockquote>Great fix dude. I would have never figured that out. Is this issue addressed in the template upgrade?</blockquote>
    Please try to check again, the problem is fixed, because i have checked this, i could not found the issue as you mentioned đŸ™‚

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

This topic contains 10 replies, has 6 voices, and was last updated by  Saguaros 14 years, 1 month ago.

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