Re: Printer friendly pages (was: SF.net SVN: squirrelmail: [13121] trunk/squirrelmail)

"Fredrik Jervfors" <[email protected]>
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
>>>> Add preliminary printerfriendly-through-css feature. This adds a
>>>> new print.css stylesheet that is used when using the browser's print
>>>> (or
>>>> print preview) function. A problem is that due to the frames, it
>>>> won't work if selecting File -> Print because this will print
>>>> webmail.php instead of read_body. To see it in action, open
>>>> read_body on its own and use File -> Print Preview.
>>>
>>> I didn't try it, but nice work.
>>
>> I too didn't try it, but I like the idea.
>>
>>>> It would be nice if this could replace the printer_friendly
>>>> function over time, because it's purely css based and thus doesn't
>>>> require extra code. For that we need to finetune the sheet and most
>>>> importantly, conquer the frames-problem in some smart way.
>>>
>>> Many many websites use a popup window for print-ready pages.
>>
>> With the possibilities in CSS they shouldn't have to any more, but as
>> Thijs points out that only works if the original idea behind the WWW is
>> respected: that information is displayed as pages and not in frames.
>> When
>
> I don't know why such the hatred of frames.  :-)  They are more
> efficient and they work fine.  Plenty of desktop apps also use frames.

I don't hate frames - I'm just saying that they're an add-on to the
original idea about the page (and beauty in simplicity?).

>> (hopefully not "if") we have a framless version we could dump the
>> pop-ups
>
> 1.5.2 allows this.  I have fiddled with some code that unframes it
> whilst working on mobile phone stuff.  No folder list unless you access it
> via a link, but some other advanced template set should be able to include
> that, too, although some core changes may or may not be necessary.

Sweet! For some reason I wasn't aware of this.

>> altogether (and have a plugin with pop-ups for those who really wants
>> them).
>>
>> What we could do already is to remove the printer friendly files from
>> "/src/" and use "/src/read_body.php" with another CSS to provide the
>> clean look needed for printing. Unfortunately I don't have time to do
>> this myself. Volunteers, please step up!

Sincerely,
Fredrik


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
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.