- Messaggi: 1
- Ringraziamenti ricevuti 0
FIeld value only in SEF URL
- businesstraveller
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
12 Anni 9 Mesi fa #503
da businesstraveller
FIeld value only in SEF URL è stato creato da 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
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
12 Anni 9 Mesi fa - 12 Anni 9 Mesi fa #504
da andrea_4g
Risposta da andrea_4g al 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
Ultima Modifica 12 Anni 9 Mesi fa da andrea_4g.
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.125 secondi