-
AuthorPosts
-
alyks Friend
alyks
- Join date:
- October 2012
- Posts:
- 30
- Downloads:
- 2
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 6 times in 1 posts
June 23, 2014 at 10:05 am #199075Hi,
i want to add images in the K2 articles Full Text. It’s impossible with JA Obelisk K2 template, because it forces any images added on Full Text to appear below the last paragraph into a nice galery.
I would like to add an exception, in some K2 Categories i’m ok with this galery, but in others i want images to be displayed normally along with the paragraphs.
Could you tell me how to dow that, please ?
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 24, 2014 at 10:46 am #540012Hi,
Please open the file: /templates/your_template_name/templateHelper.php then comment or remove this line:
$items = preg_replace('#<img[^>]+>#iU', '', $items);
Let me know how it goes.
alyks Friendalyks
- Join date:
- October 2012
- Posts:
- 30
- Downloads:
- 2
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 6 times in 1 posts
June 25, 2014 at 12:05 pm #540156It works, look at here : http://www.alltheanime.fr/final/index.php?option=com_k2&view=item&id=16:l-attaque-des-titans&Itemid=505
But what if i don’t want the galery at all ?
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
June 26, 2014 at 2:19 am #540206Please open the file: /templates/your_template_name/templateHelper.php then comment or remove this code block:
$items .= '<h3 class="gallery-title">'.JText::_('TPL_PHOTO').'</h3><ul class="thumbnails row-fluid" id="ja-k2-gallery">';
$j = 0;
foreach ($img_data as $img => $attr) :
$items .= '<li class="'.$class.'">'
.'<a title="'.$attr['alt'].'" href="'.(isset($attr['src']) ? $attr['src'] : '').'" class="thumbnail'.($j == 0 ? ' active' : '').'">'
.$img.
'</a>
</li>';
$j++;
endforeach;
alyks Friendalyks
- Join date:
- October 2012
- Posts:
- 30
- Downloads:
- 2
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 6 times in 1 posts
June 26, 2014 at 9:52 pm #540340Thank you !!!
AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 2 voices, and was last updated by alyks 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum