Forum

Thread tagged as: Problem

Editor to Input URL's

I need a editor to be able to input URL's to a page (these are currently from SoundCloud, but this could change in future to include YouTube etc.) multiple times into a page.

Currently I am using the following template:

<div class="soundcloud"> <perch:content id="website" type="url" required label="Website"> </div>

An the following to output the information onto the page:

<?php perch_content('Sounds'); ?>

The problem is that the URL is appearing as plan text on the page and not being rendered.

What am I doing wrong?

Michael Tott

Michael Tott 0 points

  • 2 years ago

Have tried lots of options, but I have not been able to find a way of doing this. I didn't think it would be this difficult to allow an editor to paste in a URL and have this work on the page.

There is mention of an Audioboo fieldtype in one of the forum replies, but I can't find it mentioned anywhere else. Does anyone know if this is still around?

I found the solution, I just needed to change the:

<perch:content id="website" type="text" required label="Website"> to <perch:content id="website" type="text" required label="Website" html="true">

It's easy when you know how