Kapture
14 years agoVisitor
Category & Leafs | XML Help
Hi all,
I've asked a a question on the forums earlier this week about dynamic XML.
Well I'm back with a question about the categories in my channel.
Right now I'm using this code to call my categories:
Then this is my category XML:
Basically what I would like to do is categorize my radio shows like this:
Show 1 > Years Recorded > Months > Shows For That Month
Show 2 > Years Recorded > Months > Shows For That Month
The problem is that I don't know if I have to do it that way via XML or in my actual channel code.
Any help would be appreciated and if you would like further explanation of what I want please say so.
Cheers,
Kapture
I've asked a a question on the forums earlier this week about dynamic XML.
Well I'm back with a question about the categories in my channel.
Right now I'm using this code to call my categories:
Function InitCategoryFeedConnection() As Object
conn = CreateObject("roAssociativeArray")
conn.UrlPrefix = "http://mysite.com"
conn.UrlCategoryFeed = conn.UrlPrefix + "/categories.xml"
conn.Timer = CreateObject("roTimespan")
conn.LoadCategoryFeed = load_category_feed
conn.GetCategoryNames = get_category_names
print "created feed connection for " + conn.UrlCategoryFeed
return conn
End Function
Then this is my category XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>
<category title="Radio" description="Lets Talk!" sd_img="http://mysite.com/pic1.png" hd_img="http://mysite.com/pic1.png">
<categoryLeaf title="Show 1" description="" feed="http://mysite.com/show1.xml"/>
<categoryLeaf title="Show 2" description="" feed="http://mysite.com/show2.xml" />
</category>
</categories>
Basically what I would like to do is categorize my radio shows like this:
Show 1 > Years Recorded > Months > Shows For That Month
Show 2 > Years Recorded > Months > Shows For That Month
The problem is that I don't know if I have to do it that way via XML or in my actual channel code.
Any help would be appreciated and if you would like further explanation of what I want please say so.
Cheers,
Kapture