Hot answers tagged

11 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 ...
user avatar
  • 2,388
7 votes

Facebook Share - Remove: "The Joomla! content management system lets you create webpages..."

When you Share something on Facebook, Facebook will use the most recent information that its scraper has cached from your pages. If FB scraper has not yet crawled a page, then it will read your ...
user avatar
  • 19.5k
7 votes
Accepted

Modify Joomla Tags Result Page

Try this(tested and worked in Joomla 3.3.0): Put this code: <?php //introtext echo $item->text; //image $images = json_decode($item->core_images); echo '<img src="'.$images->...
user avatar
6 votes
Accepted

Adding Tags Functionality To Existing Component

This should get you going - http://docs.joomla.org/J3.3%3aHow_To_Use_Content_Tags_in_Joomla! Admittedly it was a little difficult to get going at first, and if you're supporting 2.5 on the same code ...
user avatar
  • 1,590
6 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 ...
user avatar
  • 8,316
5 votes

Module to show all articles with Tag and in a Category

You can easily get all articles tagged with a tag, but not from a specific category, so you'd have to check for that in a step 2. In JHelperTags (defined in libraries\cms\helper) there is a method ...
user avatar
  • 471
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 ...
user avatar
4 votes
Accepted

Customizing the tags displayed under the article title

The best place would be /layouts/joomla/content/tags.php. But first you need to override this layout by putting it to /templates/your_template/html/layouts/joomla/content/tags.php.
user avatar
  • 4,045
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 ...
user avatar
  • 3,186
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" ...
user avatar
  • 341
3 votes
Accepted

How to query and display a list of nested tags for a particular parent on front end as links?

To generate a list of tags you can take getTagTreeArray() method from JHelperTags class as a base and modify it for you needs - you can populate the resulting array not only with the IDs, but also ...
user avatar
  • 4,045
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->...
user avatar
  • 19.5k
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="" ...
user avatar
  • 1,365
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&...
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) ...
user avatar
  • 2,087
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 ...
user avatar
  • 8,316
2 votes
Accepted

Adding an itemid on the Tag component page

This sounds like there is no menu item for the tag component. Then you get something like this /index.php/component/tags/tag/3-yellow as your URL. Try adding a menu item for example of the type Tags »...
user avatar
  • 5,527
2 votes

Taxonomy in Joomla 3

Here is a document which will help you while integrating with Joomla tag system. I have integrated tag system in some of my extensions and it works fine. Although this document is not sufficient ...
user avatar
  • 1,791
2 votes
Accepted

Unexpected parent tag association

If there are not any other hacks on the code that affect the save functions of the component, then this issue makes me think that something can be messed up in the Nested Set Model in the jos_tags ...
user avatar
  • 19.5k
2 votes
Accepted

Module to show all articles with Tag and in a Category

Some nice chap has already created a module that displays articles with a certain TAG so no hacking involved, I suppose it would be simple (depending on your coding experience) to add a new ...
user avatar
2 votes

Joomla Tag Result Page Accordion

Not quite the full answer, BUT someone has already started working on this, though not really a rendering of the search page, more of a menu module, but certainly a very nice start http://www.demo-...
user avatar
2 votes
Accepted

Uploading Tags In Bulk

There is no import option for the Tags component. This will make a such import directly into the database a tough process, as you will have to take into consideration all the fields of the table for ...
user avatar
  • 19.5k
2 votes
Accepted

K2 Add tag to article if the keyword is in the article title

There are a couple of queries that you need to execute. Please use these queries first on a test environment. There is an idea: /* Query 1: Select the id of the tag */ SELECT id FROM `#__k2_tags` ...
user avatar
2 votes

Facebook Share - Remove: "The Joomla! content management system lets you create webpages..."

Apart from the Global Configuration, meta data can be included in articles, categories and menus (see "Meta data hierarchy in Joomla" at https://joomla.stackexchange.com/a/5241/120 for more details). ...
user avatar
2 votes
Accepted

Load articles by tag

As per @johanpw's comment, I used the linked module, forked it, and brought it up to date. Now the module can accept multiple tags, filter by content type, as well as more options for ordering / ...
user avatar
  • 2,295
2 votes

This page isn't redirecting properly when clicking a Joomla tag

This is looping behavior, but I can't pinpoint the cause from the information given. What it is implying is that it's trying to link http://website.com/firstaddress to redirect to http://website.com/...
user avatar
  • 1,079
2 votes
Accepted

Displaying tagged items like category

You can display more by overriding /components/com_tags/views/tag/tmpl/default_items.php. If you make: <pre><?php print_r($item); ?></pre> after this line: <?php foreach ($...
user avatar
  • 4,045
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 ...
user avatar
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 ...
user avatar
  • 19.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.
user avatar
  • 667

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