Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 03:26:41 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Need help on including custom frontend.css inside view.php  (Read 62 times)
Olli

Offline Offline

Posts: 288


« on: January 27, 2012, 01:13:58 PM »

hello everybody,

i am in need of assistance for a special situation:

i need to specifiy a different CSS-file that needs to be loaded instead of the frontend.css.

reason for this is simple: i would like to parse the CSS-file with PHP so the css file is called 'frontend.php' and not 'frontend.css'.

do you know a quick workaround to alter the filename for 'frontend.css' inside the view.php of a module?

thank you very much to all smiley
olli
Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2094



WWW
« Reply #1 on: January 27, 2012, 03:12:14 PM »

That is not possible. The frontend.css is included by the WB core functions.

What you can do is not using the frontend.css (rename/delete it) but use your own styling in the template css.
In the template it is not a big problem to include .php files as stylesheets.

Logged

Professional WebsiteBaker Developer
Olli

Offline Offline

Posts: 288


« Reply #2 on: January 27, 2012, 07:54:18 PM »

hmm, i inspected the core files today and saw the filenames are fixed inside the frontend-functions-file... too bad...
i thought about overwriting a function somehow first inside the view.php, but i saw this stuff is not part of any function and the function calls take place before the template gets loaded.

i wanted to keep it the most flexible and be able to switch it all from the module 'view.php' without taking care of the template...

but i guess i am going to fix it the way you suggested ruud.

btw.: have you tried this PHP script?
http://www.conditional-css.com/advanced
the script checks the user-agent string and you are able to fix tricky CSS behauviour on complex sites easily.

all the best,
olli
« Last Edit: January 27, 2012, 08:01:03 PM by Olli » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!