Hello,Hello,
Hope this makes sense.
I would like to know if it is possible to show tags in the article manager. I know you can navigate and select a tag to see the associated articles - but I would like to know, at a glance, if I forgot to add a tag to an article.
I am using the most current J4.
Thank you.
Yes, it is possible to show tags in the Article Manager in Joomla 4 (J4). While the default setup does not display tags in the list view, you can modify the configuration or use a custom approach to include them.
Navigate to Content > Articles in the Joomla Administrator panel.
Click the Options button in the toolbar (found in the top-right corner).
Under the Articles tab, check if there’s a setting to enable the "Tags" column. Unfortunately, if this option isn’t available by default, proceed to Option 2.
If tags aren't shown by default, you can achieve this through a minor customization:
Locate the Article Manager Code:
Navigate to the backend files of your Joomla installation.
Look for the
Code:
administrator/components/com_content/views/articles/tmpl/default.php file
Add a Column for Tags:
Edit the file and add a new column in the table that pulls the tags associated with each article.
Use the
Code:
TagsHelper::getTags()
Example code snippet for retrieving tags:
Code:
$tags = TagsHelper::getTags($article->id, 'com_content.article');echo implode(', ', $tags);
Statistics: Posted by filliphey — Fri Dec 06, 2024 1:15 pm