Jump to content

Using PageNameURL generator in templates


sarah_hue
 Share

Recommended Posts

Hi,

recently I asked a question regarding the PageNameURL generator. Is it also possible to use the generator within a template to create urls out of field content?

I have an array representing a list of names, some of them containing various special characters, i.e.:

  • Tomas Tranströmer
  • José Saramago
  • Kenzaburō Ōe
  • Gabriel García Márquez
  • Halldór Laxness
  • François Mauriac
  • Władysław Reymont

Now I'd like to create urls like:

  • /author/wladyslaw-reymont or
  • /author/kenzaburo-oe

Is there a PageNameURL generator function I can use to convert the special characters?

Thanks a lot!

Sarah

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...