List Info

Thread: Unexpected results for RSS enclosure macro




Unexpected results for RSS enclosure macro
user name
2007-01-29 07:45:40
Hi All,

I'm using Blojsom 2.3.1 and for some reason the RSS
Enclosure macro and 
template code seems to only return the text of the enclosure
in rss2.vm. 
I don't know when this started but I've not made any major
changes recently.

#RSSEnclosure($entry)
$!entry.getMetaData().get("rss-enclosure")

For example - 
http://www.cubicgarden.com/b
lojsom/blog/cubicgarden/media/?flavor=rss2&entries=5


</description>
http://blip.tv/file/get/Cubicgarden-G
eekAndGeekhagPodcastNumber22007789.mp3
<guid>

So following this page 
[http://wiki.blojsom.com/wiki/display/blojsom/RS
S+Enclosure+Plugin] I'm 
attempting to create the enclosure element myself but I
can't seem to 
grab the length and type data. What I'm currently trying in
rss2.vm ...
        <enclosure
url="$!entry.getMetaData().get("rss-enclosure"
;)" 
length="$!entry.getMetaData().get(rss-enclosure-object)
.getLength()"" 
type="$!entry.getMetaData().get(rss-enclosure-object).g
etType()"/>

Does anyone know what could be the problem with the
RSS-Enclosure Macro 
or how to grab the other data bits I need to create my own?

Cheers,

Ian Forrester


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

Re: Unexpected results for RSS enclosure macro
user name
2007-01-29 09:14:47
Use "rss-enclosure-object" in quotes in the
getMetaData() call since it's a
named key/value pair. That should do it.


On 1/29/07 8:45 AM, "Mr I Forrester"
<mailboxcubicgarden.com> wrote:

> Hi All,
> 
> I'm using Blojsom 2.3.1 and for some reason the RSS
Enclosure macro and
> template code seems to only return the text of the
enclosure in rss2.vm.
> I don't know when this started but I've not made any
major changes recently.
> 
> #RSSEnclosure($entry)
> $!entry.getMetaData().get("rss-enclosure")
> 
> For example - 
> http://www.cubicgarden.com/blo
jsom/blog/cubicgarden/media/?flavor=rss2&entries
> =5
> 
> </description>
> http://blip.tv/file/get/Cubicgarden-G
eekAndGeekhagPodcastNumber22007789.mp3
> <guid>
> 
> So following this page
> [http://wiki.blojsom.com/wiki/display/blojsom/RS
S+Enclosure+Plugin] I'm
> attempting to create the enclosure element myself but I
can't seem to
> grab the length and type data. What I'm currently
trying in rss2.vm ...
>         <enclosure
url="$!entry.getMetaData().get("rss-enclosure"
;)"
>
length="$!entry.getMetaData().get(rss-enclosure-object)
.getLength()""
>
type="$!entry.getMetaData().get(rss-enclosure-object).g
etType()"/>
> 
> Does anyone know what could be the problem with the
RSS-Enclosure Macro
> or how to grab the other data bits I need to create my
own?
> 
> Cheers,
> 
> Ian Forrester
> 
> 
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys - and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )