Forum Discussion

Naveed_Anjum's avatar
16 years ago

Multilevel categories

Hello everybody:

Can anybody tell me how can we modify code and xml of video player example in order to add multilevel categories?

For example here is the xml sample that is taken from video player example:


<category title="Technology" description="TED Talks on Technology" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" hd_ img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png">
<categoryLeaf title="The Mind" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>
<categoryLeaf title="Global Issues" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/globalissues.xml" />
</category>



I want actully to add another category under "Technology" and then want to add "categoryleaf" under that new category. So tell me guys how can i do that?

1 Reply

  • You could create another xml feed for the next level category, and then create a new function like InitCategoryFeedConnection()... maybe call it Init2ndLevelCategoryFeedConnection() and then follow the code through and link it all up just like the home screen was.

    --Kevin