Forums | Mahara Community

Developers /
Display URL entered by user as href link


Noraini's profile picture
Posts: 13

19 October 2017, 14:31

Hi,

 

I'm new in using mahara. I want to ask how to display input entered by user as link.

i added new field 'Youtube URL' in resume form.  After save the form, i want to display in the form the url insert by user as a link so we can click the link to view the link.

 

Really appreciate if someone can help me.

 

Thank you.

Kristina Hoeppner's profile picture
Posts: 4863

20 October 2017, 9:40

Hi Noraini,

Which resume field are you talking about? You can take a look at how we resolved the linking in the image description field.

Cheers

Kristina

 

Noraini's profile picture
Posts: 13

20 October 2017, 21:44

Thanks Kristina for your respond.

the field i added at menu resume in tab introduction. But its okay i already found the way. i just add new element to display the href link as below:

'urllink' => array(
                    'type'         => 'html',
                    'value'        => '<a href="'.$personalinformation->get_composite('embedurl').'" target="_blank">Click here to view resume video</a>',),

3 results