jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: MrNiceGuy on 28.04.2015 17:05:34

Title: Link to subcategories and missing modules
Post by: MrNiceGuy on 28.04.2015 17:05:34
Hey, i have used a jdownloads category as menuentry. Here i display some modules. If i change to a subcategory, the modules wont display anymore. The cause is of missing the menupath in the url. Can this be fixed?


bad link to subcategory is:
index.php/downloads/category/<subcategorynumber>-<subcategoryname>

good link to subcategory would be:
index.php/joomlamenuentry/category/<subcategorynumber>-<subcategoryname>

I think the Problem is $catlink in com_jdownloads/views/categories/tmpl/default.php:
$catlink = JRoute::_("index.php?option=com_jdownloads&amp;view=category&amp;catid=".$cats[$i]->id."&amp;Itemid=".$cats[$i]->menu_itemid);
Title: Re: Link to subcategories and missing modules
Post by: ColinM on 29.04.2015 16:41:20
Hi
Do you mean a jDownloads Menu link to a single category such as shown in attached pic?  This works fine for me.
The generated code is <a href="/single-subcat-link">Single SubCat Link</a> where 'single-subcat-link' is the menu item alias.

Or do you mean a link to a subcat in a content item like {jd_file category==4 count==5} where "category==4" is the chosen sub category id and "count=5" is the number of items.  This later one actually lists the items in the category directly.

Or perhaps do you mean you copied a link like <a href="/list-all-a-categories/category/3-topcat-v19-sub1-blahblah">topcat-v19-sub1</a>

or ..?
Basically where did you get the link from in each case.

Colin

[gelöscht durch Administrator]
Title: Re: Link to subcategories and missing modules
Post by: MrNiceGuy on 29.04.2015 17:27:25
Like attached pic i have a menuitem with a single category. This single category have some more subcategorys in.

Visiting the menuitem give me the expected view with my modules i set. After visit a subcat there, my modules which was attached to that menuitem are gone.
Title: Re: Link to subcategories and missing modules
Post by: ColinM on 29.04.2015 17:44:16
Hi
Not sure what you mean by 'modules' in this context by
QuoteHere i display some modules
Could you perhaps send pic of screen.  How did you 'attach' them?  Was it a Layout you modified?
Note when you go to one of the sub categories of the category you initially showed it is not the same 'page'

Colin
Title: Re: Link to subcategories and missing modules
Post by: MrNiceGuy on 29.04.2015 17:46:23
Hey i did some photoshop here :)

If i click on "subcategory 1" you come to screen 2 without the modules from the first pic. But here i got a module which is attached to other menuitem where i come to all categorys.

[gelöscht durch Administrator]