News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Category description dont show in files

Started by fiztan, 25.11.2015 12:42:55

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fiztan

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



That description does appear when I navigate through categories and subcategories, but it doesn't inside the category, where the archives are


I think it could be a template issue (downloads), but I'm not sure. Please help me


Thanks

[gelöscht durch Administrator]
  •  

Arno

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]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

fiztan

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]
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

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]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

fiztan

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]
  •  

Arno

#6
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)?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

fiztan

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.

  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

#9
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]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

fiztan

#10
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.


  •  

fiztan

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]
  •  

Arno

#12
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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •