jDiction Forum

English => General Questions => Topic started by: boeschung on June 27, 2014, 06:15:07 pm

Title: Tags in Joomla 3.x
Post by: boeschung on June 27, 2014, 06:15:07 pm
Hello,

does jdiction support joomla 3.x "tags"? It doesn't seem to work or is there something special to be done to achieve this?

Thanks and best regards
Alfred
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on June 27, 2014, 07:59:37 pm
Its basicly possible but no xml file is not done yet.

Maybe its not possible to do everything with it.
Title: Re: Tags in Joomla 3.x
Post by: boeschung on June 27, 2014, 08:12:46 pm
Thanks for your quick response.

sorry, but I don't understand your answer :-[.

I wanted to know if it is possible to work with Joomla tags as well. In a project I used tags to display articles but the translation does not work for these articles.

Thanks a lot and best regards
Alfred
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on June 27, 2014, 08:15:08 pm
Its untested.
Title: Re: Tags in Joomla 3.x
Post by: boeschung on June 29, 2014, 02:22:04 pm
Ok. When do you think this feature is supported by your extension?

Best regards
Alfred
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on June 29, 2014, 04:27:13 pm
I will try to write a xml definition on monday. So you can test it.
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on June 30, 2014, 12:03:56 pm
Please copy the attached file to:
/libraries/jdiction/tables

this let you translate tags, a short test worked for me
Title: Re: Tags in Joomla 3.x
Post by: boeschung on July 15, 2014, 01:53:01 pm
Thank you for your work.

A corresponding XML I had already created, it actually worked. I was able to translate the tags. However, there seems to be a problem when I want to view tagged articles. The items are displayed only in the default language, they do not respond to the language selection. With Falang is the same problem.

We no longer use the tags. Now we use an other solution.

Best regards
Alfred
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on July 15, 2014, 02:39:30 pm
com_tags loads it content from the ucm tables and not from the original tables thats the reason why its not translated.
Title: Re: Tags in Joomla 3.x
Post by: barcik on December 05, 2014, 12:08:24 pm
Hi,

Now I downloaded jdiction v 1.3.2 and I have Joomla Version 3.3.6 and tags still not working.
It will be a solution to this problem? Should I look for another solution?
BR
Bartosz
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on December 05, 2014, 12:26:44 pm
What exactly is the problem?

Normal translation of the tag title and description should work, content displayed in a tag overview will not work as expected.
Title: Re: Tags in Joomla 3.x
Post by: barcik on December 05, 2014, 12:42:02 pm
Hi,
I translate tag, but icons is with exclamation mark (tags.png) but in jdiction component this tag is invisible (tags1.png)

Edit: strange, but works. Now I read article, and tags are visible and change, when I change language. Sorry for the confusion.
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on December 05, 2014, 01:01:39 pm
I can't confirm this, for me its working...

the exclamation mark means that the translation is out of date. So the translation must be there.

It means you changed the tag after you saved the translation... (thats the theory)
Title: Re: Tags in Joomla 3.x
Post by: crliuh on May 13, 2015, 09:31:14 pm
com_tags loads it content from the ucm tables and not from the original tables thats the reason why its not translated.

Hi Harald,

Is there any solutions for this ? When im trying to load article from tags it will just show my original language article even though i have changed to second language. Please advise.

Thanks.
Title: Re: Tags in Joomla 3.x
Post by: Harald Leithner on May 15, 2015, 09:44:35 am
It should be possible to translate the ucm table with data from jdiction but that needs some work in jdiction.

What you can do (not the best/efficent solution) is to query the #__article by hand in the template.

So if you have little programming skills that should be possible, here is an untested example:

Code: [Select]
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('introtext,articletext');
$query->from('#__article');
$query->where('id='.$item->content_item_id);
$db->setQuery($query);
$article = $db->loadObject();
You can use this snipped in the template override for com_tags/tag/default_items.php inside the "foreach ($items as $i => $item) : " loop.

If you have no idea what I'm talking about, then you have to wait till I have time to do it on jdiction site.