Remove Category from K2 URLs

Removes IDs from Joomla articles URLs.
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, 12:23 pm

Remove Category from K2 URLs

Post by joomdude808 » March 13th, 2016, 7:44 am

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: 1559
Joined: October 21st, 2008, 5:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin » March 14th, 2016, 2:18 am

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, 12:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 » March 14th, 2016, 7:33 am

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: 1559
Joined: October 21st, 2008, 5:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin » March 14th, 2016, 1:10 pm

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, 12:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 » March 14th, 2016, 1:14 pm

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: 1559
Joined: October 21st, 2008, 5:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin » March 14th, 2016, 3:32 pm

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, 12:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 » March 14th, 2016, 3:39 pm

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: 1559
Joined: October 21st, 2008, 5:39 pm
Name: Administrator
Browser: Chrome

Re: Remove Category from K2 URLs

Post by Admin » March 15th, 2016, 8:45 am

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, 12:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 » March 15th, 2016, 8:53 am

Ok - Thank You :)

joomdude808
Newbie
Newbie
Posts: 8
Joined: June 7th, 2015, 12:23 pm

Re: Remove Category from K2 URLs

Post by joomdude808 » March 15th, 2016, 4:35 pm

Feature Request:

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