[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [syndication] How the newsreader see the domain attribute of the category element



>fwiw, I just had a quick look and Movable Type uses
><dc:subject>Blogging</dc:subject>
>but this doesn't appear to be rendered at all in Amphetadesk.

To render it in AmphetaDesk, open
templates/default/index.html, look for:

    # each of the channel items.
   foreach my $item (@{$data->{item}}) {

and add, in this block, something like:

   to_browser(qq{

      <br>Subject: $item->{"dc:subject"}

   }) if $item->{"dc:subject"};

The same holds true of any data in any RSS file (whether it's defined in
any spec, module, or whatever - as long as the RSS feed is valid XML, it's
parsed into a tree for use). Whitespace in the above example is for ease of
reading only - you'll see in the code that I put that all on one line.

-- 
Morbus Iff ( i'd swear in japanese, but your email doesn't support UTF-8 )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
Tech: http://www.oreillynet.com/pub/au/779 - articles and weblog
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus