Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Talyst - Rockin' out
Offline
#2 2005-12-06 22:06:40
- Neko
- Member
- Registered: 2004-03-18
- Posts: 458
Re: Talyst - Rockin' out
Super nice!
Background colour isn’t set.
Last edited by Neko (2005-12-06 22:07:31)
Offline
Re: Talyst - Rockin' out
> Neko wrote:
> Super nice!
Background colour isn’t set.
It is now. Thanks!
Offline
Offline
#5 2005-12-11 07:19:25
- ferenczi
- Member
- Registered: 2005-01-31
- Posts: 67
Re: Talyst - Rockin' out
wow.
Offline
#6 2005-12-14 18:20:11
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Talyst - Rockin' out
Hi datafirm.
i would like to know how you managed to get the Printerfriendly Version working? Is this javascript or a styleswitcher or…?
Other than that:
Very well done!! Great technic and great lookin`… perfect i guess
Offline
Re: Talyst - Rockin' out
> alexandra wrote:
Hi datafirm.
i would like to know how you managed to get the Printerfriendly Version working? Is this javascript or a styleswitcher or…?
Hello,
We did try the style sheet switcher that worked in real time on the current page. I felt this took away from the usability of the site though. If you were in print “mode” and you hit the back button you would still be in print mode. If someone did not know how to kill this new “mode” they may become frustrated. So we decided to pop up an _blank ;)
The trick is this: when we detect the Print filter in the URI we have a conditional tag that will switch the print.css stylesheet to me used on media=“screen, projection” etc.
HTH
-Will
Offline
#8 2005-12-14 20:01:01
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Talyst - Rockin' out
> datafirm wrote:
> The trick is this: when we detect the Print filter in the URI we have a conditional tag that will switch the print.css stylesheet to me used on media=“screen, projection” etc.
Is this PHP then? Clients asked me for this kind of a Printerfriendly Versionlike yours, but i do not know how to work it out.
Offline
#9 2005-12-30 08:06:15
- brian.zerangue
- Member
- Registered: 2005-02-15
- Posts: 62
Re: Talyst - Rockin' out
good work! nice and clean!
Offline
Re: Talyst - Rockin' out
@alexandra:
You can use this in your page template to select either a printer or a regular css:
<code>
<txp:php>
if (gps(‘print’) == 1) echo(‘<link rel=“stylesheet” type=“text/css” href=”<txp:css n=“printer” />” media=“screen, projection” title=“printer stylesheet” />’);
else echo(‘<link rel=“stylesheet” type=“text/css” href=”<txp:css />” media=“screen, projection” title=“css v.2” />’);
</txp:php>
</code>
And this snipped may be useful to generate the printer friendly links:
<code>
<txp:php>
echo(‘<a href=“http://www.’ . $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’] . ‘?print=1”>printer friendly version</a>’);
</txp:php>
</code>
Hope to have helped!
Ralph
Offline
#11 2005-12-30 13:46:27
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Talyst - Rockin' out
Hi larf, thanks for your post above. i did find it out already :) and did writen an article on it in german
CSS Stylesheet für den Druck mit TXP
Offline
Re: Talyst - Rockin' out
Damn, and I thought I could post something useful for you once…
Offline