News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Tags mappings

Started by rikoooo, 15.08.2018 19:39:56

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rikoooo

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
  •  

ColinM

#1
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
Colin M
  •  

ColinM

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
Colin M
  •  

rikoooo

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
  •