- Posts: 13
COMMUNITY FORUM
Joomla 3.5 and K2 URLs
- En Jie
-
Topic Author
- Offline
- New Member
correct!
regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- En Jie
-
Topic Author
- Offline
- New Member
- Posts: 13
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
-
- Offline
- Platinum Member
- Posts: 15920
www.joomlaworks.net/support/contact
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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.
Please Log in or Create an account to join the conversation.
- shoulders
-
- Offline
- Senior Member
- Posts: 44
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
-
- Offline
- Platinum Member
- Posts: 15920
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.
- shoulders
-
- Offline
- Senior Member
- Posts: 44
This is a bad solution. If I wanted a manual website I would choose HTML.You need to either map all categories into menu items
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.OR use K2's advanced SEF
I have to purchase a 3rd party software to get a basic feature present in most Joomla componentsusing Advanced SEF
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
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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.
- shoulders
-
- Offline
- Senior Member
- Posts: 44
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
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
) 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.
- shoulders
-
- Offline
- Senior Member
- Posts: 44
K2 doesn't support nested category SEF URLsI am not sure what else to say.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- En Jie
-
Topic Author
- Offline
- New Member
- Posts: 13
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
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
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.