[wikka-community] Page forward (was Site forward)
Dario Taraborelli
dartar
Fri Feb 1 11:38:43 GMT 2008
Patric,
you may also want to check out this code: http://wikkawiki.org/RedirectingPages
A redirect action avoiding circular reference would be a nice addition
to Wikka, there's a very old request for this in the tracker: http://wush.net/trac/wikka/ticket/18
Dario
On 1 Feb 2008, at 11:17, mahefa randimbisoa wrote:
> First, I'll notice the difference between a site and a page.
> I think you mean a page here, in other words we stay on the same
> wiki site.
>
> Create a file redirect.php in actions/ folder and add put in it the
> following code:
> <?php
> @ob_end_clean();
> header('Location: '.$this->Href('', $page));
> die();
> ?>
>
> Now, use just the following code inside the page bestofbeer:
>
> {{redirect page="beer"}}
>
> (Note and disclaimer) This is a little plugin I wrote in 60 seconds.
> It can answer what you ask for, but it will be more convenient to add
> some checks (is the page parameter of the action given, avoid infinite
> loop, ...)
>
> 2008/2/1, Patric Hag <phag at phag.de>:
>> Hi,
>> sorry for my bad english!
>>
>> i search a action "forward a site" direct to a other site!
>>
>> Example:
>> User put into site the command [[bestofbeer]].
>>
>> admin write into site:bestofbeer {{action Forward="beer"}}
>>
>> Now the user get not to site:bestofbeer, he forword direct to site:
>> beer!
>>
>> I found not this command/action. Can you heltp me?
>>
>> Thank
>> Patric
>>
More information about the community
mailing list