Forum

Thread tagged as: Question

replace="https://|"

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

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

Thanks for helping!

Martin Stettler

Martin Stettler 0 points

  • 2 years ago
Ryan Gittings

Ryan Gittings 1 points
Registered Developer

Try this:

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

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

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

And that's the output I get, when I enter e.g. «https://www.domain.com»: href="https://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!