jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: fiztan on 25.11.2015 12:42:55

Title: Category description dont show in files
Post by: fiztan on 25.11.2015 12:42:55
I've a problem with a jDownload module. The category description doesn't show when I set up the 'Download list' option on the module

(http://www.subeimagenes.com/img/captura3-1541593.jpg)

That description does appear when I navigate through categories and subcategories, but it doesn't inside the category, where the archives are
(http://www.subeimagenes.com/img/captura1-1541592.jpg)

I think it could be a template issue (downloads), but I'm not sure. Please help me
(http://www.subeimagenes.com/img/captura0-1541594.jpg)

Thanks

[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: Arno on 25.11.2015 15:52:42
Hi,
i understand not what you mean exactly with 'module'? The 'modules' has nothing to do with the main output from the component (on your pics).

So i think you mean not really a module.  ;)

Please check this option on the pic below and make sure that it is activated. See Configuration TAB Frontend.

[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: fiztan on 25.11.2015 17:03:04
Sorry to bother you

The opcion was activated.

In each category inside Jdownloads I have written a description and I have inserted an image.

That description is shown correctly inside each category and subcategory, but when I go into one to learn the files available to download, the image vanishes. It only gets the variables {cat_pic} {cat_title}{sum_subcats}{sum_files_cat}, but not {cat_description} 

Thanks


[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: Arno on 25.11.2015 17:10:24
I understand not what you mean with: '...but when I go into one to learn the files available to download, the image vanishes.'
So please send me login data as super admin for your backend via PM.
Then i can check it self.
Title: Re: Category description dont show in files
Post by: Arno on 25.11.2015 20:55:14
Thanks for the data.

I have checked your backend and i am confused.  ::)
You have tried to put the html for the header area in the categories description (image and icons). This is not the right way.
Please check the default layouts (the second TAB) then you will see it. Read also the hints in the documentation.
Send me a note when this not helped. But i have a problem to understand what you have done exactly here until now.

On my fresh jD installation i have not any problems with the description and category title.   




[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: fiztan on 26.11.2015 09:26:17
The problem of putting a still image in the template is that same image is displayed for all categories , what I need is a custom image which appears in each category.



[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: Arno on 26.11.2015 12:31:44
Okay, i understand now. But this scenario is not so easy possible.

- shall your website be multilingual?
- how many categories need you?
- are this all main categories or need you also sub categories?
- use you the details view?
- use you the direct download option (without the summary page)?
Title: Re: Category description dont show in files
Post by: fiztan on 26.11.2015 22:05:48
Thank you very much.

- shall your website be multilingual? No, it will not be multilingual, it will be only in Spanish.
- how many categories need you?
- are this all main categories or need you also sub categories? 
I need three main categories, each one will include from one to fifteen subcategories.

For example:
Headline (main category)
  - 2015 (sub category)
     - January (sub sub category)
     - February
     - March
     - etc

   - 2016 (sub category)
     - January (sub sub category)
     - February
     - March
     - etc


legislations (main category)
    - 2015 (sub category)
     - January (sub sub category)
     - February
     - March
     - etc

   - 2016 (sub category)
     - January (sub sub category)
     - February
     - March
     - etc


- use you the details view? No, I don't use the detail views.

- use you the direct download option (without the summary page)? Yes, i do use the direct download option


One easy solution, if possible, would be if the template would recognize the variable {cat_description} when you get into the download list.

Thank you for your time.

Title: Re: Category description dont show in files
Post by: Arno on 26.11.2015 22:49:38
QuoteOne easy solution, if possible, would be if the template would recognize the variable {cat_description} when you get into the download list.
I have  first tomorrow evening the time to check this more.
Title: Re: Category description dont show in files
Post by: Arno on 29.11.2015 01:41:04
Okay. I have now check it.

Your tried way is not possible and can not work correctly in all cases.
But i have found another possibility.
So you can use the override feature from Joomla to get what you need.

1. go back to the normal default layout for category and activate this (it should be the original content - later changable)
2. add in the header field from this layout a line like this (important is the placeholder):

<p><img src="{cat_header_image}" alt="header image" width="870" height="174" style="float: left;" /></p>

3. remove the {cat_description) in your files layout (this placeholder can only be used in category layouts)
4. remove the header part from your category descriptions (not required here)
5. go to the override page and open the default.php file for editing (see pics)
6. i have added between the lines 180 and 200 a new part (see screenshot_1642 and screenshot_1641)
7. edit this part as described

When you have all correctly done your problem should be solved. A little bit tricky but it should work properly.  ;)

See two example pics from my test website.


[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: fiztan on 29.11.2015 17:54:24
Thank you very much.

I will check tomorrow.

EDIT:
I have tried it and it works.
However this solution is hard to keep as it requires being editing the code for each category. But it is fine for now.


Title: Re: Category description dont show in files
Post by: fiztan on 30.11.2015 17:12:29
From the starting point of your idea, I have been thinking and found a simpler solution.

Add only {cat_header_image} in the template.
The description of each category and subcategory remains complete with images, tables, links, etc.
Add at line 208 in the file default.php:
$header = str_replace('{cat_header_image}', $this->category->description, $header);



Thank you very much.

[gelöscht durch Administrator]
Title: Re: Category description dont show in files
Post by: Arno on 02.12.2015 15:48:10
Sure are also other ways possible.  ;)
But to use the category description is for me not a good choice. But when you are happy with this.  ;D

Edit:
Make sure that you use the override feature for your modification. Otherwise will you loose this after the next update.