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

Link to subcategories and missing modules

Started by MrNiceGuy, 28.04.2015 17:05:34

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MrNiceGuy

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);
  •  

ColinM

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

MrNiceGuy

#2
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.
  •  

ColinM

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
Colin M
  •  

MrNiceGuy

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