Hot answers tagged

8

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 complex but it should be easy. Note : I'm using Joomla 3.4.4 and template protostar while creating this tutorial First, copy this files : [root]/components/...


7

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 metadata and generate the content for the shared post at that time. Usually it will prefer to see Open Graph meta tags. A sample of og:metatags that can exist on a ...


7

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->image_intro.'">'; //get category name by id $db = JFactory::getDbo(); $id = $item->core_catid; $db->setQuery("SELECT cat.title FROM #__categories cat WHERE cat....


6

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 base there are other challenges (I can link you to commits on a project when I'm not on mobile).


5

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 public function getTagItemsQuery( $tagId, $typesr = null, $includeChildren = false, $orderByOption = 'c.core_title', $orderDir = 'ASC', $anyOrAll = true, $...


5

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 text on the selected languaje. Hope it work for you


4

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.


4

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 used the JHelperTags class in order to do that. The script should run on any system - but please expect some performance issues on your website if you have ...


4

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" and "Pagination Results" to "Hide".


3

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 with the tag names. Then on frontend you can use getTagRoute() method of TagsHelperRoute class to get the tag link. Hope this helps.


3

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->join('INNER', '#__contentitem_tag_map AS tags ON `tags`.`content_item_id` = `#__content`.`id`'); Then in your query you can filter the content items with a ...


3

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="" multiple="true" custom="allow" required="true" /> tables/filename.php - add the following code in the bind() method : public function bind($array, $ignore = '') { ...


3

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>"; endforeach; ?> </ul> Replace $tag->title with $tag->alias if you prefer to display the alias.


3

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) with a brief synopsis for each downloadable paper, then use Joomla!'s built-in tagging capabilities to tag the actual page. It can be that simple. Keep in ...


3

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 solution. It could be rather slow because WHERE IN selects all rows matching any tag and HAVING filters only after the rows have been selected.


2

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 » Compact list of tagged items. If you don't want this menu item visible, you can add it to a new menu. If you don't link this menu to a module, it will never ...


2

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 enough to answer all of your questions but it will surely guide you through most of the doubts. At some places i changed my extension code (not as per the document)...


2

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 table. You will need to check your tags db_table with a tool like phpmyAdmin, to see about those values, and maybe if you need further advise, post here a ...


2

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-joomunited.com/tag-transform Very nice component, with demo video showing its full workings


2

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 each row. An insert statement for each row would look like this: INSERT INTO `cpxns_tags` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `...


2

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` WHERE `name` = 'mercedes' LIMIT 1; /* Query 2: If previous query returned null, create a new tag */ INSERT INTO `#__k2_tags` SET `name` = 'mercedes', `published` ...


2

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). You may need to clear the Joomla cache after meta data changes to ensure Facebook is seeing the most recent version of web pages.


2

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 / filtering etc. Check it out at our Github page


2

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/secondaddress and that http://website.com/secondaddress either links to firstaddress or something different, throwing the whole site into an endless wild goose ...


2

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 parameter of CATEGORY to the module XML and alter the model to incorporate this new parameter as well to this and build your own custom module Custom module to pull in ...


2

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 ($items as $i => $item) : ?> you will see that the item contains various additional information which you can output: stdClass Object ( [type_alias] => ...


2

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 robots.txt file and disallow by url/path Disallow: /page/to/your/path


2

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 articles posted under the blog category will be displayed under the same URL scheme, like www.domain.com/blog/article-title. For this you need to have a ...


2

Got the error: Filter does not work here. Removing filter = "safehtml" solves the problem.


2

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=838191 This is also currently a request on ideas.joomla.org at http://ideas.joomla.org/forums/84261-joomla-idea-pool/category/12057-content?query=category%20blog%...


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