inherit
220360
0
Jul 4, 2015 10:35:30 GMT -8
Philip
31
April 2015
legions
|
Post by Philip on Apr 9, 2015 12:18:13 GMT -8
It would be nice to be able to use plugin variables in the template variable list.
For example in forum_wrapper
proboards.plugin._plugins.gridsystem.settings.columns
Ideally I would like to reference the variable instead.
{if $[namespace.columns] && $[namespace.columns == 'three_columns']} //... {/if}
I guess it may not be possible for security reason and name collisions but is it something the developers might look into in future?
Regards.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 9, 2015 21:26:52 GMT -8
It would be nice to be able to use plugin variables in the template variable list. For example in forum_wrapper proboards.plugin._plugins.gridsystem.settings.columns Ideally I would like to reference the variable instead. {if $[namespace.columns] && $[namespace.columns == 'three_columns']} //... {/if}
I guess it may not be possible for security reason and name collisions but is it something the developers might look into in future? Regards. Since it is using like two different languages...You can combine them sort of But javascript variables must be evaluated in a <script></script> tag
|
|
inherit
220360
0
Jul 4, 2015 10:35:30 GMT -8
Philip
31
April 2015
legions
|
Post by Philip on Apr 10, 2015 12:31:44 GMT -8
Hi P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ my question was more about template parsing on the server, thanks for answering though.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 10, 2015 12:38:00 GMT -8
Hi P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ my question was more about template parsing on the server, thanks for answering though. That's what I'm saying though Go to your custom layout templates. Say you want to use a variable outside of templates Add this in your template where $[namespace.columns] is <script>var blah='$[namespace.columns]'; alert(blah)</script> And blah will alert with the value for namespace.columns That makes blah a now global variable with the template information.
|
|