Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Print version of a page in 4.5.5
Hello,
maybe it is a stupid question, but anyway.
I plan to update my textpattern 4.4.1 site to 4.5.5. At the moment the print version of a page is shown over a link to another section, which has a reduced design.
sitename/index.php?s=drucken&id=articleid
Section “drucken” is linked to an extra page. All other links of the site have clean urls.
After updating to 4.5.5 the page is still shown, but with the default design.
Surprisingly the same happens, if I change the url-scheme to messy. I tested it also with deactivated plugins.
I use Lighttpd with sencers patch.
if (@txpinterface == 'public')
register_callback("asy_fix_querystring", "pretext");
function asy_fix_querystring($event, $step) {
if (!strstr($_SERVER['REQUEST_URI'],'?') or !empty($_GET)) return;
$_SERVER['QUERY_STRING'] = preg_replace('#^.*?\?#','',$_SERVER['REQUEST_URI']);
parse_str($_SERVER['QUERY_STRING'], $_GET);
}
Textpattern version: 4.5.5 (r5575)
Last update: 2014-01-10 17:32:46/2013-10-04 11:55:16
Document root: /var/www/test
$path_to_site: /var/www/test
Textpattern path: /var/www/test/textpattern
Permanent link mode: messy
Temporary directory path: /var/www/test/textpattern/tmp
Site URL: test
PHP version: 5.3.3-7+squeeze8
GD Graphics Library: 2.0; supported formats: GIF, JPG, PNG.
Server TZ: Europe/Berlin
Server local time: 2014-01-15 19:30:39
DST enabled?: 0
Automatically adjust DST setting?: 1
Time zone: Europe/Kiev (7200)
MySQL: 5.5.34-MariaDB-1~squeeze-log
Locale: C
Server: Lighttpd 1.4.33 on Debian Squeeze
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32-042stab078.27
Admin-side theme: remora 4.5.5
Where is my mistake?
Offline
#2 2014-01-15 19:59:22
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Print version of a page in 4.5.5
Any print version (print design) you can make only with CSS. It’s very simple and it’s independent of the CMS.
Offline
Re: Print version of a page in 4.5.5
ok I know, but it would be easier to preserve the actual variant, with a printing section like this ….
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><txp:page_title /></title>
<meta name="robots" content="noindex, follow, noarchive" />
<base href="<txp:site_url />" />
<link rel="stylesheet" type="text/css" media="all" href="css/drucken.css" />
</head>
<body>
<table><tr><td>
<strong><txp:category1 link="0" title="1" section="artikel" this_section="0" /></strong> // <txp:posted format="%A, %d.%m.%G" />
</td></tr></table>
<h2><txp:title /></h2>
<txp:body />
<p><strong><txp:author /></strong>
</body>
</html>
the second advantage is, that I can offer a direct link to the print version.
Offline
#4 2014-01-15 21:04:56
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Print version of a page in 4.5.5
If you like to do things more complicated than necessary, then that’s your choice.
;-)
Offline
Re: Print version of a page in 4.5.5
you are right, but it works with 4.4.1, so I wonder why it doesn’t work after this update to 4.5.5. What has changed?
Offline
Offline
Re: Print version of a page in 4.5.5
ah, ok … than I didn’t get it in the changelog … sorry
Offline
Re: Print version of a page in 4.5.5
adi_gps is my friend for links like “article_url?print=1”. Thanks again for pushing me in the right direction!!!
Offline
Pages: 1