2023-04-02, 16:17
hi, please take a look at the pic. I have successfully appended different smart playlists to the same video widget "New Content" editing 2 files.
However, I would like to achieve the same using a main menu FOLDER "New Arrivals" - not widget.
It looks like I need to add the smart playlists paths to <onclick> in Home.xml but I'm not sure how that would work.
Hope someone can help me. Highly appreciated!!
Here are the files I have edited to make the two playlists appear in the video widget:
1. Includes_Home.xml: adding <content> at the bottom
and 2. Home.xml: adding content_path and content_path2 with the smart playlist paths
However, I would like to achieve the same using a main menu FOLDER "New Arrivals" - not widget.
It looks like I need to add the smart playlists paths to <onclick> in Home.xml but I'm not sure how that would work.
Hope someone can help me. Highly appreciated!!
xml:<content>
<item>
<label>New Arrivals</label>
<onclick>ActivateWindow(Videos,XXX,return)</onclick> add multiple paths here or how to make multiple playlists appear?
</item>
</content>
Here are the files I have edited to make the two playlists appear in the video widget:
1. Includes_Home.xml: adding <content> at the bottom
xml:<include name="NewContent">
<definition>
<include content="CategoryLabel">
<param name="label">$PARAM[widget_header]</param>
<param name="list_id" value="$PARAM[list_id]"/>
</include>
...
<control type="panel" id="$PARAM[list_id]">
...
<content limit="2">$PARAM[content_path]</content>
<content limit="2">$PARAM[content_path2]</content>
</control>
</definition>
</include>
and 2. Home.xml: adding content_path and content_path2 with the smart playlist paths
xml:<include content="NewContent">
<param name="content_path" value="special://profile/playlists/video/NewTV.xsp" />
<param name="content_path2" value="special://profile/playlists/video/NewMovies.xsp" />
<param name="widget_header" value="New Content"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="5100"/>
</include>