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.

Registration<br />

confirmation<br />

316<br />

��<br />

��<br />

��<br />

The template for <strong>the</strong> login message cited above is called oopsaccessview.tmpl.<br />

Here, you can set a link to <strong>the</strong> registration form for<br />

users not yet registered. Just add <strong>the</strong> link after <strong>the</strong> following line:<br />

You are not yet authorized to view this page:<br />

%WEB%.%TOPIC%.<br />

Please register at: Registration-<br />

Web.RegistrationForm<br />

If all entries have been made correctly, a confirmation page will be<br />

opened and an email sent to <strong>the</strong> user. The confirmation page is based<br />

on <strong>the</strong> template oopsregthanks.tmpl, which you could reformulate as<br />

follows:<br />

%TMPL:INCLUDE{"TWiki"}%<br />

%TMPL:DEF{"titleaction"}%(note) %TMPL:END%<br />

%TMPL:DEF{"webaction"}% *Confirmation*<br />

%TMPL:END%<br />

%TMPL:DEF{"heading"}%Thank you for registering!%TMPL:END%<br />

%TMPL:DEF{"message"}%<br />

···* You can view and edit your information<br />

on your personal TWiki page %TOPIC%.<br />

···* A confirmation email has been sent to<br />

%PARAM1%.<br />

%TMPL:END%<br />

%TMPL:DEF{"topicaction"}%<br />

[[%WEB%.%TOPIC%][OK]] %TMPL:END%<br />

%TMPL:P{"oops"}%<br />

Mr. Stonecake has registered for <strong>the</strong> conference. Upon successful<br />

registration, <strong>the</strong> following page will be displayed:<br />

20 Preparing for Your Event

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

Saved successfully!

Ooh no, something went wrong!