Hi, I have several term that should point to the same Wiki page. How to do this? 1) create redirect page 2) add synonyms to the main page? How to do one thing or another?
$response.sendRedirect("http://www.w3.org") $response.sendRedirect($doc.getURL('edit')) $response.sendRedirect($doc.getURL('view', 'xpage=wml')) $response.sendRedirect($xwiki.getURL('Some.Document')) $response.sendRedirect($xwiki.getURL('Some.Document', 'edit')) $response.sendRedirect($xwiki.getURL('Some.Document', 'view', 'xpage=rdf')) On 4/7/07, Zeljko Trogrlic <[email protected]> wrote:
Zeljko Trogrlic wrote:
Hi,
I have several term that should point to the same Wiki page. How to do this? 1) create redirect page 2) add synonyms to the main page?
How to do one thing or another?
Anybody has example for $response.redirect? Please?
Sergiu Dumitriu -- http://purl.org/net/sergiu
If those terms are apache hosts you have sufficient rights, you might want to consider redirecting to that wiki in your apache config: http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect
FYI, Guillaume has put this in the doc as a code snippet: http://www.xwiki.org/xwiki/bin/view/Code/PageRedirect Thanks -Vincent PS: I think we should move it to the developer's guide somewhere. On Apr 7, 2007, at 7:39 PM, Sergiu Dumitriu wrote:
$response.sendRedirect("http://www.w3.org") $response.sendRedirect($doc.getURL('edit')) $response.sendRedirect($doc.getURL('view', 'xpage=wml')) $response.sendRedirect($xwiki.getURL(' Some.Document')) $response.sendRedirect($xwiki.getURL('Some.Document', 'edit')) $response.sendRedirect($xwiki.getURL('Some.Document', 'view', 'xpage=rdf'))
On 4/7/07, Zeljko Trogrlic <[email protected]> wrote: Zeljko Trogrlic wrote:
Hi,
I have several term that should point to the same Wiki page. How to do this? 1) create redirect page 2) add synonyms to the main page?
How to do one thing or another?
Anybody has example for $response.redirect? Please?
Sergiu Dumitriu -- http://purl.org/net/sergiu
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Vincent Massol wrote:
FYI, Guillaume has put this in the doc as a code snippet: http://www.xwiki.org/xwiki/bin/view/Code/PageRedirect
Thanks to all of you! What's going on with the FAQ? It seems like the most obvious place for such tips & tricks.
On Apr 8, 2007, at 10:07 PM, Zeljko Trogrlic wrote:
Vincent Massol wrote:
FYI, Guillaume has put this in the doc as a code snippet: http://www.xwiki.org/xwiki/bin/view/Code/PageRedirect
Thanks to all of you! What's going on with the FAQ? It seems like the most obvious place for such tips & tricks.
FAQ is fine too if someone wants to create an entry but we shouldn't have any duplication, meaning the FAQ entry should point to that page. As I mentioned on another page, I think the explanation about redirect should rather be located in the dev guide rather than in a code snippet. Some ideas for the developer's guide: http://www.nabble.com/Developer%27s-Guide-improvements-ideas- tf3455737.html#a9641218 If anyone is interested in participating, let us know. Thanks -Vincent
Additional question came to my mind: how to link/redirect to main page of the space? I think you can't put just SpaceName. without page after it.
On Apr 8, 2007, at 10:09 PM, Zeljko Trogrlic wrote:
Additional question came to my mind: how to link/redirect to main page of the space? I think you can't put just SpaceName. without page after it.
The home page of a space is named: Space.WebHome -Vincent
participants (4)
-
Martijn Ras -
Sergiu Dumitriu -
Vincent Massol -
Zeljko Trogrlic