Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1433

General Questions/New to Joomla! 4.x • Re: How to Show "Tags" Column in Article Manager Backend

$
0
0
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.
Hello,

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()
function to retrieve tags and display them in the new column.
Example code snippet for retrieving tags:

Code:

$tags = TagsHelper::getTags($article->id, 'com_content.article');echo implode(', ', $tags);
If you’re not comfortable editing code, you can use a third-party Joomla extension to manage tags more effectively. Look for extensions in the Joomla Extensions Directory (JED) that enhance the Article Manager's capabilities.

Statistics: Posted by filliphey — Fri Dec 06, 2024 1:15 pm



Viewing all articles
Browse latest Browse all 1433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>