01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

tion form at check-in. He or she <strong>the</strong>n returns to <strong>the</strong> InternalAdministration<br />

page.<br />

If a visitor has already registered, he has to be found in TWiki.<br />

To do this, a formula with a search function is generated that already<br />

contains a couple of parameters that you o<strong>the</strong>rwise would<br />

have to generate from scratch in a normal search, such as <strong>the</strong> setting<br />

of <strong>the</strong> scope parameter, which affects a search of <strong>the</strong> page title as<br />

well as within <strong>the</strong> page itself.<br />

The form, with a text box for entering <strong>the</strong> search item and <strong>the</strong><br />

subsequent search function, looks like this:<br />

<br />

<br />

<br />

<br />

%SEARCH{search="%URLPARAM{"query"}%" ↵<br />

scope="both" ↵<br />

type="keyword" ↵<br />

noheader="on" ↵<br />

web="RegistrationWeb" ↵<br />

nosearch="on" ↵<br />

excludetopic="%TOPIC%, ↵<br />

ParticipantList" ↵<br />

}%<br />

If, during check-in, Mr. Stonecake's name is entered in <strong>the</strong> search, a<br />

link to his user page should appear.<br />

The next section of <strong>the</strong> page leads to <strong>the</strong> receipt that is to be<br />

printed out for every participant. Of course, you can simply generate<br />

a link to this spot. However, <strong>the</strong> receipt should already be filled out<br />

with <strong>the</strong> individual details of <strong>the</strong> participant, including name, address<br />

and fee paid, which is why <strong>the</strong> link must already include <strong>the</strong><br />

identity of <strong>the</strong> participant, so to speak, using <strong>the</strong><br />

%URLPARAM{"query"}% variables. Technically, this is done using<br />

ano<strong>the</strong>r form with a text box in which <strong>the</strong> TWiki name of <strong>the</strong><br />

visitor should be entered:<br />

21.2 The InternalAdministration Page<br />

Search form<br />

Receipt<br />

�<br />

�<br />

�<br />

321

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!