WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: diodak on February 09, 2008, 03:50:44 PM

Title: Different template in News long post.
Post by: diodak 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?
Title: Re: Different template in News long post.
Post by: diodak 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.