Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • mpiprojects Friend
    #1084802

    Hello.

    I created a menu item with isotope layout and on my site it properly shows 4 test items. However on your demo, the images link to the article (just as the title does). I want this too. But on my page the images are not linked. I can not find any settings for this 🙁

    Can you tell me where I can set this up please?

    Many thanks.

    timtecsa Friend
    mpiprojects Friend
    #1084817

    Thank you for your reply.
    I followed these steps. And the page looks just like the one from the demo. All items from the category are showing. Show more function is working. Link on title is working. Responsive design is working. The only difference is that there are no clickable images.
    (I refer to this page: http://ja-hotel.demo.joomlart.com/index.php/en/places)

    I thought it could be a difference in template source code. I use default. And the demo (your model) uses full-width. I tested this. But it makes no difference. I guess it shouldn’t make a difference. Since the items are loaded in the main position (name: component). And I don’t believe this position has different layout styles.
    Or does full-width also use a different template/layout/php file for the component position?

    Any help would be appreciated.

    timtecsa Friend
    #1084825

    Mystery. I just made a quickstart installation on my MAMP server and none of the Places images are clickable, only the image title text and the READ MORE.

    On the ja demo site only the top half of the images have active links ???
    http://ja-hotel.demo.joomlart.com/index.php/en/places

    • This reply was modified 6 years, 10 months ago by  timtecsa.
    mpiprojects Friend
    #1084826

    Is it something that is different in the new template version?
    Because on your demo, the images are clickable.

    timtecsa Friend
    #1084828

    Clearly the ja-hotel quickstart installed on my MAMP server is not behaving the same as the ja-hotel live demo site. A question for @saguaros, methinks 🙂

    I have used the Isotope layout before on a ja-Mono template site. The menu setup was quite different to the ja-hotel demo and the images are linked. See: http://www.graphicraft.com.hk/services

    http://www.joomlart.com/demo/#ja_mono I just noticed that the images here are also linked on the top half of the image.

    • This reply was modified 6 years, 10 months ago by  timtecsa.
    • This reply was modified 6 years, 10 months ago by  timtecsa.
    mpiprojects Friend
    #1084839

    Well. It is a little mystery indeed!

    On the solution side of things:
    Can you tell me, which file it is that has the code for these isotope items?
    So that I can just add the A tag myself.
    🙂

    mpiprojects Friend
    #1084844

    In: templates/html/com_content/category/isotope_item.php, I have found the following code:

          <div class="item-media">
                <?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>
            <span class="mask"></span>
            <?php if ($params->get('show_category')) : ?>
                <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $this->item, 'params' => $params)); ?>
            <?php endif; ?>
          </div>

    It appears the link on the image is not a template related issue at all. It looks like it collects this piece of code from the Joomla source. Since the div (pull-none item-image) also is not in this file. And that’s the container wrapping the img tag.

    And then I find this file: templates/html/layouts/joomla/content/image/intro.php

    <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
    <a href="<?php echo $link; ?>">
    <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
    </a>
    </div>
    <?php endif ?>

    So, now I am just confused. Why isn’t it using this override (I assume) file?!

    • This reply was modified 6 years, 10 months ago by  mpiprojects.
    • This reply was modified 6 years, 10 months ago by  mpiprojects.
    • This reply was modified 6 years, 10 months ago by  mpiprojects.
    timtecsa Friend
    #1084866

    Sorry, I’ve no idea.
    Ask @saguaros or @pankaj sharma

    • This reply was modified 6 years, 10 months ago by  timtecsa.

    1. imagelinks
    mpiprojects Friend
    #1084875

    Thanks for your time anyway. I really appreciate it.
    Cheers mate!

    Saguaros Moderator
    #1084910

    Hi,

    You can try opening this file: root/templates/ja_hotel/html/com_content/category/isotope_item.php

    Change this line of code:

    <?php echo JLayoutHelper::render(‘joomla.content.intro_image’, $this->item); ?>
    

    To:

    <?php echo JLayoutHelper::render(‘joomla.content.image.intro’, $this->item); ?>
    

    and see how it goes. (remember to backup the old file first)

    Regards

    mpiprojects Friend
    #1084930

    Yep. That did it!
    Thank you very much! 🙂

    Saguaros Moderator
    #1084941

    You’re welcome!

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

This topic contains 12 replies, has 3 voices, and was last updated by  Saguaros 6 years, 10 months ago.

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