It's only a state variable that is used by the template. But this
variable is set when running as JSR168.
It's not set when running in an IFRAME. It's not easy for XWiki to know
it's running in an iframe.
One solution is to run it using a specific skin.
For this you can:
1/ create skin called 'portalskin' in the skins directory or as a skin
in your wiki. Make your skin not put headers, footers or anything you
don't want to appear.
2/ make the skin persistent by calling
$context.setLinksQueryString("skin=portalskin") in a modified
xwikivars.vm (so this is used by all templates)
3/ using the ?skin=portalskin parameter when you embed it in an iframe
Alternatively if you only use XWiki inside your portal, then you can set
the skin as the default for your wiki. In this case you won't have the
normal skin when running out of the portal.
Ludovic
Juergen Lorenz Simon a écrit :
> On 07.01.2009, at 14:38, Ludovic Dubost wrote:
>
>
>> You will probable need to change the skin for that.
>>
>> Which portal are you trying to embed in ? Is this a JSR 168 Portal ?
>>
>> Because we have a portal mode (which probably needs additional
>> adjustments) which allows the template to acccess a variable
>> ($context.getMode()) to know if you are in portal mode or web mode.
>> This
>> can allow you to make changes that leave the normal web mode
>> untouched.
>>
>
> The portal is of our own making. It's basically a WebObjects web
> application.
> XWiki is embedded in an iframe. This portal mode, is it only a state
> variable
> for the template, or does it offer anything else?
>
> Jürgen
>
>
>> Ludovic
>>
>> Juergen Lorenz Simon a écrit :
>>
>>> Hi,
>>>
>>> I'm
>>> trying to embed the Wiki in a portal application. When editing a Wiki
>>> page, the
>>> Wiki takes over the browser window, which is not wanted. is there
>>> some
>>> option
>>> to turn off fullscreen editing in the normal Wiki editor? Or do I
>>> need
>>> to change
>>> the skin for that?
>>>
>>> Thanks,
>>> J.L.Simon
>>> _______________________________________________
>>> devs mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>>
>>>
>> --
>> Ludovic Dubost
>> Blog: http://blog.ludovic.org/
>> XWiki: http://www.xwiki.com
>> Skype: ldubost GTalk: ldubost
>>
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>>
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs