jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: msabbagh627 on 15.03.2019 12:18:31

Title: Show sub Categories in Root View
Post by: msabbagh627 on 15.03.2019 12:18:31
Hi,

First of all thanks for your wonderful extension. JDownload is awesome!

I want to show the subcategories of each category shown in Categories Layout. I think there is no short code for that, so I started overriding the Layout. But he fact is that in the categories\default.php I cant find our how to get the subcategory's title of each category that is being read.

Can anyone give me a clue about that?
Title: Re: Show sub Categories in Root View
Post by: ColinM on 15.03.2019 18:08:07
Hi
Presently when jD shows a Category it only shows those sub categories immediately beloew that level.Is ti that you want to show all the sub cats in the entire chain?
If so please look at the Tree module - it is decribed in
http://www.jdownloads.net/documentations/item/tree-module
Colin
Title: Re: Show sub Categories in Root View
Post by: msabbagh627 on 17.03.2019 16:59:31
Hi ColinM,

I know about the tree module, but I needed the code to see the sub categories under each category, which I finally wrote a code to do that.

Unofrtunatly I see no developer documents in your site and that is bad. Giving the developers some documents in order to extend the ability of JDownloads can help your team. In this way you can upgrade the version easily.
Title: Re: Show sub Categories in Root View
Post by: ColinM on 18.03.2019 20:24:03
Hi
The code is of course in the zip file containing jD.  Bot sure what you mean by Developer Docs.Most changes are in the Layouts. The front end parts are all located in site/views/.. with various subdirectories dealing with the relevant code that in most cases ends up 2 layers deeper in a file called default.phpThis actually conforms to the standard Joomla Component model

Maybe you could post the changed code and then Arno can look - adding some pics of the before and after would help
Colin