Hi!
________________________________________
From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of Florian Rustedt
[Florian.Rustedt(a)unitedexperts.de]
Sent: 31 May 2012 17:19
To: XWiki Users
Subject: Re: [xwiki-users] xwiki.cfg seems not to be applied?
The effect of xwiki.showviewaction should be visible almost right away.
Note that URLs with the /view/ part in them will still work, and there won't be any
redirection from an URL with /view/ >to an URL without it.
But clicking on wiki links should point to non-/view/ URLs.
I expected after the login to have no "/view" any more in the url but it still
was there?
The other two are pretty much useless... Since getting access to the configured
values is hard, most of the code >doesn't take them into consideration and
"Main" and "WebHome" are hardcoded all over the code.
My advice is to not use those. If your goal is to change the homepage URL, then you should
add a redirect inside the >existing Main.WebHome to your desired page.
>
> I tried that one but didn't receive the expected results. I opened the page
Main.webHome in the WYSIWYG-Editor and went to the coding perspecvive.
> There I entered
"$response.sendRedirect($xwiki.getURL('Space.Page'))", but it showed me
the source directly :)
>
> So:
> WHERE do I add this code snippet on the Main.webHome page?
Right in the body of the page. Please, check what syntax you are using. For XWiki 2.x
syntaxes you must enclose the redirect line/method within Velocity script beginning and
end tags. I received time ago the same advice and it is working fine here. Here the
snippet in one of our homepages:
{{velocity}}
$response.sendRedirect($xwiki.getURL('Main.HomeMV2'))
{{/velocity}
HTH,
Ricardo
> Best regards
> Florian
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos adxuntos ? privada
e confidencial e est? dirixida ?nicamente ? seu destinatario/a. Se vostede non ? o/a
destinatario/a orixinal desta mensaxe, por favor elim?nea. A distribuci?n ou copia desta
mensaxe non est? autorizada.
Nota: La informaci?n contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y est? dirigida ?nicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elim?nelo. La distribuci?n o
copia de este mensaje no est? autorizada.
See more languages:
http://www.sergas.es/aviso_confidencialidad.htm