WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Different template in News long post.

(1/1)

diodak:
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?

diodak:
Ok, I`ve figured it out with simple if call:


--- Code: ---<?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 } ?>
--- End code ---

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

Navigation

[0] Message Index

Go to full version