a smart way to looze the tags?
  • hello

    does anybody know a smart way how to process items under campsite before printing them? i'd like to process article's lead and title, and modify certain tags within them, and then print them out. (without installing php wrapper). i can't get rid of the feeling that there's gotta be an easy way to do it and that i am just somehow missing it.

    why do i need that? the
    tag chokes the xml parser and consequently messes up the rss feed.
    would be better. Surprised)
    there is a way around this problem, but it's not elegant. i can use the .tpl to print out the content in a custom format, then use perl or php to parse the content from this .tpl, modify the problematic tags, and print out the xml/rss through this php/perl script.

    all sugestions are welcome. tnx.
    marko
  • 2 Comments sorted by
  • > does anybody know a smart way how to process items under campsite before
    > printing them? i'd like to process article's lead and title, and modify
    > certain tags within them, and then print them out. (without installing php
    > wrapper). i can't get rid of the feeling that there's gotta be an easy way
    > to do it and that i am just somehow missing it.
    There is no way to do that unless you modify the template engine (parser) -
    which is written in C++. So I guess it's not an easy way...

    > there is a way around this problem, but it's not elegant. i can use the
    > .tpl to print out the content in a custom format, then use perl or php to
    > parse the content from this .tpl, modify the problematic tags, and print
    > out the xml/rss through this php/perl script.
    You can generate a static XML file in this way; this file can be updated every
    10 mintes for example so all your articles will get in the RSS with a delay of
    at most 10 minutes. Make a cron job that does the process you described above
    and write the output into this static XML file. I did this before and it worked
    ok.

    Mugur


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • > generate a static XML file

    tnx for the reply. that was my plan B.

    marko