Keyword

Problem with SEF URL For Users/Authors

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 hours ago #143522 by Tyler Ancell
Problem with SEF URL For Users/Authors was created by Tyler Ancell
Hi there,

I'm having trouble setting up proper SEF URL's for the users / authors on a site I'm working on. I have "Enable advanced SEF for K2 URLs" on, and everything works fine as long I can associate a menu item with (categories, etc). The site I'm working on has MANY different contributors and creating a menu item for each author seems like its probably not the right way to go about it.

Currently, if I view a user from the "homepage" from a module, K2 prefixes component/k2 before author like this: mysite.com/component/k2/author/authorname

If I view a user from within the category view, K2 prefixes the category name like this: mysite.com/categoryname/author/authorname

Ideally, what I'd like to have is this: mysite.com/author/authorname

Is there any way to accomplish this without creating a menu item for each author? or doing something funky with .htaccess?

I would greatly appreciate any help concerning this, thank you.

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

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago - 8 years 11 months ago #143538 by Tyler Ancell
Replied by Tyler Ancell on topic Problem with SEF URL For Users/Authors
After testing a few different things, if I create a menu item called "author", K2 seems to always associate the author URL's to that menu item, but in an odd way.

Associating a menu item called "author" produces a URL like this: mysite.com/author/author/authorname

So, it's kind of right? except for the duplicate author.

Any help would still be appreciated,

Thank you.

EDIT: For whatever reason, this is no longer working.
Last edit: 8 years 11 months ago by Tyler Ancell.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #143560 by Krikor Boghossian
Replied by Krikor Boghossian on topic Problem with SEF URL For Users/Authors
The advanced SEF for K2 are meant to be used instead of menu items.
If I where you I would map each category into a menu item and then if I had a handful of users I would map these users to menu items as well.

If the users are too many you can create an empty K2 categories menu item (leave the selection empty) so all orphan users and tags are rendered through that menu item.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Tyler Ancell
  • Tyler Ancell's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 11 months ago #143596 by Tyler Ancell
Replied by Tyler Ancell on topic Problem with SEF URL For Users/Authors
Thanks Krikor,

That actually worked perfectly, however, it adds the user ID to each URL and for my purposes, I couldnt have that showing. So I did end up having to create a menu for each user.

I used a plugin from www.jlinker.com/ to bulk create menus for each user, and it worked well for anyone running into the same dilemma.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #143614 by Krikor Boghossian
Replied by Krikor Boghossian on topic Problem with SEF URL For Users/Authors
Thanks for sharing this solution Tyler.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum