Keyword

Joomla 3.5 and K2 URLs

  • En Jie
  • En Jie's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago - 8 years 10 months ago #155849 by En Jie
Replied by En Jie on topic Joomla 3.5 and K2 URLs
Hi Krikor

correct!

regards
Last edit: 8 years 10 months ago by En Jie.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155853 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
Is the issue solved?

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

  • En Jie
  • En Jie's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #155858 by En Jie
Replied by En Jie on topic Joomla 3.5 and K2 URLs
Hi again

No the issue is not resolved.

The nested category structure should be: *******.com/parent category/sub-category/k2 item title

The current url: ****.com/parent category/menu item title/id_sub-category/k2 item title (the menu item title is NOT wanted here)

Best regards

En Jie

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155866 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
Can you send credentials through the contact form?
www.joomlaworks.net/support/contact

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago - 8 years 10 months ago #155882 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
As mentioned in my earlier posts,

You need to either map all categories into menu items OR use K2's advanced SEF.

Using both can result to not-so nice URLs.

Furthermore sh404sef's cache seems to have issues when it comes to purging.

Finally when using Advanced SEF if you select "Use the item's category" in the Prefix for item URLs setting then you will get an extra prefix,
so the ;TLDR version is, when you follow the instructions on this post -> www.joomlaworks.net/forum/k2-en/46071-joomla-3-5-and-k2-urls?limitstart=0#155738 you will get nice URLs.
Last edit: 8 years 10 months ago by Krikor Boghossian.

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

More
8 years 10 months ago #155889 by shoulders
Replied by shoulders on topic Joomla 3.5 and K2 URLs
This does not fix github.com/getk2/k2/issues/328 it will just confuse end users who will then pick another system that supports nested SEF.

Why close the issue after saying consult this thread. You should of said, "Not Adding This Feature" least then people would know, rather than giving them false hope or some really long winded non-dynamic solution.

I appreciate things take time to code and can't always be done.

Thanks as always for your time.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155890 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
Please bear with me.

Mapping categories into menu items WILL give you nested categories.
Please read my last post. This is an either/ or situation.

You have 3 choices regarding your URLs, 2 will give you the utmost control over them, in the other one (Advanced SEF), you might need to map the root category into a menu item.

As with the vast majority of posts regarding URLs En Jie's issue was a misconfiguration on the menu item (empty category selection) AND the use of an extra prefix.

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

More
8 years 10 months ago - 8 years 10 months ago #155892 by shoulders
Replied by shoulders on topic Joomla 3.5 and K2 URLs

You need to either map all categories into menu items

This is a bad solution. If I wanted a manual website I would choose HTML.

OR use K2's advanced SEF

There are no settings that give nested categories in K2's advanced SEF. If there is, I cannot find them or work out what to do. Can you do a screenshot of settings perhaps with a menu config setting example so i can get this working.

using Advanced SEF

I have to purchase a 3rd party software to get a basic feature present in most Joomla components

conclusion
I think I have listed the 3 options. My opinion would be that i dont want to purchase 3rd party software or spend a load of time setting up complex menus and that leaves K2's Advanced SEF settings which do not give nested categories unless I am doing something wrong.

These are my advanced SEF settings from k2 v2.6.9 , could get v2.7.0 to do it either.
imgur.com/NSAUhDu
Last edit: 8 years 10 months ago by shoulders.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155897 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
Joomla!'s core functionality (modules, templates, etc) work with menu items.

If you choose not to use them, then you won't get the URL structure you want. You can only map the root category and use Advanced SEF but it will not give you control over the modules, allow you to have multiple categories in a view, use another template, and may other.

You can ask the full category path to be included as an on option in Advanced SEF, but to say that K2 does not support nested URLs is wrong.q

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

More
8 years 10 months ago - 8 years 10 months ago #155898 by shoulders
Replied by shoulders on topic Joomla 3.5 and K2 URLs
I will be honest I don't think anyone know hows to get nested categories. Your answers are cryptic and do not make sense.

This is how you do it in mosets tree.

1) create a single menu item and point it to the directory you want
2) save the menu item
3) done

All the content (items and categories) under that menu item now have full nested category URLS as you would expect.

You cannot do this in K2, I have tried, so if there are some settings i have missed please let me know.

Not everyone uses K2 to replace the Joomla articles, I have used K2 for a Knowledge Base and this is why for me, proper URLs are a must.

My knowledge Base: quantumwarp.com/kb/articles
Last edit: 8 years 10 months ago by shoulders.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155899 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
If you find this cryptic:

) map each K2 category into a separate menu item (this is what I do).


I am not sure what else to say.

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

More
8 years 10 months ago - 8 years 10 months ago #155900 by shoulders
Replied by shoulders on topic Joomla 3.5 and K2 URLs

I am not sure what else to say.

K2 doesn't support nested category SEF URLs
Last edit: 8 years 10 months ago by shoulders.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155901 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs
There is no point in continuing this discussion I am afraid.

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

  • En Jie
  • En Jie's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago - 8 years 10 months ago #155905 by En Jie
Replied by En Jie on topic Joomla 3.5 and K2 URLs
My k2 urls are in a bit of the mess now.

To respond to some of Krikor's questions (as you can see from the credentials I sent through the contact form):

You need to either map all categories into menu items OR use K2's advanced SEF.

Using both can result to not-so nice URLs.


I have mapped all categories into menu items and I am currently having K2 advanced SEF OFF

Furthermore sh404sef's cache seems to have issues when it comes to purging.


I have been purging urls using sh404sef. I am wondering what issue you have experienced?

Finally when using Advanced SEF if you select "Use the item's category" in the Prefix for item URLs setting then you will get an extra prefix,


As indicated above, my k2 advanced SEF is currently OFF, it therefore should not have effect on the menu mapping of Joomla. The urls I am getting are:

category/menu-item/id_subcategory/k2 article.html
(the menu-item here is the menu item for the k2 sub-category)

I would appreciate any advice as what I causing this?

Best regards

En Jie
Last edit: 8 years 10 months ago by En Jie.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155934 by Krikor Boghossian
Replied by Krikor Boghossian on topic Joomla 3.5 and K2 URLs

I have mapped all categories into menu items and I am currently having K2 advanced SEF OFF


They are disabled because you sent me credentials and I disabled them myself.

The default URLs are /menu-item/item/id-itemalias.
Since you were getting completely different URLs, to be more precise,
category-prefix, no ID in the URL and no /item/ this is the result of K2's advanced SEF.

Without K2's advanced SEF you would not be getting these URL patterns.

Finally in your site the URLs are:

staging.domain.com/blog/hot-topics/item/71-the-recent-surge-of-pu-erh-tea-prices-in-china.html

or
staging.domain.com/blog/green-tea/item/167-green-teas-are-not-all-equal.html

which are of the pattern:
/main-category/subcategory/item/id-item-alias.

You can reenable K2's advanced SEF in order to remove the /item/ prefix, just don't use the item's category as a prefix.

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


Powered by Kunena Forum