Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

How to call custom.php $attr on view.php for a custom slider?

Open Alex-Ascet opened this issue 11 years ago • 2 comments

Hi all,

I have created a custom slider with custom options. I have added my options in custom.php because it is a custom population slider. It works perfectly (see attached). But I do not understand how I can call and display these options on the view.php... I have tried without any results. Could you please help me? Thank you in advance.

screen shot 2015-04-29 at 2 15 06 pm

Alex-Ascet avatar Apr 29 '15 04:04 Alex-Ascet

@Alex-Ascet please read our slider documentation to see the structure of the $data array, as a simple proof that you have your custom fields in frontend please run this code in your slider view.

fw_print($data);

It will print all $data, please pay attention at the slides key and at the inner extra key that is located in every slide. If it helps you , please close the issue.

llemurya avatar Apr 29 '15 06:04 llemurya

Thank you very much for your support. It was very helpful, now it works.

Here the solution to display an option from custom.php: <?php echo $slide['extra']['youroption'] ?>

Alex-Ascet avatar Apr 29 '15 06:04 Alex-Ascet