WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Different template in News long post.
  • Print
Pages: [1]   Go Down

Author Topic: Different template in News long post.  (Read 7044 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?
Logged
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.
Logged
Buchsbaum

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Different template in News long post.
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2