Eugene |
|
---|---|
How I can change word "tags" in links: website.me/tags/some-tag -> website.me/collection/some-tag What is right way from Cot point of view? Do I need to plug into the hook urleditor.rewrite.first or something like that? |
Trustmaster |
|
||
---|---|---|---|
You could copy plugins/urleditor/presets/handy.dat to datas/urltrans.dat and modify that bit there, then switch from Handy preset to Custom.
May the Source be with you!
|
|||
Bu gönderi Trustmaster tarafından düzenlendi (2012-03-08 17:15, 13 yıllar önce) |
Eugene |
|
---|---|
Awesome! thanks a lot! ) it works well, but I missed .htaccess part also. As I understood I have to add a string there - like this: RewriteRule ^collection/(.*) plug.php?e=tags&a=pages&t=$1 [QSA,NC,NE,L] |
|
Bu gönderi Eugene tarafından düzenlendi (2012-03-08 06:14, 13 yıllar önce) |
Trustmaster |
|
---|---|
You don't need the .htaccess part, sef-urls.htaccess example serves this case easily. May the Source be with you!
|
Eugene |
|
||
---|---|---|---|
#33477 Trustmaster: Hm... Of course, I'm using sef-urls.htaccess example, but I've put line with collection before index.php:
How otherwise, I can reach collection URL? Index.php cannot see it as a plug (tags.php) and is not rewrite it by default... |
Trustmaster |
|
---|---|
Ah, sure, my bad. One note though: use index.php instead of plug.php, the later is being phased out in non-legacy distributions. May the Source be with you!
|
Eugene |
|
---|---|
ok. I done. Do you mean that plug.php (which is empty by now) - will be deleted in future releases - like 1.0? |
Trustmaster |
|
---|---|
It may be removed from packages for new installs and would be shipped in a separate legacy package. May the Source be with you!
|