Pulling _link from list in different multi record.

4 posts by 2 authors in: Forums > CMS Builder
Last Post: November 30, 2009   (RSS)

Re: [jonoc73] Pulling _link from list in different multi record.

By Chris - November 30, 2009

Hi Jono,

I'm having trouble figuring out exactly what you're trying to accomplish. Your beta_lookupRelatedFields call doesn't make a whole lot of sense, since the '_link' psuedofield is not a list field. It should be throwing an error.
All the best,
Chris

Re: [chris] Pulling _link from list in different multi record.

By (Deleted User) - November 30, 2009

it does throw an error!

I just want to link to the tour selected in the drop down list from the separate multi record.

Re: [jonoc73] Pulling _link from list in different multi record.

By Chris - November 30, 2009

Hi Jono,

I'm not sure exaclty how you have things set up, but perhaps you can try:

beta_lookupRelatedFields(array(
'table' => 'guided_tour',
'recordList' => &$guided_tourRecords,
'fieldList' => array( 'quote_tour' )
));


and:

<?php if ($record['quote_tour']): ?>who went on <a href="<?php echo $record['quote_tour']['_link'] ?>" rel="bookmark" title="<?php echo $record['quote_tour']['title'] ?>"><?php echo $record['quote_tour']['title'] ?></a><?php endif ?>

Does that help?
All the best,
Chris