candeleterow plug in: syntax error, unexpected 'xhr' (T_STRING)

pastvne

Bruce Decker
Hello:
I'm starting to use the candeleterow plug-in and had developed some PHP eval code under the advanced tab in the list plug-in which reads like this:

Code:
$cspDivisionId = "{csp_division___id}";
die('$custDivisionId=' . $cspDivisionId);

Which produces this to the page:
Code:
syntax error, unexpected 'xhr' (T_STRING)

But if I change the code to read thusly:
Code:
$cspDivisionId = "{csp_division___id_raw}";
die('$custDivisionId=' . $cspDivisionId);

I get the proper id as I would expect:
Code:
$custDivisionId=1
 
Yup, the id element usually is a link to details, so something like <a data-loadmethod="xhr" class="fabrik___rowlink fabrik_edit"....
For the raw id you must use {..._raw}.
Better use var_dump(...);exit; instead of die();
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top