2015-09-24, 08:33
(2015-09-23, 22:09)BobCratchett Wrote: Edit:- I think I am misunderstanding your question. You want to use an include with params from a template, right? Yes, that's doable. You can use the $SKINSHORTCUTS[] properties in any elements attribute (as your example shows) or as the text of any element (<element>$SKINSHORTCUTS[]</element>). The big limitation is it must be the only thing in the attribute/text - though that limitation is removed with the git version of the script.
Hehe ! It works Bob
Now that I have viewtypes working like MyXXXNav.xml Windows, I need to declare which one is attached to which menu item. That's where I,m coming back with my 404 button (which is not that much documented). I would like to set a new property per item as follow :
Code:
<property name="ViewType">MY_VIEWTYPE_NUMBER</property>
They should be selectable from number 1 to 9 only if !IsEmpty(Skin.String(HOM.ViewX.Name)) ...
Can you guys help me with the 404 button to achieve this ?
Thanks.
EDIT :
I've set my overrides as follow :
Code:
<propertydefault property="viewtype">$INFO[Skin.String(HOM.View1.Name)]</propertydefault>
<property property="viewtype">$INFO[Skin.String(HOM.View1.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View2.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View3.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View4.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View5.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View6.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View7.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View8.Name)]</property>
<property property="viewtype">$INFO[Skin.String(HOM.View9.Name)]</property>
But nothing happens when clicking the 404 button, I think the chooseProperty is missing but I didn't find where and how to set it ?
Cheers
EDIT 2 :
Well finally got it to work with checking the code in TITAN skin with onclick in the 404 button :
Code:
<onclick>SetProperty(chooseProperty,viewtype)</onclick>
This should be added in the documentation I think
But my problem is now that it seems that $INFO[Skin.String(MY_STRING)] is not translated, it appears as is in my list ?
Have an idea ?
Thanks