Jump to content

Custom Fields for Widgets


Tim

Recommended Posts

Hi,

 

is it possible to add a few custom fields to the 'get code' area. for example I'd like to add a return max records so the user can choose how many records to return and a selector box to select a theme ie

Choose Theme [Light][Dark]

 

Essentially I would like variables available in my template file so I can respond. I've currenlty solved this by getting a user to manually add

 

<script>

var maxDays = 4;

var themeID = 0;

</script>

 

then using parent.parent.maxDays to access it, but it's not ideal

 

What the data is is not important, I'd just like the ability to add some custom input to the some (not all) of my widget 'get code' form.

 

Thanks

 

Tim

Link to comment
  • 2 weeks later...
×
×
  • Create New...