Lost templates

Author Message

Jonas Brown

Monday 16 August 2004 6:25:08 am

Hi,

I have been trying (unsuccesfully) to change some of the colours the site uses, specifically fonts, quote boxes etc. Not sure what I have changed but now when I go into look and feel there is no template list and no admin email address

Can anybody help with this (and/or changing the colours - please don't say ammend the CSS because I have been tring to ammend those and nothing seems to make any difference at all)

Mark Marsiglio

Monday 16 August 2004 7:56:44 am

In order to adjust the CSS you have to work on the correct version. My research seems to show that if you select your template through the Look and Feel section of the 3.4 admin, the CSS files are actually located in the /ezpublish/packages/styles/t01[or your style number]/files/default/file/design/base/stylesheets/[yourstylenumber]/ folder. Kind of deep and hard to find, but that is where the package version resides.

I usually amend the pagelayout for my selected template to call stylesheets from the design/mysitename/stylesheets/ folder and then copy the CSS from the package location to that folder for editing. This removes the ability to change the site colors using the admin for that particular site, but I typically only do this once from the start.

Modifying the CSS is the best way to make the changes that you would like to make. They are a little hard to make sense of at first, but after getting to know your way around the structure makes a lot of sense.

If you have lost access to the admin version of the management of styles and colors, the steps above might fix that. If not, you might want to reinstall, as this is sometimes the easier way to fix an unknown problem if you have not gotten too far into your design. You can keep the data by selecting your existing database in the install process.

Hope that helps,
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Jonas Brown

Monday 16 August 2004 8:25:21 am

Thanks for that mark.

I have found the files you mention yet changing the colours doesn't seem to make any difference at all.

I'm kinda getting to give up on this - so far I have changed what feels like hundreds of colour codes in countless styl sheets and it doesn;t make any difference

I'd rather not do a reinstal unless I can be sure the content will come across

Mark Marsiglio

Monday 16 August 2004 8:41:19 am

The sure way to tell is to look at the HTML source in a web browser and see what file it is pointing to. It should include the full path there.

Also, make sure to clear your cache. You can use the admin function to do this, but when I have a change that is not taking effect as expected, I take a few additional steps to be sure.

1) throw away the cache folder for your site in the /var/yoursite/ folder. Leave the storage folder.
2) empty your browser cache

Also, another step in troubleshooting CSS is to make sure that another stylesheet is not overriding your settings. The last style found is the one that is used for a particular setting, and they load in the order that they are listed in the top of the page (last one is at the bottom). If you are setting a color in the core.css, and that style has a color set in the classes-colors.css, it will override your setting and it will appear to have no effect.

The best way to make sure this is not what is causing your problem is to change a color to an obvious setting in the last stylesheet that is loaded and see if that has any effect.

Keep in mind that the stylesheets in the default installation come from two locations - two (both end in -colors.css) from the packages folder, and four from the design/base/stylesheets folder (site.css, classes.css, core.css, and debug.css).

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Jonas Brown

Monday 16 August 2004 9:40:04 am

Mark - thanks for your patience - your help has meant for the first time I have managed to change the colours.

One last entry I cannot seem to see in the style sheets is the large header colours - which css are these usually in?

Mark Marsiglio

Monday 16 August 2004 10:26:02 am

the header colors are set in two places--

In the site-colors.css, there are h1, h2, h3, h4, etc. These colors override settings placed in core.css which contains the other components of the h1-6 styles (size, font, etc).

The second place is that in some instances this is overrided by the classes-colors.css in which some headers might be a different color based on class.

Good luck!
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Jonas Brown

Tuesday 17 August 2004 5:28:52 am

Mark, thanks for your help.

As a novice at these things I was struggling but you posts mean I have now been able to:-

Change Font
Change all the font colours
Add a background colour to the left menu

etc etc - I've still a way to go - and I'm now looking at whether I can add a user only area that can only be accessed via a user name and password we generate (Ie customers only) - but I am sure that will be a whole other set of posts for the future

So once again thanks for the help

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:37:36
Script start
Timing: Jan 18 2025 22:37:36
Module start 'layout'
Timing: Jan 18 2025 22:37:36
Module start 'content'
Timing: Jan 18 2025 22:37:37
Module end 'content'
Timing: Jan 18 2025 22:37:37
Script end

Main resources:

Total runtime1.0769 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.9219152.6094
Module start 'layout' 0.00460.0056 741.531339.4297
Module start 'content' 0.01021.0650 780.9609587.4688
Module end 'content' 1.07520.0017 1,368.429720.1953
Script end 1.0769  1,388.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2842160.0002
Check MTime0.00130.1225160.0001
Mysql Total
Database connection0.00060.059310.0006
Mysqli_queries1.007493.5401690.0146
Looping result0.00080.0718670.0000
Template Total1.038896.520.5194
Template load0.00210.191120.0010
Template processing1.036796.262120.5183
Template load and register function0.00020.015410.0002
states
state_id_array0.00080.072110.0008
state_identifier_array0.00230.215120.0012
Override
Cache load0.00180.1657460.0000
Sytem overhead
Fetch class attribute can translate value0.00050.050120.0003
Fetch class attribute name0.00180.168280.0002
XML
Image XML parsing0.00070.063220.0003
class_abstraction
Instantiating content class attribute0.00000.0028100.0000
General
dbfile0.00090.0813150.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs