diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2011-01-27 15:17:39 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2011-01-27 15:17:39 +0100 |
commit | 06756ad2b150ae2ce564043d0e7f02de5fa22b59 (patch) | |
tree | 7ed26a6713c68b42f31990d1759d01359dc4de1f /lib/scripts | |
parent | 3c896238111421b5906a3155de5736d62d830221 (diff) | |
download | rpg-06756ad2b150ae2ce564043d0e7f02de5fa22b59.tar.gz rpg-06756ad2b150ae2ce564043d0e7f02de5fa22b59.tar.bz2 |
allow placeholders in search intro text
This patch allows to use the placeholders in the search intro message that
will be replaced with the search term.
@SEARCH@ will be replaced with the search query
@QUERY@ will be replaced with the URL encoded search query for use in URL
parameters
Please note that the replacement is don't on the XHTML *after* parsing and
rendering the intro wiki text. This means you can not use the query where
an ID would be expected.
Examples:
This will work:
[[http://www.google.com/search?q=@QUERY@|Google for @SEARCH@]].
This will not work and will link to the page "search" instead:
[[@SEARCH@|Your page]].
You could use this instead:
[[this>doku.php?id=@QUERY@|Your page]].
Diffstat (limited to 'lib/scripts')
0 files changed, 0 insertions, 0 deletions