On Fri, Oct 16, 2015 at 1:01 PM, Eduard Moraru <enygma2...@gmail.com> wrote:

> On Thu, Oct 15, 2015 at 5:37 PM, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
> > On Thu, Oct 15, 2015 at 12:34 PM, Silviu Vulcan <
> silviu.vul...@jentla.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I checked the content for the two and indeed I had it off. It seems
> both
> > > had showSpaces="true" among other settings and that was throwing things
> > > off. Thanks a bunch.
> > >
> > > I have one last issue to fix and that is sorting the navigation panel
> (or
> > > the {{documentTree /}} in a page for that matter).
> > >
> > > The pages appear in a random order -> that is even if I create a new
> page
> > > is not the first and not the last just somewhere in the middle.
> > >
> > > The screenshot of documentTree is here:
> > > http://i.imgur.com/sSKMxod.png
> > >
> > >
> >
> > > Is there any way to have them sorted alphabetically ?
> > >
> >
> > The tree nodes are already sorted, at least in version 7.2, see
> >
> >
> https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-7.2/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentTreeMacros.xml
> > (search for "order by"), but they are sorted by the page name not by the
> > page title. The page title (what is visible in the tree) is dynamic (e.g.
> > can contain Velocity code) so it's not possible to sort on it (at the
> > database level). We could sort on the raw (static) title but then the
> order
> > will be wrong for pages that have dynamic titles. If you don't care about
> > these then you could modify XWiki.DocumentTreeMacros, but it may not be
> > that easy (a simple replace of "order by name" with "order by title"
> might
> > not be enough).
> >
>
> Wondering if we could fix this by doing it on the client side (in
> javascript), when the lazy loading finishes and just before displaying the
> loaded nodes. Should not be that hard.
>
>

> WDYT, Marius?
>

You also need to take into account the pagination of the child nodes.


>
> Thanks,
> Eduard
>
>
> > Hope this helps,
> > Marius
> >
> >
> > >
> > > Cheers,
> > > Silviu
> > >
> > >
> > > On 10/08/2015 03:46 PM, Marius Dumitru Florea wrote:
> > >
> > >> On Thu, Oct 8, 2015 at 3:27 PM, Silviu Vulcan <
> silviu.vul...@jentla.com
> > >
> > >> wrote:
> > >>
> > >> Progress !
> > >>>
> > >>> I reverted to the 6.x backup and re-did the upgrade steps. I must
> have
> > >>> did
> > >>> something wrong the last time as now I did get the migration wizard
> > which
> > >>> updated everything without showing errors.
> > >>>
> > >>> But:
> > >>>
> > >>>
> > >>>
> > >> - The navigation still shows double parents. This is improved if I set
> > >>> showChildDocuments="false" for the navigation panel. This way it
> > becomes
> > >>> like in the screenshot (not two parents, but a page in line with the
> > >>> other
> > >>> children) and I can edit the parent page, click hide and now I can
> have
> > >>> one
> > >>> parent and it doesn't show again as a sub-page too.
> > >>>
> > >>>
> > >> Are you referring to the Navigation Panel (the Panels.Navigation
> page)?
> > >> Can
> > >> you edit this page and check if the panel code is this
> > >>
> > >>
> >
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/main/resources/Panels/Navigation.xml#L125
> > >> .
> > >>
> > >>
> > >>
> > >>> - The Document tree is still showing double parents in the tree.
> > >>>
> > >>>
> > >> I suppose you are referring to the tree view/tab from the Page Index.
> > Can
> > >> you edit in wiki edit mode the XWiki.Treeview page and compare the
> > content
> > >> with
> > >>
> > >>
> >
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/Treeview.xml#L42
> > >>
> > >> Can you create a new wiki page and put this inside the content:
> > >>
> > >> {{documentTree /}}
> > >>
> > >> Can you give me a screenshot with the result.
> > >>
> > >>
> > >>
> > >>> - When going to rename clicking the tree icon to choose a new parent
> > >>> still
> > >>> produces a dark overlay that never goes away
> > >>>
> > >>>
> > >> Did you clear the browser cache after the upgrade? You said you're
> using
> > >> the Flamingo skin right? (without customizations)
> > >>
> > >>
> > >>
> > >>> - Last issue: I create a top level page "A Test". Then two pages
> under
> > it
> > >>> named "Subpage" and "subpage 2" (ore.hierarchymode is reference in
> > >>> xwiki.properties) and the result is what shows in the screenshot.
> > >>>
> > >>>
> > >> It depends on how you created the subpages. From the "A Test" page you
> > >> clicked on the + icon and then? What value did you type in the "Title"
> > >> field? Was the "Location" field pointing to the "A Test" page?
> > >>
> > >>
> > >>
> > >>> http://i.imgur.com/bW6pXN8.png
> > >>>
> > >>> This doesn't look right.
> > >>>
> > >>> Cheers,
> > >>> Silviu
> > >>>
> > >>> On 07.10.2015 15:14, Marius Dumitru Florea wrote:
> > >>>
> > >>> On Wed, Oct 7, 2015 at 2:42 PM, Silviu Vulcan <
> > silviu.vul...@jentla.com>
> > >>>> wrote:
> > >>>>
> > >>>> Hi,
> > >>>>
> > >>>>>
> > >>>>> Thank you both for your answers.
> > >>>>>
> > >>>>> To answer the raised questions:
> > >>>>>
> > >>>>> Setting hierarchyMode='parentchild' does not make the double
> parents
> > go
> > >>>>> away.
> > >>>>>
> > >>>>> I did not set hierachMode to parentchild as I wanted to migrate to
> > the
> > >>>>> new
> > >>>>> organization (and I feel this is where I'm going wrong about it)
> but
> > I
> > >>>>> don't know how.
> > >>>>>
> > >>>>> Ok I think I understand where the doubling comes from but I have
> two
> > >>>>> issues: clicking either of the two takes me to the same place and
> > also
> > >>>>> is
> > >>>>> there a way to "merge" the two?
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> The migration wizard did not appear even after going trough the
> steps
> > >>>> in
> > >>>>
> > >>>>> troubleshooting. Can I manually invoke it?
> > >>>>>
> > >>>>>
> > >>>>> Not directly. Are you logged in with a user that has administration
> > >>>> rights?
> > >>>> Do you have a custom skin? Did you overwrite any Velocity templates
> > >>>> (e.g.
> > >>>> view.vm)? Is the version displayed in the page footer "XWiki
> > Enterprise
> > >>>> 7.2"? How exactly did you upgrade the XWiki WAR? What version of
> XWiki
> > >>>> did
> > >>>> you upgrade from?
> > >>>>
> > >>>>
> > >>>>
> > >>>> In the end what is the correct way to move from a wiki with multiple
> > >>>>> spaces and parent-child pages to the new nested organization
> method?
> > >>>>>
> > >>>>> Cheers,
> > >>>>> Silviu
> > >>>>>
> > >>>>>
> > >>>>> On 06.10.2015 18:01, Marius Dumitru Florea wrote:
> > >>>>>
> > >>>>> Hi Silviu,
> > >>>>>
> > >>>>>>
> > >>>>>> On Mon, Oct 5, 2015 at 2:42 PM, Silviu Vulcan <
> > >>>>>> silviu.vul...@jentla.com
> > >>>>>>
> > >>>>>>>
> > >>>>>>> wrote:
> > >>>>>>
> > >>>>>> Hi,
> > >>>>>>
> > >>>>>>>
> > >>>>>>> I am building a xwiki site and recently upgraded to 7.2 (we are
> > >>>>>>> holding
> > >>>>>>> off
> > >>>>>>> launch for the permissions inheritance and nesting features)
> > >>>>>>>
> > >>>>>>> The site was built using spaces as parents for pages and
> > child-parent
> > >>>>>>> relations.
> > >>>>>>>
> > >>>>>>> After upgrade I realized two issues:
> > >>>>>>>
> > >>>>>>> 1. In the document tree the parrents are doubled.
> > >>>>>>> Example at: http://imgur.com/Jj72P17l.png
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Your image suggests that you didn't upgrade the XWiki UI (the
> wiki
> > >>>>>> pages). Did you run the Distribution Wizard (
> > >>>>>>
> > http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard
> > >>>>>> )
> > >>>>>> ? The tree I see in the image is specific to XWiki <7.2, because
> it
> > >>>>>> displays a mix of space-page and parent-child (i.e. you can see
> the
> > >>>>>> pages grouped by space and also the parent-child relationship
> inside
> > >>>>>> each space). The tree looks different in 7.2 (after you upgrade
> the
> > >>>>>> UI).
> > >>>>>>
> > >>>>>> The parents are not doubled. The first "Configuring OpenVPN
> clients"
> > >>>>>> is the space name. The second "Configuring OpenVPN clients" is the
> > >>>>>> rendered title of the space home page (the space home page doesn't
> > >>>>>> have a title in your case and thus it falls back on the space name
> > to
> > >>>>>> avoid showing the technical "WebHome" name; if you edit the space
> > home
> > >>>>>> page and change the title you should see the difference).
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> 2. Trying to edit the parent of a page (Rename->network icon)
> brings
> > >>>>>>>
> > >>>>>> up a
> > >>>>>>
> > >>>>>> list with a dark overlay that never goes away and I cannot click
> > >>>>>>> anywhere.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> See Edy's comment. Also, don't forget to clear the browser cache
> > >>>>>> after
> > >>>>>> doing an upgrade.
> > >>>>>>
> > >>>>>> Hope this helps,
> > >>>>>> Marius
> > >>>>>>
> > >>>>>>
> > >>>>>> Any ideas what am I doing wrong?
> > >>>>>>
> > >>>>>>>
> > >>>>>>> Cheers,
> > >>>>>>> Silviu
> > >>>>>>> _______________________________________________
> > >>>>>>> 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
> > >>>>>>
> > >>>>>> _______________________________________________
> > >>>>>>
> > >>>>>> 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
> > >>>>
> > >>>> _______________________________________________
> > >>>>
> > >>> 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
> > >>
> > >> _______________________________________________
> > > 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
> >
> _______________________________________________
> 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