Keyword

Different URL (Menuitem K2 TAG / K2 page&mod)

  • Igor Shklovtsov
  • Igor Shklovtsov's Avatar Topic Author
  • Offline
  • New Member
  • From idea to result!
More
10 years 5 months ago - 10 years 5 months ago #133752 by Igor Shklovtsov
Different URL (Menuitem K2 TAG / K2 page&mod) was created by Igor Shklovtsov
Hi

Thanks for stable perfect component.
I used it for news of university.

After tryed mod_K2_tools as tags i see different of URL.

I create for each category menu item.
I create for each tag menu item.

But i see different
=> ON K2 PAGE ARTICLE
category URL OK as menu alias
tag url NOT NOT OK as menu (only as ...../my-category-alias/my-subcategory-alias/itemlist/tag/cyrillic text with spaces)
And mod_k2_Tools not used menu alias for tag too.

What i must do for used menui tem as tag in url of k2 links?

P.S. Sorry for my english

WBR
Igor

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 5 months ago - 10 years 5 months ago #133753 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
Hello Igor,

The tags will use the current menu item as their base if they do not belong to a menu item.
You can solve this by creating a K2 menu item pointing to all categories bellow all other menu items.

This way all orphan tags will be rendered from that menu item.

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

  • Igor Shklovtsov
  • Igor Shklovtsov's Avatar Topic Author
  • Offline
  • New Member
  • From idea to result!
More
10 years 5 months ago #133754 by Igor Shklovtsov
Replied by Igor Shklovtsov on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
Hi Krikor

I tryed many variants, but result as before.
I need locked 1 page for many authors.
And i used tags as authors info for one article.

I have structure menu as
(1) Main category K2 menuitem (without parent)
(1.1) subcategory #1 K2 menuitem
(1.2) subcategory #2 K2 menuitem
(1.3) subcategory #3 K2 menuitem
.....
(2) Menuitem for Authors (without parent)
(2.1) author #1K2 TAG#1 menuitem
(2.2) author #1K2 TAG#2 menuitem
....

I tryed many variants.
(2) under (1)
(2) as milticategory type menu
I tryed TEST move (2.1) as submenu of parent category (1.1.1), but nothing change

Category URL
/ua/kategoriji/statti

TAG url in article
/ua/kategoriji/statti/itemlist/tag/%D0%9D%D0%9E%D0%96%D0%9E%D0%92%D0%9D%D0%86%D0%9A%20%D0%9E%D0%9B%D0%95%D0%93%20%D0%9C%D0%98%D0%9A%D0%9E%D0%9B%D0%90%D0%99%D0%9E%D0%92%D0%98%D0%A7

But GOOD URL from menuitem (2.1) as
/ua/avtori/nozhovnik-oleg-mikolajovich

Can i use GOOD url from menu in article and module?

WBR
Igor

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

  • Igor Shklovtsov
  • Igor Shklovtsov's Avatar Topic Author
  • Offline
  • New Member
  • From idea to result!
More
10 years 5 months ago #133755 by Igor Shklovtsov
Replied by Igor Shklovtsov on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
Hi Krikor

I used
Joomla! 3.3.6
K2 v2.6.8

WBR
Igor

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 5 months ago #133756 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
The bad URL example you sent me is a result of that tag not belonging to a menu item.
Did you try my solution?

Create a menu link to K2 categories and don't select any category. This way, all unresolved links will be assigned to this menu, preventing duplicates.

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

  • Igor Shklovtsov
  • Igor Shklovtsov's Avatar Topic Author
  • Offline
  • New Member
  • From idea to result!
More
10 years 5 months ago - 10 years 5 months ago #133757 by Igor Shklovtsov
Replied by Igor Shklovtsov on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
Hi Krikor

I changed
(2) Menuitem for Authors (without parent) AS CATEGORY WITHOUT SELECT
(2.1) author #1K2 TAG#1 menuitem
(2.2) author #1K2 TAG#2 menuitem

And TAG url changed
/ua/avtori/itemlist/tag/%D0%9D%D0%9E%D0%96%D0%9E%D0%92%D0%9D%D0%86%D0%9A%20%D0%9E%D0%9B%D0%95%D0%93%20%D0%9C%D0%98%D0%9A%D0%9E%D0%9B%D0%90%D0%99%D0%9E%D0%92%D0%98%D0%A7

But 2.1 menuitem URL
/ua/avtori/nozhovnik-oleg-mikolajovich

I can not see tag url as menuitem url.

WBR
Igor

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

  • Igor Shklovtsov
  • Igor Shklovtsov's Avatar Topic Author
  • Offline
  • New Member
  • From idea to result!
More
10 years 5 months ago #133758 by Igor Shklovtsov
Replied by Igor Shklovtsov on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
Hi Krikor

I changed GLOBAL K2 CONFIG

SEF for K2 URL = YES

And url of TAG
/ua/avtori/nozhovnik-oleg-mikolajovich

That is good.
But i read attention note in this option about warning for server.
I plan create menu for authors (as tag) 200-500
and article with that tag 4000+.

It is one way for good url in tag?

WBR
Igor

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 5 months ago #133759 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
If you are using caching and your server is not underpowered I do think it will have that much of an issue.

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 4 months ago - 10 years 4 months ago #135247 by Joe Campbell
Replied by Joe Campbell on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
My tags suddenly became broken - specifically, the URLs are displaying the tag name instead of alias in URL (capital letters & spaces, instead of lowercase with dashes):
domain.com/tag/Tag%20Name

I followed your instructions and created a hidden menu titled "View" and saved it without adding any K2 categories, but the problem still persists:
domain.com/view/tag/Tag%20Name

What else could be the issue?
Last edit: 10 years 4 months ago by Joe Campbell.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 4 months ago #135263 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
This is a different issue.
You need to enable the tag normalisation option in K2's settings. This will work for newly created tags only.

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 4 months ago #135275 by Joe Campbell
Replied by Joe Campbell on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
I enabled Tag Normalization, then added "New Tag"

When I went add it to an item, the auto complete tag was lowercase, even though I saved it as Capital Case.

When viewed from the frontend it displays as...

domain.com/view/tag/new%20tag

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

  • Lefteris
  • Lefteris's Avatar
  • User
More
10 years 4 months ago #135313 by Lefteris
@Joseph

This is how it should be displayed. Any non valid URL characters should be URL encoded in order to work. If you don't want URL encoded characters in your tags URLs you need to ensure that your tags do not contain spaces, dots and other characters that are not valid for URLs. Note that in the upcoming version 3 of K2 tags have an alias so there should be no such issues.

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 4 months ago #135623 by Joe Campbell
Replied by Joe Campbell on topic Re: Different URL (Menuitem K2 TAG / K2 page&mod)
I did that and it did not have any effect.

The tag alias portion of the URL has spaces instead of hyphens and the characters are not all lowercase.

Also, what does "Tag character case" do, there is no tooltip to describe it.

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 4 months ago #135624 by Joe Campbell
Replied by Joe Campbell on topic Different URL (Menuitem K2 TAG / K2 page&mod)
Also, is there a way to create hidden menu named "tag" and then do the trick of creating a K2 category menu item with selecting any categories...then remove the "/tag" prefix portion of the url that K2 automatically to all tag URLs?

I tried deleting "tag" under the Advanced SEF Parameter, but it replaces it with "tag" as a default.

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 4 months ago #135625 by Joe Campbell
Replied by Joe Campbell on topic Different URL (Menuitem K2 TAG / K2 page&mod)
Also, the title and breadcrumbs displays the tag in lowercase (even though the tag was saved as Title Case)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 3 months ago #135631 by Krikor Boghossian
Replied by Krikor Boghossian on topic Different URL (Menuitem K2 TAG / K2 page&mod)

Also, is there a way to create hidden menu named "tag" and then do the trick of creating a K2 category menu item with selecting any categories...then remove the "/tag" prefix portion of the url that K2 automatically to all tag URLs?


I do not really understand the question since you already pointed out the trick. The only different thing I would do is to leave that menu item blank instead of selecting all categories.

Also, the title and breadcrumbs displays the tag in lowercase (even though the tag was saved as Title Case)


Is it possible to have a link?

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 3 months ago #135636 by Joe Campbell
Replied by Joe Campbell on topic Different URL (Menuitem K2 TAG / K2 page&mod)
It's production/private...Please send (email or Twitter Direct Message) your email address and I will send details.

Wishing the entire #JoomlaK2 Team & Community a Happy & Health New Year :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 3 months ago #135638 by Krikor Boghossian
Replied by Krikor Boghossian on topic Different URL (Menuitem K2 TAG / K2 page&mod)
Joe All the best for you and your family :)

You can use our contact form to send links and credentials www.joomlaworks.net/support/contact

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

  • Joe Campbell
  • Joe Campbell's Avatar
  • User
More
10 years 3 months ago #135663 by Joe Campbell
Replied by Joe Campbell on topic Different URL (Menuitem K2 TAG / K2 page&mod)
OK...thank you for the support link and the warm holiday sentiment :)

I will send the links and credentials in a few days...I would like to tidy a few things up first, as I would like to receive your option on the site as well...THANKS AGAIN :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
10 years 3 months ago #135671 by Krikor Boghossian
Replied by Krikor Boghossian on topic Different URL (Menuitem K2 TAG / K2 page&mod)
Ok :)

Let me know when you've sent them.

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


Powered by Kunena Forum