No Code Attached Yet bug
avatar Scrabble96
Scrabble96
7 Mar 2026

What happened?

This is a repeat of closed issue #46332 from October 2025 which was not fixed.

Steps to reproduce this issue:

  1. Create a custom field or use an existing field with the Options > Display Options > Automatic Display > set as 'Do not automatically display'. Assign it to a category and then add a value to that field in the latest article in that category.

  2. Go to your site template and create a new mod_articles module override (it will appear under the 'html' folder).

  3. In [modulename]_items.php - say before the 'ul' opening tag - add

<div><?php $customFields = FieldsHelper::getFields('com_content.article', $item, true);
$values = array_column($customFields, 'value', 'name');
echo $values['field-name']; ?></div>

replacing 'field-name' with your field's name.

NB. If the module's name isn't 'default' you will need to change 'default' to your module's name on lines 43 and 48 of [modulename].php

  1. Save the file and then go back to Content > Site Modules and create a new site module of the type 'Articles'. Choose the category that your article is in and ensure that it will display the latest article (i.e. the one to which you added the field data).

  2. In the module's 'Advanced' tab, select your new custom module from the 'Layout' option.

  3. Select a position and menu item (ideally a test page) to display it on and then save the module. Go to that menu item and refresh the page. I believe you will get a blank white screen.

So...

  1. Go back to [modulename]_items.php and add
use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;

after

use Joomla\CMS\Language\Text;

Save and refresh the website page.

Version

5.4

Expected result

After following the above steps, I believe you should now be able to see the page with the module displayed and showing field value.

Actual result

Blank white page.

System Information

Joomla! 5.4.1 Stable
PHP 8.3.30 on Linux
Database type mysql, 10.6.24-MariaDB-cll-lve-log

Additional Comments

No response

avatar Scrabble96 Scrabble96 - open - 7 Mar 2026
avatar joomla-cms-bot joomla-cms-bot - change - 7 Mar 2026
Labels Added: No Code Attached Yet bug
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Mar 2026
avatar Scrabble96 Scrabble96 - change - 7 Mar 2026
Title
[5.x][6.x] mod_articles default_items.php will not display fields unless FieldsHelper added
[5.x][6.x] mod_articles default_items.php will not display 'do not automatically display' fields unless FieldsHelper added
avatar Scrabble96 Scrabble96 - edited - 7 Mar 2026
avatar brianteeman
brianteeman - comment - 7 Mar 2026

Please do not create a new issue. All the context is lost as is the explanation why it was closed. Instead you can request for that closed issue to be reopened with hopefully an explanation why the reason for closing was wrong.

avatar Scrabble96 Scrabble96 - change - 7 Mar 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-03-07 15:05:27
Closed_By Scrabble96
avatar Scrabble96 Scrabble96 - close - 7 Mar 2026
avatar Scrabble96
Scrabble96 - comment - 7 Mar 2026

OK. Sorry, it's been a while since I posted and I thought once an issue was closed that was it. I will attempt to reopen the original issue.

avatar Scrabble96 Scrabble96 - change - 7 Mar 2026
Status Closed New
Closed_Date 2026-03-07 15:05:27
Closed_By Scrabble96
avatar Scrabble96 Scrabble96 - reopen - 7 Mar 2026
avatar Scrabble96 Scrabble96 - change - 7 Mar 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-03-07 15:12:33
Closed_By Scrabble96
avatar Scrabble96 Scrabble96 - close - 7 Mar 2026
avatar Scrabble96
Scrabble96 - comment - 7 Mar 2026

I have requested that the other issue be opened in the head of my latest comment there. I am unable to re-open it myself as I do not have the appropriate level of authority. Thank you.

Add a Comment

Login with GitHub to post a comment