Share » Forums » Setup & design » Stylesheets - I'm at a loss

Stylesheets - I'm at a loss

Stylesheets - I'm at a loss

Thursday 03 June 2010 7:51:01 am - 6 replies

Author Message

André R.

Thursday 03 June 2010 9:05:37 am

copy extension/ezjscore/design/ezwebin/templates/page_head_style.tpl into your own extension / design that has higher priority then ezjscore / ezwebin(design).

site-colors and classes-colors comes from this code:

<link rel="stylesheet" type="text/css" href={ezini('StylesheetSettings','ClassesCSS','design.ini')|ezroot()} />
<link rel="stylesheet" type="text/css" href={ezini('StylesheetSettings','SiteCSS','design.ini')|ezroot()} />

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Steven Stieng

Tuesday 08 June 2010 12:28:06 am

I'm already using page_head_style.tpl which is located in extension\ezwebin\design\ezwebin\templates. 

I see that if I change the ezjscore file, I get a different output.

So the question is, why is isn't this file overridden by my custom style file?

Doug Brethower

Tuesday 08 June 2010 8:09:29 am

To clarify Andre "higher priority" regarding extensions..

http://share.ez.no/forums/setup-design/ini-settings-override-order

Post by Nicolas is the condensed version of the thread.

Hope this helps!

Doug Brethower
Apple Certified Technical Consultant, Southwest, MO USA
http://share.ez.no/directory/companies/lakedata.net

Steven Stieng

Wednesday 09 June 2010 2:10:40 am

It's all good and fine to know what order the INI files are loaded.
(even the eZ developer team didn't know this without having to discuss it)

But how has that got to do with  what CSS file is loaded?
Shouldn't all code, be it in CSS or templates, I put into  extension\ezwebin\design\ezwebin\ override any default configuration?

Do I really have to find whatever INI file and tell it to use the different CSS files I create? It really should be enough to only add the default HTML code in the template.  

Olaf Fichtner

Tuesday 15 June 2010 3:24:59 am

From what I have learned so far, the priority game applies to many things, not just INI files. You can override templates, if you put yours into a folder with higher priority, and this works for stylesheets too. As for the correct order, being relatively new to this system I still need to look up details when I need them.

For myself I did something rather lazy and simple: I installed the probably only "theme" available, which is really not more than two CSS files and a bunch of images (and some setting files, somewhere), then deleted everything from the CSS files and now add exactly those portions that I want to override - works fine...

shad ali

Friday 18 June 2010 2:38:04 pm

Hmmm… Now, I’m getting a 500 Internal Service Error when using any of the above suggestions except Elliot’s, which I land on the index page with no url segments, but then get the 500 Internal Service Error when I try to get to any other pages.

 

This is my first attempt at using htaccess for rewriting urls, so I appreciate your guys’ help!

 

Thanks!

[url=http://2funhost.net]Cheap Hosting[/url]

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu