- Posts: 28
COMMUNITY FORUM
Use alias instead of name or title for SEF url
- Matthieu Brunet
-
Topic Author
- Offline
- Junior Member
Less
More
15 years 4 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 !
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.
- Sam Hansen
-
- Offline
- New Member
Less
More
- Posts: 9
14 years 9 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.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
14 years 6 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.
Please Log in or Create an account to join the conversation.
- mythsword
-
- Offline
- New Member
Less
More
- Posts: 2
14 years 3 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!
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
14 years 3 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.
- Dragos N
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 3 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 ?
Matthieu Brunet said:did you regenerated your url's in sh404sef ?
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
- Offline
- Elite Member
14 years 3 months ago #76584
by Olivier Karfis
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
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
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.
- Dragos N
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 3 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
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.