[Nuxeo-tickets] Re: [Nuxeo Repository] #1192: Improve the CSS print rendering

Nuxeo Repository trac at nuxeo.com
Wed Jun 7 15:00:11 CEST 2006


#1192: Improve the CSS print rendering
-------------------------+--------------------------------------------------
 Reporter:  madarche     |        Owner:  jmorliaguet
     Type:  enhancement  |       Status:  new        
 Priority:  P2           |    Milestone:  CPS 3.4.2  
Component:  CPSSkins     |      Version:  TRUNK      
 Severity:  normal       |   Resolution:             
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by madarche):

 From the user point of view having an option, in the Portlelt Manager, for
 each portlet stating whether this portlet should be printed or not would
 be very nice.

 That's as you say Lennart easy, flexible and user-friendly. And it's even
 easier than maintaining a dedicated Printable Theme (that one has to keep
 synchronized). But of course in some cases one cannot avoid to build a
 Printable Theme when the print view to obtain is too different from the
 web view.

 Now from the code perspective there are 2 possible solutions :

 1. generate from CPSSkins a print media CSS with the "display: none;"
 directive for each portlet marked as "not to be printed"

 2. put "doNotPrint" class in the HTML generated by each portlet

 The solution 1 is semantic and more web and CSS oriented (not cluttering
 the web pages with display informations), and thus I find it better.

 Anyway no matter which of solution 1 or 2 is chosen we should delete all
 "doNotPrint" hardcoded information in CPS.


 And finally about the
 {{{
 <div id="...">
 }}}
 around each portlet, this seems to be the situation that we have now. So
 this is great.

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1192>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository


More information about the Nuxeo-tickets mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.