10 years ago
3
Topic

Hi, i'd like to know how can i link to an url. I use the plugin URL (Live url).

I'm doing an add to favourite's list and I get the records, but they are just text, not a link.

I tried differents ways but...nothing.

Thanks a lot!

Arturo


Get a VIP membership
10 years ago
2
Level 1

Hello Arturo,

welcome on SEBLOD.


A live plugin is to catch values from the current url to automatically fill a field in a form.


What do you need is to use the plugin field link in your form to let the user enter an url.

Then in Intro or content view, simply put this field, and you will have the link enter by the user.


Regards.

Lionel


10 years ago
1
Level 2

Hi, first of all, thanks for your time,

I don't really understand you...

I use the plugin as you say...and the field is automatically filled by the plugin, but this field can't be a LINK field  type, it only works this a TEXT field type ...it fills the full path (as you choose in the plugin parameters)...

I can manage this for filling the url into any table but after i don't know how to get the link (of course the user can copy & paste this into the browser but i don't want this). I tried to do it into the sebone template:

<a href="/<?php
echo $cck->getField('live_url');
?>">link text</a>

but it always go to the content of the article created and not to the link saved...(they are different articles)

Thanks a lot

332 Posts
Kenneth
9 years ago
0
Level 3

Hi, I see this is a bit late, but for others experiencing the same, try this in your template:

Replace getField with getValue.

<a href="/<?php echo $cck->getValue('live_url'); ?>">link text</a>

Get a VIP membership