Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • thefc_uk Friend
    #183766

    Hi

    OK this is my first time using K2 and I’m pulling my hair out with the tag system.

    Our site – Home page

    I want the same layout of tiles as our home page if you click on a tag or if we generate a menu item type K2 Tag.

    What I get is the first time you click a tag OK 🙂

    The second time you click the same tag, a mixture of the JA Lens and JA Lens blog layout – see attached image

    In K2 I’ve set the tag option to default to our home menu item to default the style to JA Lens.

    On the menu items, I’ve set the K2 template style to JA Lens, but all I get is an enlarged version of the JA Lens Blog??

    Anyone got any idea why this happens and even better, how to stop it??

    Thanks


    1. jalens_k2_tags
    Ninja Lead Moderator
    #479227

    Regarding a problem with the first click and second click, you need to check menu appearance for K2 categories with “JA Lens” and “JA Lens blog” layouts. Make sure your menu appears for categories set for JA Lens or JA Lens blog template.

    <blockquote>On the menu items, I’ve set the K2 template style to JA Lens, but all I get is an enlarged version of the JA Lens Blog??</blockquote>
    You can do that
    <blockquote>templates/ja_lens/html/com_k2/ja_lensitem.php</blockquote>
    find and see

    <?php
    $tplComponent = JRequest::getVar('tmpl', '') == 'component';

    if(!$tplComponent){
    ?>
    <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
    <?php
    }
    ?>
    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
    <?php
    if(!$tplComponent){
    ?>
    </a>
    <?php
    }
    ?>

    change to

    <?php
    $tplComponent = JRequest::getVar('tmpl', '') == 'component';

    if(!$tplComponent){
    ?>
    <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
    <?php
    }
    ?>
    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageXLarge; ?>px; height:auto;" />
    <?php
    if(!$tplComponent){
    ?>
    </a>
    <?php
    }
    ?>

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

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 10 months ago.

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