Jump to content

Can someone help me with this template file?


rabbitwashington

Recommended Posts

Hello, I have have recently started working as a programmer in America after moving here from Tokyo this year. However, my first assignment was an important duty of creating a wiki :D, of which I am very excited abouti. I have a problem with a template file I was creating for a TWiki. which is meant to send out automated emails when pages are changed :confused:.  For two months I have been confused by these two lines of code that are supposed to find changes, and output them into the email. I finally have decided to ask the skillful programmers  8) on internet forums for their advice because I am out of ideas!  :shrug:

 

 

Here is my best line of code!

<a href="%SCRIPTURL{"compare"}%/%WEB%/%TOPICNAME%">%IF{"%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="%TOPICNAME%"}%" then="%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="<b>$pattern(^\-\-\-\+*?\s([^\n\r]*).*)</b>"}%" else="<b>%TOPICNAME%</b>"}%</a>

 

Here is a not so good one, that I tried:

format="$percntCALC{$SET(title, $pattern(^\-\-\-\+*?\s([^\n\r]*).*))$IF($EXACT(, $TRANSLATE($GET(title), $comma, ;), %TOPICNAME%, $GET(title))}$percnt"

 

 

 

 

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.