Forums

Jreview custom Fields

epsdaniel 14 Jul, 2010
I set up a search form that build a redirect url with redirect plugin.

I would need to catch some values of the custom field in jreview. Every article has a chronoform so depending on wich article is the form, catch a value from a custom field and add to the redirect url.

In jreview says that to show a value must write <?php echo $CustomFields->field('jr_namefield',$listing); ?>
http://docs.reviewsforjoomla.com/How_to_customize_the_layout_of_custom_fields_in_Theme_files
I tried to put this line in chronoform but do not let me save the form.
<input type="text" name="hot" id="hot" value="<?php echo $CustomFields->field('jr_namefield',$listing); ?>">

Is there any way to get this code?

Send an example http://soleranet.es/soleranet1/index.php?option=com_content&view=article&catid=24:apartamentos-sierra-nevada&id=178:apartamentos-monte-gorbea&Itemid=519

I would need to catch hotel id and pai values and pass to redirect url.

Is that possible?

Thanks,

Dani
GreyHead 17 Jul, 2010
Hi Dani,

I don't know anything about JReviews. I suspect that the code you quote there will only work inside JReviews.

ChronoForms can pick up a value from a URL, a cookie, or the user session data.

Bob
This topic is locked and no more replies can be posted.