One of my biggest frustrations with working with UserLand products is the degree that appearence is hard coded into the html and xml output. This morning I spent an hour tracking down why the username appears in the title of a catagory rss feed, but not in the main rss feed for the site.
Finally I found the culprit, radio.weblog.publishCatagoryRSS, and the line:
local (title = user.prefs.name + ": " + adrcat^.displayName, description = "", language = "none")
I can't figure out why the users name is needed in the title. My first thought was to replace the code with a version that doesn't add the user name to the title. But this can get squashed with an update.
I suppose that I could make the change through a callback. But I have never found the callback procedure to be very intuitive. And in this case, it doesn't look like I can use a callback to just change one variable, the callback needs to be a complete replacement for radio.weblog.writeRSSfile.
Update:
The callback method doesn't seem to work. The script radio.weblog.writeRSSfile runs even if you try to use a callback to replace it. The callback is made within a try statement, so the return statement just returns you from the try statement, not the entire writeRSSfile script. So the rest of the code executes with the existing values, and you can't actually change the script's behavior.
I repeat, this is more frustrating than it needs to be.
10:31:32 AM
|