Question
Is there a way to customize the notification format?
- TWiki version:20011201
- Web server:Apache
- Server OS:Linux
- Web browser: MIE
- Client OS: Win98
--
AntonioVega - 29 Jul 2002
Answer
.Yes, but it is not (AFAIK) a user-accessible method. If you dig through the code, you can find the module where the notification is created and modify it there. (I've been through the code enough to have found it once, but I can't immediately tell you where to find it -- hopefully somebody who knows more will jump in and give you a better lead.)
--
RandyKramer - 30 Jul 2002
Thank you Randy, I was trying to find out if that can be done without changing the code. Can this be done?. If someone confirms this feature is not supported I should take look at the code -or place a request on
CoDev
-. (I wish I could understand Perl better. I guess I should try harder.)
FYI I extract the last coment of all pages of a Web in a LastComment page and I found it very useful on keeping track of issues without the need to go to every page. Email notification of this type of reporting (or ay other for that matter), will be very useful for some of us.
-- AntonioVega - 30 Jul 2002
Oops: pasting in a comment I made yesterday, previewed, but didn't save. And note: Antonio's original question is still open -- can a change in the notification form be done without changing the code (or, is it almost a trivial change to the code)?
Re the FYI -- yes, indeed, that does sound useful. A potential enhancement would be to extract the diff for the last set of changes (or all the diffs since the last WebNotify, if more than one). (Just dreaming
)
-- RandyKramer - 31 Jul 2002
Wow, how do you extract the last comment of a page? I was asked to email the changed lines, so I've been trying to work out how to use rcsdiff <lastrev> <secondlastrev> without knowing those numbers... and getting nowhere.
-- SueBlake - 01 Aug 2002
The last comment can be extracted (not always the last modification), because each contribution must follows an agreed specific format, then the search variable can extract it.(In our case, for historical reasons, comments stack on the previous comment rather than trailing, so the last comment is always on top, we then extract a single paragraph, that is almost always enough for our purposes. Some other conventions – for example: The last comment to be in the last paragraph- might do the trick as well. As you may see, this functionality depends very much on the user. If anybody fails to follow the format, it wont work, but anyone can always take a look at the page and modify it accordingly. Another approach would be a plugin or to implement a new %diff(...)% variable. Regardless of the method used for extraction, the question of Customizing Notifications -without changing the code- seems to be not implemented yet.
-- AntonioVega - 01 Aug 2002