? No Code Attached Yet
avatar Scrabble96
Scrabble96
1 Dec 2022

Is your feature request related to a problem? Please describe.

Not a problem, but...

Create a blog with intro images. Some articles are long and have a 'read more' link added. Some articles are short and don't need a 'read more' link. There is the option to turn off linked titles in the individual articles, but only a global setting for linked intro images in the category blog menu item setup (under the 'Blog Layout' tab). If this option is on, then anyone clicking an image - as they might be tempted to do, because the mouse pointer changes to a hand at this point - will be disappointed not to see more text.

Describe the solution you'd like

Add an option to link intro images per article in the article options.

Additional context

avatar Scrabble96 Scrabble96 - open - 1 Dec 2022
avatar joomla-cms-bot joomla-cms-bot - change - 1 Dec 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Dec 2022
avatar brianteeman
brianteeman - comment - 1 Dec 2022

actually its a bug. a link should not be created if there is no readmore but there is no check for this in the layout

<?php if ($params->get('link_intro_image') && ($params->get('access-view') || $params->get('show_noauth', '0') == '1')) : ?>
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($displayData->slug, $displayData->catid, $displayData->language)); ?>" itemprop="url" title="<?php echo $this->escape($displayData->title); ?>">
<?php echo LayoutHelper::render('joomla.html.image', array_merge($layoutAttr, ['itemprop' => 'thumbnailUrl'])); ?>
</a>

avatar chmst chmst - change - 1 Dec 2022
Labels Added: bug
avatar chmst chmst - labeled - 1 Dec 2022
avatar carlitorweb
carlitorweb - comment - 25 Dec 2022

@brianteeman then the link in the title cant be created too if there is not readmore, right? I think, the readmore button should not decide if the image or the title will have a link too. Maybe hidden the readmore button is just part of the page style/desing, and not as defining the article will not have a link at all. What do you think?

avatar Hackwar
Hackwar - comment - 16 Feb 2023

Not a bug, but a request for changed behavior. Marking thus as feature for now.

avatar Hackwar Hackwar - change - 16 Feb 2023
Labels Added: ?
Removed: bug
avatar Hackwar Hackwar - labeled - 16 Feb 2023
avatar Hackwar Hackwar - unlabeled - 16 Feb 2023

Add a Comment

Login with GitHub to post a comment