Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • ijokovic Friend
    #201476

    My question is how to add link to intro images?

    I allerdy tried to add the following code in: blog_item.php (path in mitius template)

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

    but with no luck 🙁
    I use latest Joomla 3.3

    Eragon H Friend
    #550344

    You can change in the above file at line 67 : http://prntscr.com/4p5rj8

    From

    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?>"> <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); ?>" itemprop="thumbnailUrl" /> </div>
    <?php endif; ?>

    To

    <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?>"> <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); ?>" itemprop="thumbnailUrl" /> </div>
    <?php endif; ?>
    </a>

    ijokovic Friend
    #550745

    Still not working,
    Like nothing happens when i do the change.

    This is the folder path just to make it sure:
    templates/ja_mitius/html/com_content/category/blog_item.php

    (after change, deleted cache, localy on site… nothing…)

    Eragon H Friend
    #550746

    The path is correct. And it is working at my end: http://prntscr.com/4q5qag

    To be sure, can you:

    1. Specify the place where you want to add this features: direct link + screenshot with description

    2. Share your site URL and temporary admin account via PM. Remember to include the link to this thread

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

This topic contains 4 replies, has 2 voices, and was last updated by  Eragon H 10 years, 2 months ago.

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