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.

some of your own formats, such as those having CSS descriptions<br />

from <strong>the</strong> FlexibleSkinStyleSheet (see Chapter 16.1.2).<br />

Unfortunately, it is not possible to display <strong>the</strong> revisions view with<br />

skins that are controlled by TWiki pages in <strong>the</strong> way that you are familiar<br />

from <strong>the</strong> Pattern skin. You can only have all edits displayed<br />

at <strong>the</strong> same time. To do so, simply open <strong>the</strong> Rdiff script with <strong>the</strong> corresponding<br />

page.<br />

Tip: You can integrate <strong>the</strong> revisions view via <strong>the</strong> templates. The<br />

templates for this display are located in <strong>the</strong> template folder, and are<br />

called view.[skinname].tmpl. The variable %REVISIONS% is available<br />

in <strong>the</strong>se files, which displays <strong>the</strong> revisions view.<br />

You can generate a list of backlinks with <strong>the</strong> aid of <strong>the</strong> built-in<br />

search function (for more detail, see Chapter 13). To do so, use <strong>the</strong><br />

following command:<br />

[[%SCRIPTURL%/search%SCRIPTSUFFIX%/ ↵<br />

%INCLUDINGWEB%/SearchResult ↵<br />

?scope=text ↵<br />

&amp;regex=on ↵<br />

&amp;search=%SPACEDTOPIC%%5B%5EA-Za-z%5D] ↵<br />

[Backlinks]]<br />

Do not be distracted by <strong>the</strong> many cryptic characters. Those are circumscriptions<br />

for <strong>the</strong> special characters & (&amp;), [ (%5B),<br />

^ (%5E) and ] (%5D), that would o<strong>the</strong>rwise disturb processing of <strong>the</strong><br />

wiki page. Principally, this command searches for all pages on<br />

which <strong>the</strong> page name occurs in square brackets, thus as a link. Those<br />

are <strong>the</strong> backlinks.<br />

The function for attaching files is activated via a separate script.<br />

You only need to open <strong>the</strong> page using attach instead of view,<br />

and <strong>the</strong> upload dialogue will start.<br />

To integrate extended functions (renaming, deleting, etc.), you<br />

need to access <strong>the</strong> Oops script. It actually produces <strong>the</strong> TWiki messages<br />

(including error messages). Since a wide variety of messages<br />

must be issued, it is invoked with its own templates that contain <strong>the</strong><br />

corresponding message. This concept is also used for displaying extended<br />

functions:<br />

[[%SCRIPTURL%/oops%SCRIPTSUFFIX%/ ↵<br />

%INCLUDINGWEB%/%INCLUDINGTOPIC% ↵<br />

?template=oopsmore] ↵<br />

[extended functions]]<br />

Revisions<br />

Backlinks<br />

Attachments<br />

Extended<br />

functions<br />

16.1 Designing <strong>the</strong> Look �<br />

�<br />

�<br />

237

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

Saved successfully!

Ooh no, something went wrong!