Re: styling the subnavigation tree

Chad Whitacre <[email protected]>
Newsgroups gmane.comp.web.zope.plone.design,gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Andrew,

For the record, I am replying from the design list. ;) Come join the 
party, plone-users!

You are right that portlet_navigation is heinous, and among its crimes 
is indeed the mixing of content and presentation. I have styled it more 
or less successfully with CSS (on, e.g., www.crossroadsdg.com), and now 
that I think of it, you could even hide the images in CSS as well 
(although I haven't done that yet).

As for your questions ...

 > 1) So, my first question would be ... what's the best guess time frame
 > for when this portlet is updated to be more Plone 2.0/CSS friendly?
 > Final release of v2.0?

When you and I get pissed enough to re-write it. ;)  Prolly not 2.0 
final unless we hurry!


 > 2) In the meantime, would others recommend customizing the portlet
 > script by stripping out the img, styling, and spacing and then
 > replacing it with a nice CSS defined style/div?

At that point you're approaching the solution to #1, although I think 
you want it to be a list.


 > 3) And finally, will this approach upgrade gracefully?

If you submit your changes and they *become* the upgrade, then yes. ;) 
Otherwise, I would guess it depends on how much configuration you do in 
portal_properties/navigation_tree_properties and whether that system 
survives the upgrade (unlikely? dunno.).



hth,
chad





Andrew Burkhalter wrote:
> [*I understand that this type of message is supposed to eventually
> migrate over to plone-designs, but am sending to both right now as the
> plone-users is quite a bit more active*]
> 
> 
> I'm looking for advice about an elegant/flexible way to style the
> sub-navigation tree.  The tree is rendered from the file
> "/portal_skins/plone_portlets/portlet_navigation".  Within the script,
> several visual elements are locally controlled including: 
> 
> 	* folder icons (should be background-image in stylesheet)
> 	* link style is totally local (i.e. <a href="" style="padding-
> left:0.5em;display:block">)
> 	* spacing (i.e. &nbsp; should be padding)
> 
> This strategy seems to fly in the face of all the good work Plone has
> done controlling design elements using CSS, which might explain the
> following comment a top the file:
> 
> 	<!-- This code is *really* messed up, and will be replaced in
> the next 	version of Plone. Do not try to make sense of this.
> 	-->
> 
> 1) So, my first question would be ... what's the best guess time frame
> for when this portlet is updated to be more Plone 2.0/CSS friendly?
> Final release of v2.0?
> 
> 2) In the meantime, would others recommend customizing the portlet
> script by  stripping out the img, styling, and spacing and then
> replacing it with a nice CSS defined style/div?      
> 
> 3) And finally, will this approach upgrade gracefully?
>  
> 
> Thanks for the insight!  Andrew
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id56&alloc_id438&op=click




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.