Remove Category from K2 URLs

Allows you to control menu item alias and have short SEF URLs without including aliases of parent menu items.
Forum rules
This forum is not for any support questions/issues/features. Please use Support Center for such requests.
joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 1:23 pm

Remove Category from K2 URLs

Post by joomdude808 »

Currently my K2 Blog Type URLs are like this:

domain.com/blog/alterbrains-rocks

Can Direct Alias Pro remove the category from the URL, making all Blog Type URLs only use the K2 Item Alias:

domain.com/alterbrains-rocks
User avatar
Admin
Site Admin
Site Admin
Posts: 1064
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin »

If 'alterbrains-rocks' is a menu item - you can edit it and set Alias to 'Direct'
joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 1:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 »

In this example, 'alterbrains-rocks' is an item alias - the item URL is generated from of a K2 > Category Type Menu.

For clarification: Direct Alias Pro can only remove the IDs of URLs (categories & item alias) generated from 'Blog Category' and 'K2 Category' menu generated URLs, but CAN NOT remove the category by setting the alias to 'Direct' for the menu parent so all children inherit the same 'Direct' parameter?
User avatar
Admin
Site Admin
Site Admin
Posts: 1064
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin »

Direct Alias Pro can only remove IDs from native Joomla articles component (com_content), it doesn't work with K2.

Both Direct Alias and Direct Alias Pro can remove parent menu items' aliases from menu item URL.
joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 1:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 »

Is such a feature impossible to accomplish with a plugin?

Do you plan on offering such a feature?
User avatar
Admin
Site Admin
Site Admin
Posts: 1064
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin »

Please advice which feature do you mean? K2 has own URLs without IDs.

For now we only plan the feature to use Joomla article alias exclusively for URL:
http://site.com/article-alias
Right now such URL is only possible if an article has own menu item with "article-alias" alias.
joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 1:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 »

Ok - Thank You

One more question - what impact does using Direct Alias (free) have on a website?
User avatar
Admin
Site Admin
Site Admin
Posts: 1064
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin »

Absolutely minimum, it can only affect performance of a website with e.g. 1000 menu items.
joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 1:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 »

Ok - Thank You :)
joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 1:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 »

Feature Request:

Is it possible to have your plugin work with NoNumber Add to Menu extension?
https://www.nonumber.nl/extensions/addtomenu
Post Reply