No Code Attached Yet bug
avatar Scrabble96
Scrabble96
28 Dec 2021

Steps to reproduce the issue

In J4.0.5 create a new text field assigned to all categories.
In the Options tab, under 'Automatic Display', select 'After Title'.
Open an article that you will view as a single article and also as part of a category blog page

Expected result

The field should be displayed after the Title (or after where the title would be if not shown)

Actual result

It only appears in a single article view.
It does not appear in the category blog display.

System information (as much as possible)

Additional comments

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

oops i didnt save the change to aftertitle

avatar Scrabble96
Scrabble96 - comment - 28 Dec 2021

This is what I see:

In a blog...
1-custom-fields-blog-display

And in the article view...
2-custom-fields-article-display

avatar Scrabble96
Scrabble96 - comment - 28 Dec 2021

This is a fresh install of J4.0.5 today, using the Cassiopeia template.

avatar drmenzelit
drmenzelit - comment - 28 Dec 2021

The field "after title" will be shown in the blog layout only when the intro text is set to "hide":

<?php if (!$params->get('show_intro')) : ?>

grafik

avatar brianteeman
brianteeman - comment - 28 Dec 2021

What is the reason for that @drmenzelit

avatar drmenzelit
drmenzelit - comment - 29 Dec 2021

@brianteeman I have no idea... the code was introduced with this PR https://github.com/joomla/joomla-cms/pull/15497/files 5 years ago...

avatar brianteeman
brianteeman - comment - 4 Mar 2022

It is an easy change but I worry about b/c

avatar rdeutz
rdeutz - comment - 4 Mar 2022

I don't think we can make this change, because fields would be visibile in all blog views and I don't think that people expect this. I am not a fan of introducing new options but this seems to me the better way in this case. If it is really needed now an overwrite can do the job easily.

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment