Changing the visibility/scope of the Menu Macro from "global" to "current
wiki" (using the object editor) should also fix the issue. See
http://jira.xwiki.org/browse/XWIKI-13295 .

Hope this helps,
Marius


On Fri, Jul 22, 2016 at 2:51 PM, Jaume Giribert Peraire <
jaume.girib...@gmail.com> wrote:

> Just responding my own question. I finally edited the Menu->MenuMacro page
> for every subwiki/Template and change this line:
>
> #set ($discard = $xwiki.ssx.use("$xcontext.macro.doc.prefixedFullName",
> {'colorTheme': $colorTheme}))
>
> With this one:
>
> #set ($discard = $xwiki.ssx.use("$xcontext.macro.doc.prefixedFullName",
> {'colorTheme':
> "${xcontext.database}:$!xwiki.getUserPreference('colorTheme')"}))
>
> Now everything works as expected.
>
> I found out this was changed in XWIKI-9672 but in my case it breaks
> subwikis menu display.
>
> Hope it helps!
>
> 2016-07-21 19:49 GMT+02:00 Jaume Giribert Peraire <
> jaume.girib...@gmail.com>
> :
>
> > Hi,
> >
> > Sorry if this topic has been already exposed but I was unable to find any
> > reference in any past emails.
> >
> > We have a 7.4 xwiki installation with multiple subwikis and we want to
> > install Menu Application for every wiki. I just launched a farm
> > installation from Principal wiki and everything seems to work fine but we
> > have found an strange issue.
> >
> > If user has permissions in the last subwiki where Menu Application has
> > been installed he's able to see menu with styling. However, if another
> user
> > has only permission to an specific wiki (i.e. local user) he can see the
> > menu but no styling is applied.
> >
> > After some browser debugging we have found that Menu Application is
> making
> > this call for EVERY subwiki.
> >
> >
> >
> <DOMAIN>/xwiki/wiki/<SUBWIKI>/ssx/Menu/MenuMacro?language=en&colorTheme=xwiki%3AFlamingoThemes.Charcoal
> >
> > The SUBWIKI param is always the same and matches the last subwiki where
> > Menu Application has been installed.
> >
> > Is there any way to make this call like this:
> >
> >
> >
> <DOMAIN>/xwiki/wiki/<CURRENT_SUBWIKI>/ssx/Menu/MenuMacro?language=en&colorTheme=xwiki%3AFlamingoThemes.Charcoal
> >
> > Thanks in advance!
> >
> >
> >
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to