Submitted by : finrod at: 2006-04-10T18:44:42+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

In 0.52 the breadcrumbing (the stuff that shows your ocation in the wiki) has changed from a small trail at the top of the content pane to a large and cumbersome nested list that consumes a large amount of screen space. For wiki with deep nested pages, the crumbing forces the content down the page too much. Is there a way to return to the previous layout?

I attached a screen shot to show what I mean. The nesting used to take place across two or three small lines at the top - now it takes almost 40% of the screen space.

fin

shot.gif

0.51 test --finrod, Mon, 10 Apr 2006 19:17:55 -0700 reply

I tried to apply 0.51's wikipage.pt and I get errors from that. What I did was to copy the wikipage.pt file on top of the one in zwiki_standard, plus I also copied all the 0.51 templates from zwiki_plone over into the 0.52 folder. What I got was errors:

Module Products.PageTemplates.Expressions, line 286, in restrictedTraverse
  • __traceback_info__: {'path': ['ratingform']?, 'TraversalRequestNameStack?': []}

Module Products.Five.traversable, line 107, in __bobo_traverse__

AttributeError?: ratingform

Now I'm not sure this is really a good test since I had to do this on my 2.5 beta of plone...and I can see in the error stacka reference to Five...and this has changed alot in 2.5 so I'll try this again tomorrow on 2.1.2

fin

ah --simon, Mon, 10 Apr 2006 22:01:25 -0700 reply

I see what you mean, that is quite deep. At least it's still neat-looking. I've stuck with this layout in the standard skin because I think it makes the wiki's outliner nature more evident, and that outweighs the occasional space inefficiency. Anyway, how do we get the old layout back ? What if you replace just that second td's contents with the old code:

<small class="visualNoPrint"
       tal:condition="python:1 #flat list of ancestors">
  <tal:ancestors condition="here/ancestorsAsList"
                 repeat="ancestor here/ancestorsAsList">
    <span tal:replace="structure python:here.wikilink('['+ancestor+']')"></span>
    >>
  </tal:ancestors>
</small>

ah --simon, Mon, 10 Apr 2006 22:07:07 -0700 reply

How does it show so many parents but only one wiki page in the navigation tree, I wonder.

ah --EmmaLaurijssens, Mon, 10 Apr 2006 22:20:16 -0700 reply

That's standard Plone 2.1.x behaviour. Previously, only folders showed up in the navigation tree, and now, if you turn everything off that's on by default (did they learn something bad from Microsoft?) you see folders plus the current document. If you leave everything on, all kinds of documents show up in your navigation tree. Not pretty.

ah --EmmaLaurijssens, Mon, 10 Apr 2006 22:36:47 -0700 reply

The old code also had something showing the page name, didn't it? So, add:

<h1 tal:content="here/formattedPageName" >page name</h1>

as well.

ah --simon, Mon, 10 Apr 2006 22:59:30 -0700 reply

Thanks. Another reason I like the indented version is that it's visually different from Plone's you are here, which helps indicate that they are describing different kinds of structure. Anyway, I have checked in an updated version of pageheader.pt, which you can get by pulling from or browsing the CodeRepos, which includes both alternatives. Customize it and change the COMPACT_PARENTS setting to get a layout more like the old one.

ah --Frank Laurijssens, Tue, 11 Apr 2006 00:14:16 -0700 reply

You've got a point there.

What I (visually) like about the compact version is that it uses wikilinks. I have a couple of pages that are children of issues, and it's quite neat to see the issue's status colour. But that's a minor detail, though.

BTW, that reminds me of #1043.

many thanks! --finrod, Wed, 12 Apr 2006 03:37:19 -0700 reply

Simon,

Thanks for responding so fast! I've grabbed the code from the darcs repo and will drop it in today and let you know the result. The nav tree on the side is a little goofy now in plone and you really need to have it turned off for wiki pages or it shows them all in the view. Kind of messy. I'm assuming that its still the case that all your wiki pages need to be in the same folder for the wiki linking to work right?

I agree on the differentiation between the wiki structure and the plone crumbs..that is a little confusing. We have quite a few wiki pages so our structure can get quite deep.

I'll post an update with the results of dropping the code in.

fin

Test Results --finrod, Wed, 12 Apr 2006 03:53:12 -0700 reply

I've tested the results with both plone 2.5/zope 2.9 and 2.1.2/zope 2.7.8 and it works great. If I make any tweaks I'll post them.

fin

many thanks! --Simon Michael, Wed, 12 Apr 2006 05:29:00 -0700 reply

Thanks for the update finrod, > The nav tree on the side is a little goofy now in plone and you really need to have it turned off for wiki pages or it shows them all in the view. Kind of messy. > Yes, I had the same issue at http://plone.demo.zwiki.org . Yet sometimes (in your screenshot) it shows only the current page. I guess this is based on a navtree setting (and zwiki page workflow state).

> I'm assuming that its still the case that all your wiki pages need to be in the same folder for the wiki linking to work right? > Yes, that's still true, the folder defines the wiki's boundaries.

... --simon, Wed, 12 Apr 2006 06:32:16 -0700 reply

Name: '#1250 Breadcrumb Change in 0.52' => '#1250 missing compact parents listing in 0.52 plone skin ' Status: open => closed