Hello All!
Within PHP I can get parameter values of a custom field plugin this way:
$plugin = &JPluginHelper::getPlugin('vmcustom', 'myplugin');
$pluginparams = new JRegistry($plugin->params);
$paramvalue = $pluginparams->get('myparameter');
But How can I get the parametervalue in a JS file?
Thank you very much for your help in advance!
Kind regards,
Gerald
not on the fly but in your JS
<?php
$plugin = &JPluginHelper::getPlugin('vmcustom', 'myplugin');
$pluginparams = new JRegistry($plugin->params);
$paramvalue = $pluginparams->get('myparameter');
?>
<script type="text/javascript">
jQuery(document).ready(function($){
var nelly = '<?php echo $paramvalue; ?>';
// do something
});
jQuery.noConflict();
</script>
Thank you for your hint!
Best regards,
Gerald