Keyword

Use alias instead of name or title for SEF url

  • Matthieu Brunet
  • Matthieu Brunet's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 9 months ago #76578 by Matthieu Brunet
Use alias instead of name or title for SEF url was created by Matthieu Brunet
The "alias" field in category and item doesn't seems to be used right know when using sh404SEF plugin. Instead, a SEF version of the title is used.
It would be nice to use the alias field instead, which is meant for. It's a very simple patch :
in /components/com_k2/sef_ext/com_k2.php
line 35 : replace "$row->name" by "$row->alias"
line 92 : replace "SELECT title" by "SELECT alias"
line 102 : replace "$row->title" by "$row->alias"
that's it !

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

More
14 years 2 months ago #76579 by Sam Hansen
Replied by Sam Hansen on topic Use alias instead of name or title for SEF url
You are an absolute legend! This problem had been bugging me for the better part of the last day!

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

More
13 years 11 months ago #76580 by JoomlaWorks
Replied by JoomlaWorks on topic Use alias instead of name or title for SEF url
We'll add this as an option for 2.5. Thanks for mentioning.

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

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

More
13 years 8 months ago #76581 by mythsword
Replied by mythsword on topic Use alias instead of name or title for SEF url
Hi Sam,

I edited com_k2.php file but I still cannot change to category alias. Do I need to change anything in the configuration of K2 and SH404SEF? Thanks. Sam Hansen said:

You are an absolute legend! This problem had been bugging me for the better part of the last day!

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

  • Matthieu Brunet
  • Matthieu Brunet's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 8 months ago #76582 by Matthieu Brunet
Replied by Matthieu Brunet on topic Use alias instead of name or title for SEF url
did you regenerated your url's in sh404sef ?

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

More
13 years 8 months ago #76583 by Dragos N
Replied by Dragos N on topic Use alias instead of name or title for SEF url
How to regenerate url`s in sh404sef?

Matthieu Brunet said:did you regenerated your url's in sh404sef ?

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

More
13 years 8 months ago #76584 by Olivier Karfis
Replied by Olivier Karfis on topic Use alias instead of name or title for SEF url
Hi.

 

This bug has been fixed in the SVN Trunk 571

(see community.getk2.org/forum/topics/latest-sh404sef-k2-aliases )

 

To regen URLs in sh404, go to the URL manager and top right you have a purge button.  Then make sure you regenerate all the URLs using a sitemap extension like Xmap (before you purge on a live site, I'd read up on it, there can be some gotchas with it).

 

--Olivier

Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com

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

More
13 years 8 months ago #76585 by Dragos N
Replied by Dragos N on topic Use alias instead of name or title for SEF url
Thank you!!!!

Worked like a charm....


Olivier Karfis said:Hi.

 

This bug has been fixed in the SVN Trunk 571

(see community.getk2.org/forum/topics/latest-sh404sef-k2-aliases )

 

To regen URLs in sh404, go to the URL manager and top right you have a purge button.  Then make sure you regenerate all the URLs using a sitemap extension like Xmap (before you purge on a live site, I'd read up on it, there can be some gotchas with it).

 

--Olivier

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


Powered by Kunena Forum