Forum

Thread tagged as: Question

How do I Create a New "a href" link with a New Page

This is what I have.

<a href="<perch:content type="text" id="url" title="true" label="URL Path" help="Example: julia-arata-fratta/">"
Aaron Storm

Aaron Storm 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I'm not sure what you need to do. Are you creating pages through Perch and want to automatically generate a link to a page?

If you just want people to type in a URL then you will want Perch Content tags for the link and the anchor text - the text people click on to visit the link.

<a href="<perch:content type="text" id="url" title="true" label="URL Path" help="Example: julia-arata-fratta/">"><perch:content type="text" id="anchortext" label="Link Text"></a>

Thanks I figured it out.

https://solutions.grabaperch.com/templates/correcting-external-links-with-replace

coming from this

<a href="https://<perch:content id="url" type="text" label="Your website" replace="https://|" />">

to This.

<a href="https://lccmadison.org/board-of-directors/<perch:content id="url" type="text" label="Webpage Name" replace="https://|" help="Example: julia-arata-fratta/" />"