-
AuthorPosts
-
February 16, 2018 at 10:27 pm #1092301
If you Click on an Article’s Image while browsing an Article page, you’ll get back to a Home page: how to remove this link? I definlitely prefer to do this in the default Joomla settings, somehow. Editing each article settings is too painful. Please, kindly check your demo site – click the main article image on this page, for example: http://ja-hotel.demo.joomlart.com/index.php/en/places/94-amsterdam/127-seasonal-color
February 18, 2018 at 7:16 pm #1092403Hi
Edit file: root/templates/ja_hotel/html/layouts/joomla/content/image/intro.phpFind this code:
<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>
Replace with:
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?> </div>
February 19, 2018 at 4:19 am #1092437Hi, and thanks! Guess, this solution will also remove a link to an article from article’s intro in a list of categories and acm cards, which is definitely not good. As I’m supporting my project 7/24, on a weekend I’ve created/edited a bunch of layout files, and while a link in a list of categories and acm was not lost, it was removed from an article images. Anyway, thank you once more)
- This reply was modified 6 years, 9 months ago by galaxx.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 19, 2018 at 10:12 am #1092509Hi,
You can try this tweak:
1) Duplicate above file: root/templates/ja_hotel/html/layouts/joomla/content/image/intro.php to have a new file called intro2.phproot/templates/ja_hotel/html/layouts/joomla/content/image/intro2.php
Then edit file like suggested above.
2) Duplicated this folder: root/templates/ja_hotel/html/layouts/joomla/content/intro/
to have a new folder called: root/templates/ja_hotel/html/layouts/joomla/content/intro2/ (keep all the files inside ‘intro’ folder in this new folder)
3) Go to files:
root/templates/ja_hotel/html/layouts/joomla/content/intro2/default.php
root/templates/ja_hotel/html/layouts/joomla/content/intro2/event.phpLook for the line of code which renders the intro image like:
<?php echo JLayoutHelper::render('joomla.content.image.intro', array('item'=>$item, 'img-size'=>$img_size)); ?>
change it to:
<?php echo JLayoutHelper::render('joomla.content.image.intro2', array('item'=>$item, 'img-size'=>$img_size)); ?>
and:
<?php echo JLayoutHelper::render('joomla.content.image.intro', $displayData); ?>
change it to:
<?php echo JLayoutHelper::render('joomla.content.image.intro2', $displayData); ?>
Now, go to the PHP file of JA ACM Magazine – Featured News : grid module: root/templates/ja_hotel/acm/news-featured/tmpl/grid.php
Find this line of code (at approx line 93):
<?php echo JATemplateHelper::render($item, 'joomla.content.intro', array('item' => $item, 'params' => $aparams)); ?>
change it to:
<?php echo JATemplateHelper::render($item, 'joomla.content.intro2', array('item' => $item, 'params' => $aparams)); ?>
Hope this helps.
February 19, 2018 at 11:06 am #1092520I use this code to keep the links on category images:
…/image/intro.php<?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <?php if (JRequest::getVar('view')=='category'){ ?> <a href="<?php echo $link; ?>" title="<?php echo $item->title; ?>"> <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?> </a> <?php }else{ ?> <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?> <?php }; ?> </div> <?php endif ?>
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by mpiprojects 6 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum