FIeld value only in SEF URL

  • businesstraveller
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
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

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
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
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