2015-09-24, 16:00
(2015-09-24, 13:37)BobCratchett Wrote: @Jayz2K - can you try the branch here - it has changes to the custom properties which should enable you to do what you want:-
Code:<property property="[Property]" label="[label]">[Property Value]</property>
[Property] - The property of the shortcut that will be set
[label] - [Optional] The label that will be displayed to the user. If ommitted, the [Property value] will be used.
[Property Value] - The default value of the property
The new 'label' attribute will be translated if it's an $INFO, so an updated entry in your overrides could look like...
Code:<property property="viewtype" label="$INFO[Skin.String(HOM.View1.Name)]">1</property>
...which should show the view name to the user, but actually set the viewtype property to "1".
It also has a new propertySettings element which should help with another issue I know you've been having, as it allows you to enable browsing for an image...:-
Code:<propertySettings property="[Property]" title="[Dialog title]" showNone="[True/False]" imageBrowse="[True/False]" />
[Property] - The property of the shortcut that will be set
[Dialog title] - [Optional] The title of the dialog that will be shown to the user
[True/False] - [Optional] A boolean indicating whether a None option will be shown, and whether the user will be able to browse for an image or folder of images
Note:- showNone defaults to True, imageBrowse defaults to False
If you can confirm it working (and doing what you need, and if you could also give the updated documentation a quick glance ), I'll do a PR.
Both are working great Bob, excellent job !
For the visibility condition of viewtype, do you think it's also possible to add something like this ?
Code:
<property property="viewtype" label="$INFO[Skin.String(HOM.View1.Name)]" condition="!IsEmpty(Skin.String(HOM.View1.Name))">1</property>
Or maybe just not showing if the label tag returned value is empty ?