Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 12:55:17 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155557 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Need help on including custom frontend.css inside view.php  (Read 177 times)
Olli

Offline Offline

Posts: 290


« 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
WebsiteBaker Org e.V.

Offline Offline

Posts: 2298



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 Solutions
Olli

Offline Offline

Posts: 290


« 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!