Keyword

Creating Category menu and change link in DB

  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 7 months ago - 7 years 7 months ago #157255 by STEPHAN HERBY
Creating Category menu and change link in DB was created by STEPHAN HERBY
Hi.
This is the URL of a category link when I creat one :
index.php?option=com_k2&view=itemlist&layout=category

But if I want it to work clean, I have to go in the DB and modify URL to have :
index.php?option=com_k2&view=itemlist&layout=category&task=category&id=104
For the same categorie. This is the only solution I have founded to have my categorie well printed with the good template override.

I'm talking here about ONLY ONE category selected in the menu.
The issue is on 2 differents websites I manage.

My question is : Do I miss something or is that a normal way to make a category menu working for K2 ?
Thanks in advance for any help :)
Last edit: 7 years 7 months ago by STEPHAN HERBY.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157268 by Krikor Boghossian
Replied by Krikor Boghossian on topic Creating Category menu and change link in DB
The ID is assigned after the category has been saved.
Each category's URL always contains the ID by default.

The index.php?option=com_k2&view=itemlist&layout=category is a generic URL which I would like to hear how it was generated.

A link to your site will help.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago - 7 years 6 months ago #158093 by Fabrizio Rossiello
Replied by Fabrizio Rossiello on topic Creating Category menu and change link in DB
Hi Krikor I'm having the same problem, when I create a link to a k2 Category the only URL generated is index.php?option=com_k2&view=itemlist&layout=category, no matter Which category I select.

But I think that this problem has been generated by something that has changed on my web site, because it is happening just now and never in the past.

I have update to Joomla latest version and to k2 latest version.
Please can you help me ?
Regards
Fabrizio
Last edit: 7 years 6 months ago by Fabrizio Rossiello.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #158102 by Krikor Boghossian
Replied by Krikor Boghossian on topic Creating Category menu and change link in DB
Before saving the URL will always be:
index.php?option=com_k2&view=itemlist&layout=category

After selecting a category and saving the id is added eg:
index.php?option=com_k2&view=itemlist&layout=category&task=category&id=6

Which once again is a generic non-sef URL which does not contains other vital information like the menu item's ID.

This is standard Joomla! behaviour.
Example:
This -> index.php?option=com_content&view=category&layout=blog
after saving will become this index.php?option=com_content&view=category&layout=blog&id=9

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum