Hi guys, thanks for all your replys!
jerry wrote:Danish language file can be downloaded her:
Thank you jerry, I'll include it in the next version.
manu wrote:manu wrote:Nevertheless something for the wishlist:
As I use CMSimple scripting not only for outputting something but also alter values like the "submenu" title like
here, it would be nice if simple assignments like
Code: Select all
#CMSimple $tx['submenu']['heading']="tour overview";#
would be excluded from outputting.
But thanks anyway
manu
a possible solution could be:
Code: Select all
<?php
// class user functions
class uf {
function varAssignValue(&$var,$val) {
$var = $val;
return;
}
}
$uf = new uf();
?>
Inside pd_scripting use
Code: Select all
$uf->varAssignValue($tx['submenu']['heading'],"tour overview")
to get the expected result.
manu
Hi manu, thanks for your suggestion.
The plugin was thought to deal with $output. But you're right, it's nice to include a way to change some variables at runtime since it is possible to do this with the classic CMSimple scripting.
But IMO there's no need for a special function or method. I think we can append the code / content of the field in the pagedata without any manipulation to $c[$pd_s].
The only thing to do is to decide if the given script contains a function or only variables.
So If we find the first character of $pd_current['hi_pd_scripting_code'.$i] as a "$", we can assume that we have not to deal with a plugin/function,
isn't it
If so, we only have to append the code to $c[$pd_s] and the syntax below is enough inside pd_scripting tab:
Code: Select all
$tx['submenu']['heading']="tour overview"; $tx['foo']['bar']="Blah"; $cf['setting']['blah']="true";
I've made some little tests and it seems to work.
So I will make an update of the plugin with this feature in the next two or three days.
CMSimple-Styles.com wrote:Hello Holger,
do you mind if i add this plugin to CMSimple SE?
Hi Jens, no problem, including it is fine with me (im Gegenteil, es ist mir sogar eine Ehre!).
But you should wait those two or three days until I can provide the update. We have a long weekend and it seems to be not a problem for me to find the time doing it.
Holger