2023-03-15, 07:04
In Estuary Skin,
I would like to modify the Estuary skin so that clicking on the movie widget brings up the Dialogvideoinfo screen directly (rather than through the context menu).
It would be nice to use <onclick>something</onclick> to bring up the Dialogvideoinfo screen. I would appreciate any suggestions on how to modify the skin.
When I did a search on the forum for this, I found some piece of information as below
<onclick>ActivateWindow(movieinformation)</onclick>
If it is working, then where do I place this command in Estuary Skin? I mean which xml and code line.
when I look at skin xml,
For an example, unwatched movie widget , it looks retrive movie widget from unwatched_movies.xsp
Home.xml
it defined WidgetListPoster
I would like to modify the Estuary skin so that clicking on the movie widget brings up the Dialogvideoinfo screen directly (rather than through the context menu).
It would be nice to use <onclick>something</onclick> to bring up the Dialogvideoinfo screen. I would appreciate any suggestions on how to modify the skin.
When I did a search on the forum for this, I found some piece of information as below
<onclick>ActivateWindow(movieinformation)</onclick>
If it is working, then where do I place this command in Estuary Skin? I mean which xml and code line.
when I look at skin xml,
For an example, unwatched movie widget , it looks retrive movie widget from unwatched_movies.xsp
Home.xml
Includes_Home.xmlxml:
<control type="grouplist" id="5001">
...
<include content="WidgetListPoster" condition="Library.HasContent(movies)">
<param name="content_path" value="special://skin/playlists/unwatched_movies.xsp"/>
<param name="widget_header" value="$LOCALIZE[31007]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5300"/>
</include>
...
it defined WidgetListPoster
xml:
<include name="WidgetListPoster">
<param name="onclick_condition">false</param>
<definition>
<include content="CategoryLabel">
<param name="label">$PARAM[widget_header]</param>
<param name="list_id" value="$PARAM[list_id]"/>
</include>
<include content="BusyListSpinner">
<param name="list_id" value="$PARAM[list_id]"/>
<param name="posy" value="250"/>
</include>
<control type="panel" id="$PARAM[list_id]">
<left>0</left>
<top>115</top>
<visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
<right>0</right>
<height>503</height>
<onclick condition="$PARAM[onclick_condition]">$PARAM[onclick_action]</onclick>
<include content="WidgetListCommon">
<param name="list_id" value="$PARAM[list_id]"/>
</include>
<itemlayout width="310" height="486">
<control type="group">
<left>68</left>
<top>10</top>
<include content="InfoWallMovieLayout">
<param name="focused" value="false" />
</include>
</control>
</itemlayout>
<focusedlayout width="310" height="486">
<control type="group">
<depth>DepthContentPopout</depth>
<left>68</left>
<top>10</top>
<animation type="Focus">
<effect type="zoom" start="100" end="110" time="200" tween="sine" easing="inout" center="230,130" />
</animation>
<animation type="Unfocus">
<effect type="zoom" start="110" end="100" time="200" tween="sine" easing="inout" center="230,130" />
</animation>
<include content="InfoWallMovieLayout">
<param name="focused" value="true" />
</include>
</control>
</focusedlayout>
<content sortby="$PARAM[sortby]" sortorder="$PARAM[sortorder]" target="$PARAM[widget_target]" limit="15">$PARAM[content_path]</content>
</control>
</definition>
</include>