Keyword

Category, SubCategory and SubSubCategory url

  • theant
  • theant's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 6 months ago - 10 years 6 months ago #133202 by theant
Hello
I need to get the Category, Subcategory and SubSubCategory in Item url.
I created e K2Tool module as Category List (menu) but the pages have url like

mydomain.com/main-category/subsubcategory/item.html

it drops the subcategory name

you can check it here:
www.archiviosonoro.org/marche/archivio/3-raccolta-esempio/2-001-pietrapertosa.html

the K2Tool module is here:
www.archiviosonoro.org/marche/mappa-dell-archivio.html

is it possible to fix it?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago #133203 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category, SubCategory and SubSubCategory url
I think the best way to achieve this would be by mapping these categories into your menu.

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

  • theant
  • theant's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 6 months ago #133204 by theant
Thanks for reply. So the K2 tool menu isn't enough?

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

  • theant
  • theant's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 6 months ago #133205 by theant
So every time I add a category, I must add the menu item manually?

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

More
10 years 6 months ago #133206 by Lefteris
@theant
Yes since you need custom URLs you need to build them using menu links. Alternatively you can search for a SEF extension doing this.

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

  • theant
  • theant's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 6 months ago #133207 by theant
using category/subcategory/subsubcategory/item in my opinion is not a custom url, it should be the default/core url; anyway I will check for SEF plugin. Any suggestion?
Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago #133208 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Category, SubCategory and SubSubCategory url
sh404sef will do this, but only one subcategory is allowed.
I think AceSEF supports K2 but you will have to double check this with the extension's developer.

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

  • theant
  • theant's Avatar Topic Author
  • Offline
  • Premium Member
More
10 years 6 months ago #133209 by theant
this seems to work right:

www.sakic.net/forum/sef-advance/sef-advance-extension-for-k2/
The regular K2 SEF URLs are right now like:
Animals (category): http://domain/animals
Birds (subcategory): http://domain/animals/itemlist/category/4-birds
Eagle (item): http://domain/animals/item/3-eagle
Hawk (item): http://domain/animals/item/4-hawk

With the new extension for SEF Advance you get:
Animals (category): http://domain/animals/
Birds (subcategory): http://domain/animals/birds/
Eagle (item): http://domain/animals/birds/eagle/
Hawk (item): http://domain/animals/birds/hawk/

It works for unlimited category depth. As you can see there are no IDs nor strange words in the URLs and they are far more logical reflecting your content structure. The other K2 views are also covered with improved URLs.

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

More
8 years 11 months ago #154178 by shoulders
Replied by shoulders on topic Category, SubCategory and SubSubCategory url
I know this is an old topic but I would love to see this feature built into K2. I think it is a fairly standard feature nowadays and should not required someone to manually build the categories using the menu system, I have 1000 categories).

Mosets tree has this inbuilt and it is very useful

Can this be added as a feature request (possibly after the new Joomla Router is deployed)

Thanks

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

More
8 years 11 months ago #154544 by shoulders
Replied by shoulders on topic Category, SubCategory and SubSubCategory url
I have added an issue at github for this.

github.com/getk2/k2/issues/328

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #154559 by Krikor Boghossian
Replied by Krikor Boghossian on topic Category, SubCategory and SubSubCategory url
Hello,

Apart from mapping categories into menu items, you can also use the sh404sef integration plugin or use K2's advanced SEF settings.

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

More
8 years 11 months ago #154561 by shoulders
Replied by shoulders on topic Category, SubCategory and SubSubCategory url
I cant see how these will delivery what I want. Documentation and examples are limited.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #154566 by Krikor Boghossian
Replied by Krikor Boghossian on topic Category, SubCategory and SubSubCategory url
We are working on a more complete documentation section for the new K2 site.

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


Powered by Kunena Forum