Hi, i got my code working now, its a mix of WikiMacroBase expand_macro and IRequestFilter. So now i can use a macro to add some stuff in the comment and on commit it will resolve the macro and plug it into the comment so the macro is removed with informations that need to be persistent.
I know it sounds strange but the idea behind it is to add stuff like date and authenticated user in the comment with the expand macro in the preview and later replace the macro code wit the string that is shown in the preview to make it persistent. if i would leave the macro it would always take the actual date and the user that is logged in and that defeats the purpose here. Cheers Markus Am Mo., 8. Mai 2023 um 14:13 Uhr schrieb RjOllos <[email protected]>: > > > On Thursday, April 27, 2023 at 2:31:29 PM UTC+2 [email protected] wrote: > > thanks for the advice i will check it out! > > cheers > > Markus > > > Also, the following documentation is helpful: > > > https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator > > https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.web.api.IRequestFilter > > -- > You received this message because you are subscribed to the Google Groups > "Trac Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/trac-users/0f31a06d-0d6f-459f-bb02-28ce830b0666n%40googlegroups.com > <https://groups.google.com/d/msgid/trac-users/0f31a06d-0d6f-459f-bb02-28ce830b0666n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAJ4osOn46n%2BrCwTi_ZzZx3aALgZM2vDkSCq%3D0NwKF4_QT%3DEsOQ%40mail.gmail.com.
