9 Posts
Witchypaws
5 months ago
2
Topic

HI everyone


I am trying to use two fields to give myself a linked button that has a different ID for each form submission in the item view of the search and list.


In the item view, I have a field that is a text field where we store a URL

Then in the Item Fields view, I have the field 'ebprofilego'

I have applied typography to it using html+ as per the following

<a href="/*value*" role="button">View Profile</a>

THAT ALL WORKS GREAT, if I click the link in the list, it takes me to the correct article

WHAT I CAN'T WORK OUT HOW TO DO IS

I want to wrap that html in a div with an ID like this

<div id="xxxxxx">
<a href="/*value*" role="button">View Profile</a>
</div>

Where xxxxxx has to be the value taken from a different text field in the same form.

Can anyone help me with the correct code to get the value of the second field 'ebidspecialist' as xxxxxx in the wrapping div of the first field please

Thanks all

Jacqui

Get a Book for SEBLOD
47 Posts
StanislavR
5 months ago
1
Level 1

Hi,

$cck->getValue('second_field');

$cck->getText('second_field');

9 Posts
Witchypaws
5 months ago
0
Level 2

Thank you Stanislav, I will try this, so helpful

Get a Book for SEBLOD