Author Topic: Different template in News long post.  (Read 1732 times)

Offline diodak

  • Posts: 85
Different template in News long post.
« on: February 09, 2008, 03:50:44 PM »
Hello, I would like to have different template in News module - long post view.

http://www.spojnia.osno.info/ when I click on "Czytaj wiecej..."
http://www.spojnia.osno.info/pages/posts/harmonogram-sparingow--junior-mlodszy125.php Long post should appear without right column, do you have any ideas?
Buchsbaum

Offline diodak

  • Posts: 85
Re: Different template in News long post.
« Reply #1 on: February 14, 2008, 01:42:03 AM »
Ok, I`ve figured it out with simple if call:

Code: [Select]
<?php if (preg_match("/posts/i"$_SERVER[&#39;REQUEST_URI&#39;])) { ?>
<link href="<?php echo TEMPLATE_DIR?>/screen_long.css" rel="stylesheet" type="text/css" media="screen" />
<?php } else { ?>
<link href="<?php echo TEMPLATE_DIR?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
<?php ?>

It checks if in URL there is "/posts/" and rotate css files.
Buchsbaum

 

postern-length