No Code Attached Yet J3 Issue
avatar Scrabble96
Scrabble96
20 Dec 2019

Steps to reproduce the issue

Create a new menu item of type "Articles > Category List"
In the 'Options' tab, ensure that 'Linked Titles' is set to 'No'.

Why do I want to do that? Well, when creating this menu item in a menu for front editors, I want them to click the 'Edit' button which takes them straight to the editor. Clicking an article title link takes them not to the editor but to the actual article. Then, to edit the article they have to go through further clicks to access the editor.

Expected result

Unclickable article titles

Actual result

Active article links

System information (as much as possible)

Brand new installation of Protostar installed today (to ensure it wasn't an issue with my template overrides) on J3.9.14 but I first noticed this a year ago. Apache server, PHP 7.2.

Additional comments

This works correctly in J4 Alpha.

avatar Scrabble96 Scrabble96 - open - 20 Dec 2019
avatar joomla-cms-bot joomla-cms-bot - change - 20 Dec 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Dec 2019
avatar brianteeman
brianteeman - comment - 21 Dec 2019

You could resolve this by creating an override. The code is probably the same as for a blog title

<?php if ($params->get('show_title')) : ?>
<h2 itemprop="name">
<?php if ($params->get('link_titles') && ($params->get('access-view') || $params->get('show_noauth', '0') == '1')) : ?>
<a href="<?php echo JRoute::_(
ContentHelperRoute::getArticleRoute($displayData->slug, $displayData->catid, $displayData->language)
); ?>" itemprop="url">
<?php echo $this->escape($displayData->title); ?>
</a>
<?php else : ?>
<?php echo $this->escape($displayData->title); ?>
<?php endif; ?>
</h2>

avatar Scrabble96
Scrabble96 - comment - 21 Dec 2019

Yes, I realise I could create an override (and I'll have to), but it doesn't explain why it isn't working as expected, but does in J4 Alpha. The default.php code is almost identical apart from the params/helper part. Something in there, perhaps?

Correction: should have said 'default_articles.php'

avatar Quy Quy - change - 2 Jan 2020
Labels Added: J3 Issue
avatar Quy Quy - labeled - 2 Jan 2020
avatar ReLater
ReLater - comment - 25 Feb 2020

@HLeithner
Do we want to change the described behavior in Joomla 3 or should issue be closed as "expected/wanted behavior"?

avatar HLeithner
HLeithner - comment - 5 Mar 2020

@ReLater sounds like a bug to me and should be fixed

avatar ReLater
ReLater - comment - 5 Mar 2020

I reflected a bit on this issue: The situation in catergory list views is a little bit different from category blog views.

We should be aware that one cannot open articles then from the list view page because the title field is the only one that has a link in a table row. There is no readmore button or intro image or other.

but it doesn't explain why it isn't working as expected, but does in J4 Alpha.

I cannot confirm that it works like described above in current J4 nightly:

001

002

avatar ReLater
ReLater - comment - 5 Mar 2020

...that is to say I would close this issue with mark "expected behavior".

avatar SharkyKZ
SharkyKZ - comment - 6 Mar 2020

Looking at code history, this parameter was never used in category list layout. It only affected single article layout. That use was removed with #4402.

avatar Scrabble96
Scrabble96 - comment - 6 Mar 2020

Looking at code history, this parameter was never used in category list layout. It only affected single article layout. That use was removed with #4402.

Which begs the question: why is the 'Linked Titles' option there at all if it's expected behaviour that it changes nothing if 'No' is selected?

My original query was based on looking at category lists when logged into the frontend with editing rights. Clicking 'Edit' takes the user straight to the editor. Clicking the active 'title' doesn't.

linked-category-list-titles

avatar SharkyKZ
SharkyKZ - comment - 6 Mar 2020

Because whoever did #4402 forgot to remove it ?

Clicking 'Edit' takes the user straight to the editor. Clicking the active 'title' doesn't.

I consider this to be expected behavior.

avatar Scrabble96
Scrabble96 - comment - 6 Mar 2020

In the meantime, I have achieved what I need with an override.

avatar ReLater
ReLater - comment - 6 Mar 2020

why is the 'Linked Titles' option there at all

"Linked Titles" is in tabulator "Options". It's inherited by the single article views!!

One could discuss if it's clever to link the title then in blog views, too, if activated but as said above:

We should be aware that one cannot open articles then from the list view page because the title field is the only one that has a link in a table row.

If we change something here we should establish a new parameter/option like "butNotInCategoryView". That would match all needs and expectations.

avatar ReLater
ReLater - comment - 6 Mar 2020

Forget my last post above. I'm wrong.

avatar ReLater
ReLater - comment - 6 Mar 2020

I will provide a pr. Let's see what happens with it.

avatar ReLater
ReLater - comment - 6 Mar 2020

Not that easy. I'm sorry that I have to cancel my proposal to provide a pr.

We also have a setting show_associations. If activated it shows LINKED language labels to associated articles. That's too much effort and too time-consuming to find an acceptable solution for this case and everybody. It's not just deactivating the links but also CSS classes that have to be ported to <span>s and so on.

avatar brianteeman
brianteeman - comment - 23 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

As this issue doesn't relate to Joomla 4 it will now been closed.

If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24

avatar zero-24 zero-24 - change - 23 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-23 13:39:34
Closed_By zero-24
Labels Added: No Code Attached Yet
Removed: ?
avatar zero-24 zero-24 - close - 23 Aug 2022

Add a Comment

Login with GitHub to post a comment