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


I am just wondering if there is a way to extend «replace="http://|"» with «replace="https://|"». Here is my code:

<perch:content id="link_url" type="text" replace="http://|" label="Link URL" />

Thanks for helping!

Martin Stettler

Martin Stettler 0 points

  • 1 year ago
Ryan Gittings

Ryan Gittings 1 points
Registered Developer

Try this:

<perch:content id="link_url" type="text" replace="http://|,https://|" label="Link URL" />

Unfortunately it does not work. I am using perch:content inside an a-tag. Here is my code:

href="http://<perch:content id="link_url" type="text" replace="http://|,https://|" label="Link URL" />"

And that's the output I get, when I enter e.g. «https://www.domain.com»: href="http://https://www.domain.com">

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Hello Martin,

Ryan's solution should work. You need to save the region again after editing the template.

Oh, sorry! You're right. I had a little error in my code...grrr. Thanks a lot, guys!