Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • alyks Friend
    #199075

    Hi,

    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 Friend
    #540012

    Hi,

    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.


    1. Screenshot_7
    alyks Friend
    #540156

    It 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 Friend
    #540206

    Please 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;


    1. Screenshot_11
    alyks Friend
    #540340

    Thank you !!!

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

This topic contains 5 replies, has 2 voices, and was last updated by  alyks 9 years, 10 months ago.

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