Jump to content

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]

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.