i ended up subclassing PBBlogRssView so that i can override the
renderer on the header, as well as the entires. in getting the feed ready to go on itunes, i found that i need to be able to render an xml prefixed notation, like: <itunes:name>john doe</itunes:name> or even with attributes: <itunes:category text="Technology"> how would i use the rss renderer to prefix or use attributes? ideas? thanks! -- ---- peace, sergio photographer, journalist, visionary http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
> how would i use the rss renderer to prefix or use attributes?
Something like this should work: (rss tag: 'itunes:category') attributeAt: 'text' put: 'Technology'; with: 'contents of the tag' Lukas -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
2010/12/2 Lukas Renggli <[hidden email]>:
>> how would i use the rss renderer to prefix or use attributes? > > Something like this should work: > > (rss tag: 'itunes:category') > attributeAt: 'text' put: 'Technology'; > with: 'contents of the tag' You probably need to define the itunes name space somewhere else as well. Cheers Philippe _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by Lukas Renggli
>
> (rss tag: 'itunes:category') > attributeAt: 'text' put: 'Technology'; > with: 'contents of the tag' > i got this working.. here's where it gets confusing to me.. this tag has other elements.. it looks like this: <itunes:category text="Technology"> <itunes:category text="Gadgets"/> </itunes:category> where "Gadgets" is the sub category.. how would i add a new entry to the above? like what would be the syntax to nest those tags? thanks! -- ---- peace, sergio photographer, journalist, visionary http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by Philippe Marschall
>
> You probably need to define the itunes name space somewhere else as well. > thanks, phiillipe.. that was my next question.. i have to add this: <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> how would i go about injecting that after: <?xml version="1.0" encoding="UTF-8"?> ? thanks! -- ---- peace, sergio photographer, journalist, visionary http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by sergio_101-2
On 2 December 2010 14:35, sergio_101 <[hidden email]> wrote:
>> >> (rss tag: 'itunes:category') >> attributeAt: 'text' put: 'Technology'; >> with: 'contents of the tag' >> > > i got this working.. here's where it gets confusing to me.. this tag > has other elements.. it looks like this: > > <itunes:category text="Technology"> > > <itunes:category text="Gadgets"/> > > </itunes:category> > > where "Gadgets" is the sub category.. > > how would i add a new entry to the above? like what would be the > syntax to nest those tags? I don't understand the question. The RSS renderer is exactly like the HTML renderer of Seaside. You can nest tags with #with:. Lukas -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
> I don't understand the question. The RSS renderer is exactly like the
> HTML renderer of Seaside. You can nest tags with #with:. > no problem.. i found the problem (was with my code).. thanks, lukas.. -- ---- peace, sergio photographer, journalist, visionary http://www.CodingForHire.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by sergio_101-2
2010/12/2 sergio_101 <[hidden email]>:
>> >> You probably need to define the itunes name space somewhere else as well. >> > > thanks, phiillipe.. > > that was my next question.. > > i have to add this: > > <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> > > how would i go about injecting that after: > > <?xml version="1.0" encoding="UTF-8"?> updateRoot: anRssRoot super updateRoot: anRssRoot. anRssRoot rssAttributes at: 'xmlns:itunes' put: 'http://www.itunes.com/dtds/podcast-1.0.dtd' Cheers Philippe _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |