We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question

Urlify but with underscores instead of dashes

I need to create an 'id' version of item title eg;

<perch:content id="job_title" type="text" label="Job Title" required="true" urlify="true" />

Urlify will convert any spaces in the title into dashes, however I would like any spaces to be underscores instead.

Is there a way to do this?

Simon Clay

Simon Clay 127 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you tried the replace attribute or a template filter?