Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-06 21:18:44

datafirm
Archived Plugin Author
From: Seattle, WA
Registered: 2004-07-22
Posts: 35
Website

Talyst - Rockin' out

Here is another TXP 4.0.2 site:

Talyst

E-commerce is next :)

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

#3 2005-12-06 22:52:12

datafirm
Archived Plugin Author
From: Seattle, WA
Registered: 2004-07-22
Posts: 35
Website

Re: Talyst - Rockin' out

> Neko wrote:

> Super nice!

Background colour isn’t set.

It is now. Thanks!

Offline

#4 2005-12-07 03:33:41

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Talyst - Rockin' out

Looking great as usual! Cant wait to see the e-commerce side. You did a great job with the integration on your last release. Also can’t wait to see Your site up and showing us all up. :)

Last edited by soulship (2005-12-07 03:34:10)

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

#7 2005-12-14 18:33:12

datafirm
Archived Plugin Author
From: Seattle, WA
Registered: 2004-07-22
Posts: 35
Website

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

#10 2005-12-30 13:13:04

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

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

#12 2005-12-30 13:50:09

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Talyst - Rockin' out

Damn, and I thought I could post something useful for you once…

Offline

#13 2005-12-30 14:02:25

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Talyst - Rockin' out

…in den unendlichen TXP Weiten habe ich noch zahlreiche Fragen, die ich dir stellen kann… mir fällt im Augenblick nur keine ein … kann sich aber minütlich ändern ;)

Offline

#14 2006-01-04 17:21:00

NikLP
Member
From: Nottingham
Registered: 2005-02-01
Posts: 43
Website

Re: Talyst - Rockin' out

Errr doesn’t this printer version thing just defeat the object of the print media type for css??

The whole point of css is that you can write a print css file and then restyle the document for different media types. Therefore no code is required, period. Go to maps.google.com and then do File>Print Preview if you don’t buy it.

Printer friendly links are a thing of the past. If your point is to illustrate that the people using the site are uneducated buffoons, then give them a clue that your clever css is taking care of business for them throughout the site and that they DON’T HAVE TO look around for a ‘print friendly’ link.

Simply writing two stylesheets, one for screen and one for printer is perfectly sufficient as far as I know… (I can see that you have implemented the print sheet so why bother with the links and backward compatible html and inaccessible _blanks just for the stupids?)

Confused…!

Nice site though! :)

Offline

#15 2006-01-04 17:46:58

datafirm
Archived Plugin Author
From: Seattle, WA
Registered: 2004-07-22
Posts: 35
Website

Re: Talyst - Rockin' out

Nik,

Actually did you try to print one of the pages? There is a print stylesheet, but in all actuality I am not certain everyone is ready to not have the “printer friendly” link. They are actually the same thing. All I am doing is allowing one to preview the document before its printed. :)

Thanks

> NikLP wrote:

> Errr doesn’t this printer version thing just defeat the object of the print media type for css??

The whole point of css is that you can write a print css file and then restyle the document for different media types. Therefore no code is required, period. Go to maps.google.com and then do File>Print Preview if you don’t buy it.

Printer friendly links are a thing of the past. If your point is to illustrate that the people using the site are uneducated buffoons, then give them a clue that your clever css is taking care of business for them throughout the site and that they DON’T HAVE TO look around for a ‘print friendly’ link.

Simply writing two stylesheets, one for screen and one for printer is perfectly sufficient as far as I know… (I can see that you have implemented the print sheet so why bother with the links and backward compatible html and inaccessible _blanks just for the stupids?)

Confused…!

Nice site though! :)

Offline

Board footer

Powered by FluxBB