- Posts: 1
- Thank you received: 0
FIeld value only in SEF URL
- businesstraveller
- Topic Author
- Offline
- New Member
Less
More
12 years 9 months ago #503
by businesstraveller
FIeld value only in SEF URL was created by businesstraveller
How to show only the field value in url?
FOr example is the name is city and the fiedl value Paris iWant the url to be www.xxx.FR/tag/paris and not www.xxx.FR/tag/city-paris
Which file do i need to modify?
Thanks
FOr example is the name is city and the fiedl value Paris iWant the url to be www.xxx.FR/tag/paris and not www.xxx.FR/tag/city-paris
Which file do i need to modify?
Thanks
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 9 months ago - 12 years 9 months ago #504
by andrea_4g
Replied by andrea_4g on topic Re: FIeld value only in SEF URL
That's not a quick modification to do. There's no single file I can point you to.
Consider that Custom Properties NEED to know the name of the field to be able to distinguish which tag is which. See the following example:
Socks => (Red, Green, Blue)
Shirt => (Red, Green, Blue)
(or, in you example, you would not be able to tell Texas => Paris from France => Paris
However, if you want to try the modification, here's where you have to start:
- helper.php: showTags function writes the urls
- helper.php: getTagByName function, converts a text tag into it's numeric equivalent
- router.php: SEF urls encoding / decoding
Consider that Custom Properties NEED to know the name of the field to be able to distinguish which tag is which. See the following example:
Socks => (Red, Green, Blue)
Shirt => (Red, Green, Blue)
(or, in you example, you would not be able to tell Texas => Paris from France => Paris
However, if you want to try the modification, here's where you have to start:
- helper.php: showTags function writes the urls
- helper.php: getTagByName function, converts a text tag into it's numeric equivalent
- router.php: SEF urls encoding / decoding
Last edit: 12 years 9 months ago by andrea_4g.
Please Log in or Create an account to join the conversation.
Time to create page: 0.157 seconds