adding rss to head of html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

adding rss to head of html

Peter Osburg-2
hey guys,

i tried to play a little bit with seaside and rss stuff. so now i developed a tool that can create valid xml output with rss content.
so what will be my next step?
i want to add the following to the head of the html:

<link rel="alternate" type="application/rss+xml" title="RSS" href="blub" />

so i decided to use the updateRoot method. but how to add the link? i tried to use the addHeadElement and then to add a WALinkElement

updateRoot: aHtmlRoot
    aHtmlRoot addHeadElement: ((WALinkElement new) beRss)

but then i fail with an error because WALinkElement has an instance variable called attributes that is nil. so i tried to set the attributes manually ... to shorten the story: i failed again :)

so how can i add the tag with the "application/rss+xml" stuff to the head? any help would be great. thx alot mates


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: adding rss to head of html

Michel Bany

On 27 Jul 2007, at 23:33 , Peter Osburg wrote:

> hey guys,
>
> i tried to play a little bit with seaside and rss stuff. so now i  
> developed a tool that can create valid xml output with rss content.
> so what will be my next step?
> i want to add the following to the head of the html:
>
> <link rel="alternate" type="application/rss+xml" title="RSS"  
> href="blub" />
>
> so i decided to use the updateRoot method. but how to add the link?  
> i tried to use the addHeadElement and then to add a WALinkElement
>
> updateRoot: aHtmlRoot
>     aHtmlRoot addHeadElement: ((WALinkElement new) beRss)
>
> but then i fail with an error because WALinkElement has an instance  
> variable called attributes that is nil. so i tried to set the  
> attributes manually ... to shorten the story: i failed again :)
>
> so how can i add the tag with the "application/rss+xml" stuff to  
> the head? any help would be great. thx alot mates
>

Have a look at WADispatcherComponent in RSRSS-mb.29 of squeaksource/
rsrss.
HTH
Michel.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: adding rss to head of html

Philippe Marschall
In reply to this post by Peter Osburg-2
2007/7/27, Peter Osburg <[hidden email]>:

> hey guys,
>
> i tried to play a little bit with seaside and rss stuff. so now i developed
> a tool that can create valid xml output with rss content.
> so what will be my next step?
> i want to add the following to the head of the html:
>
> <link rel="alternate" type="application/rss+xml" title="RSS" href="blub" />
>
> so i decided to use the updateRoot method. but how to add the link? i tried
> to use the addHeadElement and then to add a WALinkElement
>
> updateRoot: aHtmlRoot
>     aHtmlRoot addHeadElement: ((WALinkElement new) beRss)
>
> but then i fail with an error because WALinkElement has an instance variable
> called attributes that is nil. so i tried to set the attributes manually ...
> to shorten the story: i failed again :)
>
> so how can i add the tag with the "application/rss+xml" stuff to the head?
> any help would be great. thx alot mates

aHtmlRoot rss title: 'RSS'; url: 'blub'.

Philippe
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: adding rss to head of html

Peter Osburg-2
In reply to this post by Peter Osburg-2
thanks phillipe,

but it doesn't work, because WARenderedHtmlRoot does not understand rss :)

i'll try having a look at the RSRSS project. maybe that helps.

thx for your help

Philippe Marschall schrieb:
2007/7/27, Peter Osburg <[hidden email]>:
hey guys,

i tried to play a little bit with seaside and rss stuff. so now i developed
a tool that can create valid xml output with rss content.
so what will be my next step?
i want to add the following to the head of the html:

<link rel="alternate" type="application/rss+xml" title="RSS" href="blub" />

so i decided to use the updateRoot method. but how to add the link? i tried
to use the addHeadElement and then to add a WALinkElement

updateRoot: aHtmlRoot
aHtmlRoot addHeadElement: ((WALinkElement new) beRss)

but then i fail with an error because WALinkElement has an instance variable
called attributes that is nil. so i tried to set the attributes manually ...
to shorten the story: i failed again :)

so how can i add the tag with the "application/rss+xml" stuff to the head?
any help would be great. thx alot mates

aHtmlRoot rss title: 'RSS'; url: 'blub'.

Philippe
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: adding rss to head of html

Philippe Marschall
2007/7/28, Peter Osburg <[hidden email]>:
> thanks phillipe,
>
> but it doesn't work, because WARenderedHtmlRoot does not understand rss :)

Ah, you don't create the feed with RSRSS, then it's something like

aHtmlRoot link beAlternate; beRss; title: 'RSS'; url: 'blub'.

Cheers
Philippe

> i'll try having a look at the RSRSS project. maybe that helps.
>
> thx for your help
>
>  Philippe Marschall schrieb:
>  2007/7/27, Peter Osburg <[hidden email]>:
>
>
> hey guys,
>
> i tried to play a little bit with seaside and rss stuff. so now i developed
> a tool that can create valid xml output with rss content.
> so what will be my next step?
>
> i want to add the following to the head of the html:
>
> <link rel="alternate" type="application/rss+xml" title="RSS" href="blub" />
>
> so i decided to use the updateRoot method. but how to add the link? i tried
>
> to use the addHeadElement and then to add a WALinkElement
>
> updateRoot: aHtmlRoot
>  aHtmlRoot addHeadElement: ((WALinkElement new) beRss)
>
> but then i fail with an error because WALinkElement has an instance variable
>
> called attributes that is nil. so i tried to set the attributes manually ...
> to shorten the story: i failed again :)
>
> so how can i add the tag with the "application/rss+xml" stuff to the head?
> any help would be great. thx alot mates
>
>
>
>
> aHtmlRoot rss title: 'RSS'; url: 'blub'.
>
> Philippe
> _______________________________________________
> Seaside mailing list
> [hidden email]
>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: adding rss to head of html

Peter Osburg-2
In reply to this post by Peter Osburg-2
great! that works fine :)

thank you very much - again - :)

Philippe Marschall schrieb:
2007/7/28, Peter Osburg <[hidden email]>:
thanks phillipe,

but it doesn't work, because WARenderedHtmlRoot does not understand rss :)

Ah, you don't create the feed with RSRSS, then it's something like

aHtmlRoot link beAlternate; beRss; title: 'RSS'; url: 'blub'.

Cheers
Philippe

i'll try having a look at the RSRSS project. maybe that helps.

thx for your help

Philippe Marschall schrieb:
2007/7/27, Peter Osburg <[hidden email]>:


hey guys,

i tried to play a little bit with seaside and rss stuff. so now i developed
a tool that can create valid xml output with rss content.
so what will be my next step?

i want to add the following to the head of the html:

<link rel="alternate" type="application/rss+xml" title="RSS" href="blub" />

so i decided to use the updateRoot method. but how to add the link? i tried

to use the addHeadElement and then to add a WALinkElement

updateRoot: aHtmlRoot
aHtmlRoot addHeadElement: ((WALinkElement new) beRss)

but then i fail with an error because WALinkElement has an instance variable

called attributes that is nil. so i tried to set the attributes manually ...
to shorten the story: i failed again :)

so how can i add the tag with the "application/rss+xml" stuff to the head?
any help would be great. thx alot mates




aHtmlRoot rss title: 'RSS'; url: 'blub'.

Philippe
_______________________________________________
Seaside mailing list
[hidden email]

http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside