Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • hariorama Friend
    #187413

    who knows how to make these images in blocks klickabel to the article?


    1. images
    Saguaros Moderator
    #492662

    Hi hariorama,

    In that block, we use default ‘Articles Category’ module of Joomla, you need to hack in code to achieve like that.

    Take a backup for your site first then try this way:

    – Open file: templatesja_argohtmlmod_articles_categorybrick.php

    – At approx line 57:
    [PHP]
    <img title=”<?php echo htmlspecialchars($caption) ?>” src=”<?php echo htmlspecialchars($image); ?>” alt=”<?php echo htmlspecialchars($alt); ?>”/>
    [/PHP]

    change it to

    [PHP]
    <a href=”<?php echo $item->link; ?>”>
    <img title=”<?php echo htmlspecialchars($caption) ?>” src=”<?php echo htmlspecialchars($image); ?>” alt=”<?php echo htmlspecialchars($alt); ?>”/>
    </a>
    [/PHP]

    Give it a try and let me know how it goes 🙂

    This thread was missed to reply and I’m sorry for the same.

    Regards

    hariorama Friend
    #492671

    thanks so much saguaros. it works like a charm. 🙂

    can we also do it with these images?


    1. Neues-Bild
    Saguaros Moderator
    #492908

    Hi again,

    In this case, you need to change template override file for com_content.

    – Go to file: templatesja_argohtmlcom_contentcategoryblog_item.php

    – You’re looking for the following block of code, around line 34

    [PHP]
    <img
    <?php if ($images->image_intro_caption):
    echo ‘class=”caption”‘.’ title=”‘ .htmlspecialchars($images->image_intro_caption) .'”‘;
    endif; ?>
    src=”<?php echo htmlspecialchars($images->image_intro); ?>” alt=”<?php echo htmlspecialchars($images->image_intro_alt); ?>”/>
    [/PHP]

    change it to:

    [PHP]
    <a href=”<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>”>
    <img
    <?php if ($images->image_intro_caption):
    echo ‘class=”caption”‘.’ title=”‘ .htmlspecialchars($images->image_intro_caption) .'”‘;
    endif; ?>
    src=”<?php echo htmlspecialchars($images->image_intro); ?>” alt=”<?php echo htmlspecialchars($images->image_intro_alt); ?>”/></a>
    [/PHP]

    and inform me the result 🙂

    hariorama Friend
    #492912

    fantastic saguaros. many thanks.

    one more thing: do you have any idea, how i can get the old images to crop, which i uploaded via joomlack editor, in category layout?


    1. 2
    Saguaros Moderator
    #492915

    Hi,

    What do you mean by ‘old images’ here? As in demo site, images are added via ‘Images and Links’ section in article configuration: http://i.imgur.com/Qhbgllx.png

    🙂

    hariorama Friend
    #492917

    yes, thats what i am doing now. but before (teline iv, joomla 1.5 and joomla 2.5) i uploaded via joomlack editor the articles and images.

    all my old articles have now with ja_argo strange image size.

    Saguaros Moderator
    #493079

    These images may be generated with different size due to different usage in # modules. Did you try to change default template to telineiv template and check these images’ sizeagain?

    hariorama Friend
    #493206

    to use telive iv is no more an option. with teline iv i used bk-mulit-thumb plugin to get good thumbnails, which is now also no more an option.

    Saguaros Moderator
    #493283

    Hi again,

    As in demo site, the Home menu item has type of Category Blog and the images should be retrieved from Images and Links by default so I think its good to continue input images in that way.

    regards

    joomdude808 Friend
    #494798

    How would you accomplish this in the K2 Category page? Make the blocks clickable links that is.

    Css Magician Friend
    #494818

    <em>@joomdude808 375421 wrote:</em><blockquote>How would you accomplish this in the K2 Category page? Make the blocks clickable links that is.</blockquote>

    Hi joomdude808,

    I checked JA Argo, image is linkable in K2 Category Page.

    Regards

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

This topic contains 12 replies, has 4 voices, and was last updated by  Css Magician 11 years, 5 months ago.

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