Active
Project:
Dynamic display block
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2011 at 23:50 UTC
Updated:
22 Nov 2011 at 23:51 UTC
Hello,
Thanks for this great module :) I have a feature request about jQuery.cycle custom options.
Currently, the custom options must have JSON format.
The problem is that it is not possible to define jQuery.cycle custom options such as:
{
startingSlide : parseInt(jQuery.cookie('last_viewed_slide'));
}
However if these options would be rendered "as it is", not as a JSON string, this problem would not happen.
Alternatively, it should be possible to generate the JSON options via PHP. Something similar to:
{
startingSlide : <?php $_COOKIE['last_viewed_slide']; ?>
}
This would solve my problem (cookie values are also known in the server), although it might not solve all similar problems.
Thanks for reading until here,
David