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

Show subcat description - [Fixed in 3.2.19!!!]

Started by schmatzler, 15.12.2014 09:23:27

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

schmatzler

Maybe I am just too dumb to find the option for that or it is missing:

I want to show the description of subcategories. Not just of the main categories.

When I open up views/category/tmpl/default.php I see this code:

if ($this->params->get('show_subcat_desc')){

I can comment this out and the description is there! :) But where's the option in the admin panel for this?
  •  

Arno

Please check the settings from the jD frontend menu item.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

#2
Hi
The problem is a layout one!  Note that in the following I am using what I call my 'debug' layouts.  These are the same as the standard ones but with (V2) added to name and additional text output showing which laout was being used.

The first pic below ShowSubCats00.png  confirms that the List All Categories Menu type has Show Categories enabled.
Pic ShowSubCats01.png shows the description from the Main Category.
Pic ShowSubCats02.png fails to show the sub category description.
Pic ShowSubCats03.png shows the download description.
After changing the Layout then Pic ShowSubCats04.png shows that the sub cat description is now shown.

The sub categories are shown with the special layout Standard Categories Layout for paginated Subcategories.  This is never activated but is used automatically for paged  subcats.

The relevant part of that layout is
{cat_info_begin}
 <tr valign="top" border="0px">
   <td width="65%" style="padding:5px;"><i> Std Cats pag Subcats.[Main]{cat_pic}<b>{cat_title}</b></td>
   <td width="20%" style="padding:5px; text-align:right">{sum_subcats}</td>
   <td width="15%" style="padding:5px; text-align:right">{sum_files_cat}</td>
 </tr>
{cat_info_end}

This was modified by including an extra row as shown below.  Basically the placeholder {cat_description} is missing
{cat_info_begin}
 <tr valign="top" border="0px">
   <td width="65%" style="padding:5px;"><i> Std Cats pag Subcats.[Main]{cat_pic}<b>{cat_title}</b></td>
   <td width="20%" style="padding:5px; text-align:right">{sum_subcats}</td>
   <td width="15%" style="padding:5px; text-align:right">{sum_files_cat}</td>
 </tr>
 <tr>
  <td colspan = "3"><i>cat desc: </i>{cat_description}</td>
 </tr>
{cat_info_end}

The part cat desc: is just for my diagnostic and would be omitted
No PHP code was changed.

[gelöscht durch Administrator]
Colin M
  •  

Arno

@Colin:
i will check your results more tomorrow.

@schmatzler:
please see the pic and check your menu items.

When in your settings is all correct, maybe have you found a bug.  ::)


[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

schmatzler

Thank your for your answers.

So it is by design that this option is missing in the default view? (The "Show all categories" one)

I want to use it, it's perfect. I don't want to specify a single categorie, but the root of them all and go down from there. With descriptions to all of them ;)

[gelöscht durch Administrator]
  •  

ColinM

@schmatzler
I would not say it was by design but rather a simple oversight! ::)  Until you pointed it out no one had noticed ;D The huge number of options and their combinations makes jDownloads very 'rich' in features, but correspondingly challenging to get it perfect! ;)
Colin M
  •  

Arno

QuoteThe huge number of options and their combinations makes jDownloads very 'rich' in features, but correspondingly challenging to get it perfect!
Exactly  ;)

QuoteI want to use it, it's perfect.
Sure, please wait a few hours then i will post here a fixed php file.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

@ schmatzler:
Sorry for the delay.
Please try the unzipped file below and post here your result.

Edit:
I am not sure that this is the right way... hm... little bit tricky  ::)

Edit 2:
Forget it. I have it solved now so that we have this option ('show_subcat_desc') also in the categories menu settings. ;)
Is fixed in 3.2.19.  ;)

@ Colin:
QuoteThis was modified by including an extra row as shown below.  Basically the placeholder {cat_description} is missing
You mean that the placeholder is missing in the default layouts?  :-\
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

Yes, placeholder missing.  When included the info was shown
Colin M
  •  

Arno

Hi Colin,
okay i will fix it in next version.  ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •