r2 - 14 Oct 2014 - 10:01 - MatthiasGeorgi | r1 - 14 Oct 2014 - 09:56 - UnknownUser | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Redirect Plugin |
Redirect Plugin |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Create a redirect to another topic or website |
Create a redirect to another topic or website |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I typically use this to make easy-to-type shortforms/acronyms of topic names. For example: |
I typically use this to make easy-to-type shortforms/acronyms of topic names. For example: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax Rules |
Syntax Rules |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Prevent redirecting |
Prevent redirecting |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
To view the topic that contains a |
To view the topic that contains a |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
http://nkwiki.de/Main/WebHome?noredirect=on |
http://nkwiki.de/Main/WebHome?noredirect=on |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Wikipedia like "Redirected from..." |
Wikipedia like "Redirected from..." |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A redirect now appends the |
A redirect now appends the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Below is an example you can put in your template: |
Below is an example you can put in your template: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
%IF{ "$'URLPARAM{redirectedfrom}'" then="(Redirected from %URLPARAM{redirectedfrom}%)"}%
|
%IF{ "$'URLPARAM{redirectedfrom}'" then="(Redirected from %URLPARAM{redirectedfrom}%)"}%
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Which will display the following on topics that have been redirected: |
Which will display the following on topics that have been redirected: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(Redirected from Web.Topic) |
(Redirected from Web.Topic) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Don't check that the target topic exists |
Don't check that the target topic exists |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If you pass the dontcheck=1 parameter then Foswiki will let you redirect to a topic that doesn't exist. This is very useful as a way to wrap up data form creators for applications. |
If you pass the dontcheck=1 parameter then Foswiki will let you redirect to a topic that doesn't exist. This is very useful as a way to wrap up data form creators for applications. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
e.g. RoleCreator: |
e.g. RoleCreator: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
%REDIRECT{newtopic="%SCRIPTURLPATH{"edit"}%/%BASEWEB%/UnnamedRoleAUTOINC1?topicparent=RoleList;templatetopic=RoleTemplate;t=%SERVERTIME{"$day$hour$min$sec"}%" dontCheck="1"}% |
%REDIRECT{newtopic="%SCRIPTURLPATH{"edit"}%/%BASEWEB%/UnnamedRoleAUTOINC1?topicparent=RoleList;templatetopic=RoleTemplate;t=%SERVERTIME{"$day$hour$min$sec"}%" dontCheck="1"}% |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Now, for instance in WebLeftBar? you can just use: |
Now, for instance in WebLeftBar? you can just use: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* [[RoleCreator][Create Role]] |
* [[RoleCreator][Create Role]] |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test topics |
Test topics |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If installed: |
If installed: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Installation Instructions |
Installation Instructions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server. |
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install". |
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install". |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If you have any problems, or if the extension isn't available in |
If you have any problems, or if the extension isn't available in |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin Files |
Plugin Files |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin Info |
Plugin Info |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
r2 - 14 Oct 2014 - 10:01 - MatthiasGeorgi | r1 - 14 Oct 2014 - 09:56 - UnknownUser | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||