Forum

Thread tagged as: Question

make a link to a page in text

I am sorry if this is a stupid question, but i can't figure how i can create in a template page an area to specify a link to a page. The output would be for example :

<p>Lorem ipsum dolor sit amet, consectetur adipisicing <a href="path/to/file">text link</a></p>

I know i might be so obvious...

DEVAUX Nicolas

DEVAUX Nicolas 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You'd do something like:

<a href="<perch:content id="url" type="text" label="Link URL" />">
    <perch:content id="link_text" type="text" label="Link text" />
</a>

thanks a lot, as i thought, it was obvious.... But if i want the editor to be able to make a link toward one page of the site, how can i implement that in the editor ? Possible ?

Thanks for your support

Drew McLellan

Drew McLellan 2638 points
Perch Support

You could use the pagelist field type for that. Get it here: https://grabaperch.com/add-ons/field-types/pagelist

Great i will take a look. Thanks