how to create one config by template with v1.7
Posted: Tue May 29, 2018 8:30 pm
Hi all,
I had created a plugin that apparently did not interest anyone.
But it seems that a few rare users remain interested by Glossaire_XH
Could I ask a question to the developers of version 1.7 of CMSimple_XH ?
Could you tell me how to properly use config.php of my plugin to allow one configuration by template.
Before version 1.7 (1.6.x):
$plugin_cf was an array variable.
The config.php file of my plugin contained the values corresponding to the default configuration.
I gave the user the possibility to save a configuration for each template used.
A configuration file dedicated to this template was then created (there was potentially one for each template).
Then, for a template used, if the dedicated configuration file existed, I realized an include and thus updated the $config_cf variables.
Since version 1.7:
$plugin_cf has become an object.
I can not do what I did before.
Question:
You who created this object $plugin_cf,
how can a plugin use it to allow configuration by template.
It is necessary that when a template is used -and that the configuration has already been created for this template-, its dedicated configuration can be loaded as I did before with an include.
Currently, I can not update the variables anymore. Whatever I do, these remain as they are in config.php.
Even if an include of a different configuration is loaded, it does not change these variables.
I hope I have been clear enough. I speak only a little English and I have no notion of German.
Thanks for reading me,
hoping to get an answer and that I can understand it,
best regards,
Ludovic
[Glossaire_XH]
I had created a plugin that apparently did not interest anyone.
But it seems that a few rare users remain interested by Glossaire_XH
Could I ask a question to the developers of version 1.7 of CMSimple_XH ?
Could you tell me how to properly use config.php of my plugin to allow one configuration by template.
Before version 1.7 (1.6.x):
$plugin_cf was an array variable.
The config.php file of my plugin contained the values corresponding to the default configuration.
I gave the user the possibility to save a configuration for each template used.
A configuration file dedicated to this template was then created (there was potentially one for each template).
Then, for a template used, if the dedicated configuration file existed, I realized an include and thus updated the $config_cf variables.
Since version 1.7:
$plugin_cf has become an object.
I can not do what I did before.
Question:
You who created this object $plugin_cf,
how can a plugin use it to allow configuration by template.
It is necessary that when a template is used -and that the configuration has already been created for this template-, its dedicated configuration can be loaded as I did before with an include.
Currently, I can not update the variables anymore. Whatever I do, these remain as they are in config.php.
Even if an include of a different configuration is loaded, it does not change these variables.
I hope I have been clear enough. I speak only a little English and I have no notion of German.
Thanks for reading me,
hoping to get an answer and that I can understand it,
best regards,
Ludovic
[Glossaire_XH]