2016-01-21, 18:02
@Mr. V - can you please test this branch for initial support of variables in templates.
It adds a new section to the 'Other' templates for your variables, within which you can use any $SKINSHORTCUTS properties you like:-
The full <variable /> element is required each time - Skin Shortcuts will take care of combining these across multiple templates. I don't really have a use-case for this myself and as such I've only done sanity checks, so can you please test not only that it works, but that it does what you need
Cheers.
It adds a new section to the 'Other' templates for your variables, within which you can use any $SKINSHORTCUTS properties you like:-
Code:
<other>
<property name="labelID" tag="property" attribute="name|labelID" />
<property name="widgetPath" tag="property" attribute="name|widgetPath" />
<controls>
...
</controls>
<variables>
<variable name="[variable name]">
<value condition="[condition - Skin Shortcuts will automatically add profile visibility]">[value]</value>
</variable>
<variable name="variable1">
<value condition="$SKINSHORTCUTS[labelID]">$SKINSHORTCUTS[widgetPath]</value>
</variable>
...
</variables>
</other>
The full <variable /> element is required each time - Skin Shortcuts will take care of combining these across multiple templates. I don't really have a use-case for this myself and as such I've only done sanity checks, so can you please test not only that it works, but that it does what you need
Cheers.