-
AuthorPosts
-
thefc_uk Friend
thefc_uk
- Join date:
- May 2007
- Posts:
- 143
- Downloads:
- 89
- Uploads:
- 15
- Thanks:
- 55
- Thanked:
- 20 times in 2 posts
January 8, 2013 at 2:18 pm #183766Hi
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
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 10, 2013 at 9:10 am #479227Regarding 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
}
?>AuthorPostsViewing 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
K2 Tags – Page layout issue
Viewing 2 posts - 1 through 2 (of 2 total)