Loading ...
Sorry, an error occurred while loading the content.

Re: macros in weblog posts

Expand Messages
  • mikel_maron
    Looks like pta wouldn t be defined at all, when constructing the RSS file. Which is why I was finding macros being passed through w/o processing earlier,
    Message 1 of 5 , Nov 14, 2002
    • 0 Attachment
      Looks like pta wouldn't be defined at all, when constructing the RSS
      file. Which is why I was finding macros being passed through w/o
      processing earlier, html.processmacros was erroring on
      html.getPageTableAddress.

      In the macro, using

      try {
      pta = html.getPageTableAddress();
      flRss = false;
      } else {
      flRss = true;
      }

      works fine.


      --- In radio-dev@y..., Jake Savin <jake@u...> wrote:
      > I believe that pta^.radioResponder will be undefined when processing
      > macros while generating an RSS file, so this should work:
      >
      > local (pta = html.getPageTableAddress ());
      > local (flRss = (not defined (pta^.radioResponder) );
      > . . .
      >
      > I haven't tried this myself, but looking at the macro processing code
      > in radio.weblog.writeRssFile, it looks like the above will work.
      >
      > -Jake
      >
      > On Wednesday, November 13, 2002, at 05:40 PM, Dave Winer wrote:
      >
      > > I'd be interested if anyone knows a way to do this. It would be easy
      > > enough
      > > to define some value when the macro is being rendered in the
      > > production of a
      > > RSS file. What's the application for this?? Dave
      > >
      > >
      > > ----- Original Message -----
      > > From: "mikel_maron" <mikel_maron@y...>
      > > To: <radio-dev@y...>
      > > Sent: Wednesday, November 13, 2002 2:55 PM
      > > Subject: [radio-dev] macros in weblog posts
      > >
      > >
      > >> Hi
      > >>
      > >> Is it possible for a macro to determine where it's being rendered?
      > >>
      > >> I want to develop a macro which would return a different result when
      > >> being rendered within an rss file versus an html file.
      > >>
      > >> Is there a reliable way to deduce the context of macro call?
      > >>
      > >> Thanks
      > >> Mikel
      > >>
      > >>
      > >>
      > >> To unsubscribe from this group, send an email to:
      > >> radio-dev-unsubscribe@y...
      > >>
      > >>
      > >>
      > >> Your use of Yahoo! Groups is subject to
      > >> http://docs.yahoo.com/info/terms/
      > >>
      > >>
      > >
      > >
      > > ------------------------ Yahoo! Groups Sponsor
      > > ---------------------~-->
      > > Share the magic of Harry Potter with Yahoo! Messenger
      > > http://us.click.yahoo.com/4Q_cgB/JmBFAA/46VHAA/nhFolB/TM
      > > ---------------------------------------------------------------------
      > > ~->
      > >
      > > To unsubscribe from this group, send an email to:
      > > radio-dev-unsubscribe@y...
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      > > http://docs.yahoo.com/info/terms/
      > >
      > >
    Your message has been successfully submitted and would be delivered to recipients shortly.