jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: rikoooo on 15.08.2018 19:39:56

Title: Tags mappings
Post by: rikoooo on 15.08.2018 19:39:56
Hello there,

I'm trying to show some more information within the Joomla 3.8.11 tags component and Jdownloads. As for now, all I get is this :
https://www.rikoooo.com/prepar3d-v4 a very basic simple list of jdownloads files corresponding to the tag "P3Dv4"

There is no images or description. I actually wish to map "description_long" as a description so I went to table __content_types (according to https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension#field_mappings) and make the modification  "core_body":"description_long" but without positive result.

How to customize the tags system so it would show any desired row from __jdownloads_files like description_long, changelog, images etc ?

I've spent hours searching and customizing but no success I must miss something.

Thank you very much

Erik
Title: Re: Tags mappings
Post by: ColinM on 16.08.2018 16:06:46
Erik,
Joomla! Tags are '"interesting"!!  As you have found Documentation is somewhat 'thin'.Tags may have their own image and description.
In the menu item type 'Tagged Items' there seems to be provision in tab List Layout to display or hide item description and item image as well as the tag description and tag image. However I have not seen anywhere that you can add item description and item image linksIf one uses the menu item type 'Tagged Items' then it shows the Download Description and an image if you have set thse to show in the Item Options.

Colin
Title: Re: Tags mappings
Post by: ColinM on 29.08.2018 12:44:54
Hi
Basically I believe the entry
"core_body": "description",in the article  https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension#field_mappingsis a reference to the description field of the #_tags database table. It is the description of the tag itself.  If core_body is changed to some other name, such as long_description, then that is not in the #_tags table so nothing will show.
Individulal tags and related info are in the #_ucm_content database table.  For example a description associated with a specific tagged item is held explicitly in  the core_body field of the entry in the #_ucm_content database table.  It is put there by jD when the tag is added to the Download and of course modified if the Download description is changed.
So what you are suggesting is that jD has an option to put in the contents of either the Download description field or the long_description field.
In order to show the description associated with a specific tagged item then you need to use a 'Tagged Items' menu item.  This is regettably restricted to show only specific tags listed in tyhe menu item.  Why this is not implemented in any other menu item is a Joomla problem. 

Colin

Colin
Title: Re: Tags mappings
Post by: rikoooo on 30.08.2018 00:13:56
Hi Colin,

Well, actually changing "core_body":"description" to "core_body":"description_long" from  table _content_types is working. Now I get description_long showing instead of description. What I didn't understand is that I had to re-assign the tag to my downloads in order to re-mapping the new data (core_body -> description_long).

It's ok now :) Thank you for your help