Hot answers tagged

12 votes
Accepted

How to show tagged items in category blog layout

Since this problem seems has been already asked several times and there is still no good answer for that, I'd like to try to provide my solution from the template override side. The steps are quite ...
webchun's user avatar
  • 2,418
7 votes
Accepted

Get tags for an article

Use TagsHelper::getItemTags(): use Joomla\CMS\Helper\TagsHelper; $tags = new TagsHelper; $tags->getItemTags('com_content.article', $articleId); Where $articleId is article ID. Tags will be ...
Sharky's user avatar
  • 10.5k
5 votes
Accepted

Language tags in article content

You can use this language plugin: http://extensions.joomla.org/extension/easy-language Once installed in your article you can do: {lang en}Monday{/lang}{lang es}Lunes{/lang} It will display the ...
Piero Marsilio's user avatar
4 votes
Accepted

Migrate meta keywords to tags

We have developed a script that does that and that can be found here. Essentially, we loop through articles and then we grab the keywords, add them as tags, and then tag the articles. We have mainly ...
itoctopus's user avatar
  • 3,216
4 votes

How can I get a List of All Tags to have no pagination by default?

Go to the menu that includes the list of all tags, then open up the page you created as a list of all tags. There should be a menu tab called "selection options". Set "Display Select", "Pagination" ...
Dan's user avatar
  • 341
4 votes
Accepted

Adding a new view to built in component (com_tags)

There are multiple ways to add functionality or output views to existing components. You could try a template override. If you need more data then available in the component's model, then you could ...
pe7er's user avatar
  • 1,918
3 votes

How to Joomla 3 use tags on extension?

You can use the tags functionality in your custom extension as follows: models/forms/formfile.xml - <field name="tagfieldname" type="tag" mode="ajax" label="Tag Field Name" description="" ...
Liz.'s user avatar
  • 1,375
3 votes

How do I get an unordered list of article tags in category blog view?

Try the following code and see if it gives you the output you want: <ul> <?php foreach ($this->item->tags->itemTags as $tag) : echo "<li>" . $tag->title . "</li&...
johanpw's user avatar
  • 13.3k
3 votes
Accepted

How can I filter downloadable documents using tags?

Joomla! 3 has native tagging features built in. See the Joomla! documentation How To Use Content Tags in Joomla! One way to accomplish your goals is to create a seperate article (i.e. a web page) ...
NivF007's user avatar
  • 2,097
3 votes

Joomla assets table ucm rows

The #__ucm_content database table is used to store tags for core extensions, so I would not remove them, else you may get an error along the line in the future. See more information tags with ...
Lodder's user avatar
  • 26.8k
3 votes

Query database for articles, filtering by tag

You could Join the #__content table with the one of the #__contentitem_tag_map, which is the table that stores the many-to-many relationships among the various content items and the tags: $query->...
FFrewin's user avatar
  • 19.6k
3 votes
Accepted

How to query for users that have all tags when searching for multiple tags?

Tags - Similar module uses HAVING clause to achieve this. $query->having('COUNT(' . $db->quoteName('tags.tag_id') . ') = ' . count($tags)); But I'm not sure if this is the best possible ...
Sharky's user avatar
  • 10.5k
2 votes

Joomla 3.4.x: Tags are not saved

Got the error: Filter does not work here. Removing filter = "safehtml" solves the problem.
MyFault's user avatar
  • 677
2 votes
Accepted

How to edit Popular Tags search parent (page/menu/URL)?

You can control this by creating menu items first for the Joomla articles category (blog/newsfeed or whatever), then for the tag component itself. 1. JOOMLA CONTENT You want to have a page where the ...
FFrewin's user avatar
  • 19.6k
2 votes

Block K2 tag pages from being indexed by search engine

You may have to insert a meta tag manually for each page into a block of content that you do not want robots to index. <meta name="robots" content="noindex, nofollow"> OR You can go into your ...
NicholasByDesign's user avatar
2 votes

How to show tagged items in category blog layout

This is not currently possible. The closest you can get is Tagged Items. There is an article in the Joomla Forums about how to add the read more. http://forum.joomla.org/viewtopic.php?f=708&t=...
Lucinda Cage's user avatar
2 votes

Tag List Template Global Setting is Ignored

I just asked Google 'joomla tag list override' and it told me: http://forum.joomla.org/viewtopic.php?f=706&t=854545 Edit - Update 1: Copy components/com_tags/views/tag/tmpl/default.php and rename ...
Mikan's user avatar
  • 3,007
2 votes

Get parent category tags in template override

I did not remember how to get the parent category of article item, but to get the tags for current category you can try to use this code: $categoryTags = new JHelperTags; $categoryTags->...
Dmitrijs Rekuns's user avatar
2 votes

Create Numbered List of Tagged Articles

Hi you can use these CSS properties: counter-reset, counter-increment. for instance: .tag-category table { counter-reset: section; } .tag-category table tr{ counter-increment: section; } ....
Piero Marsilio's user avatar
2 votes

Tagged items blog layout

This is now a core feature in Joomla 3.8, i.e. filtering articles category blog layout with tags.
FishEagle's user avatar
2 votes

Category blog - hide category (options) makes tags disappear

Using Protostar as Template and set in Menu "Show Category" to "Hide" and "Show Tags" to "Show" give what expected: No Category shown, Tags shown. No Matter if "Position of Article Info" is set to "...
franz.wohlkoenig's user avatar
2 votes

Creating custom form field type extended from standard tag field

I have found the easiest way to do this is actually not to use the tag form field at all. I know that sounds crazy, but when you want to store the tags and tag associations in your own database table, ...
Zachary Draper's user avatar
2 votes

Tags filter field - how to add custom "placeholder"?

Create a language override for the constant: JGLOBAL_TYPE_OR_SELECT_SOME_OPTIONS Extensions > Languages > Overrides Create a new override Type/paste "JGLOBAL_TYPE_OR_SELECT_SOME_OPTIONS" as the ...
Michael's user avatar
  • 593
2 votes
Accepted

Why does one menu item have a Hidden tag?

This option allows you to hide menu items in a rendered menu. This makes full ghost menus unnecessary. https://www.joomlashack.com/blog/tutorials/hide-menu-items/
Sven Bluege's user avatar
2 votes
Accepted

How to debug an empty Bootstrap error generated by non-empty Tags field in a custom component?

To support tags in your component, you must add your content type to #__content_types table. Documentation: Using Tags in an Extension You have copied the row where: `type_title` = 'Contact ...
Sharky's user avatar
  • 10.5k
2 votes
Accepted

Where does Joomla com_tags store the ordering data?

Use column lft to order by the tag component's ordering. The tags use nested ordering like the menu table - for a post that discusses nested ordering see Ordering Joomla menus in code
jamesgarrett's user avatar
  • 3,279
1 vote

Hide article titles on Tagged Items

There are a few layers of turning the title name off. If it is a category blog/list that setting will apply to the article. The Article options globally will be applied next(up right corner when ...
norcal johnny's user avatar
1 vote
Accepted

Why can googlebot crawl to author page while I never actually show author link on my website?

GoogleBot is a very aggressive bot. We have the exact same issue on K2 based websites, and we have determined that this is mainly caused by Google knowing some patterns (from other K2 websites) and so ...
itoctopus's user avatar
  • 3,216
1 vote

How to Joomla 3 use tags on extension?

For Joomla 3.7.x and every custom component, I took the answer from @liz and put the code in a separate function which you can call from everywhere and use it everywhere you want. Also I moved the ...
Robert's user avatar
  • 111
1 vote

More on tags in category blog layout

Open taggedblog_items.php Within your foreach loop you need to access the object variable that you desire and wrap it in html code. For example: <div class="foo"><?php echo $item->...
handofjobin's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible