author alias of an article in a tagged article list

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
User avatar
cyana
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Mon Dec 02, 2013 3:41 pm

author alias of an article in a tagged article list

Post by cyana » Tue Dec 06, 2022 12:14 am

Dear all,

I would like to display the author alias stored within the article in the tagged default list of articles.

Among other things, I managed to get the article's id ...
baseline1.png
... as you can see here with <?php echo $item->content_item_id; ?> in default_items.php
$item appears to be the array holding the article, however I cannot find the proper field name for the author_alias, so I start to wonder if it is even there.

I've looked into TagModel.php, but am not sure if this is the actual definition of $item; also I don't thing you should override it.

Any advice would be very appreciated
Thanks
Cyana
You do not have the required permissions to view the files attached to this post.

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2506
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: author alias of an article in a tagged article list

Post by SharkyKZ » Tue Dec 06, 2022 7:31 am

The field is core_created_by_alias. It's there but it's not populated due to a bug. You should report it to developers.

User avatar
cyana
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Mon Dec 02, 2013 3:41 pm

Re: author alias of an article in a tagged article list

Post by cyana » Tue Dec 06, 2022 8:23 am

The field is core_created_by_alias. It's there but it's not populated due to a bug. You should report it to developers.
Ah! A bug - now this makes sense, thanks a lot. I've already tried to add it to the array at TagModel.php, but without effect. So obviously core_created_by_alias is already left out somewhere before.

best greetings and thanks
Cyana


Post Reply

Return to “General Questions/New to Joomla! 4.x”