Different Site Styles

Author Message

Mihai007 Pop

Thursday 07 February 2008 12:29:57 pm

Hi,

I am trying my hand at changing the look and feel of the standard webin interface! I am using that package, so I have gone to the following folder: \ezpublish\var\storage\packages\eZ-systems.

There I saw the site styles ezwebin_design_blue and ezwebin_design_gray. So I copied the ezwebin_design_blue and rename id to ezwebin_design_red!

Now I have changed it to a red background! I went to the admin interface under "design/look and feel"

There I saw the new style, so I chose it! And presto - my site changed to a red background because it is using the new site style!

My question is as follows: I need to make different section/folders with a slight change, or a complete change in look and feel: girls' section is in pink, guy's section is in blue! Can I assign different site styles for different sections/folders? I searched and could not come up with an answer other than creating a totally new pagelayout...! Which could become messy when it comes to maintenance...!

Any thoughts on this? Very much appreciated!!!

André R.

Friday 08 February 2008 1:16:27 am

Slight change is possible, but you cant use more then on design package, ezwebin (or the template_look class more specifically) is not multi site cable.

If you take a look in the generated html source code of a ezwebin / ezflow site you'll see something like this:

<div id="page" class="nosidemenu noextrainfo section_id_1 subtree_level_0_node_id_2 current_node_id_2">

using those classes you can specify css styles for subtrees / nodes / sections of the site.

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

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 11:42:16
Script start
Timing: Jan 18 2025 11:42:16
Module start 'layout'
Timing: Jan 18 2025 11:42:16
Module start 'content'
Timing: Jan 18 2025 11:42:17
Module end 'content'
Timing: Jan 18 2025 11:42:17
Script end

Main resources:

Total runtime0.6408 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.3516152.6250
Module start 'layout' 0.00570.0037 741.976639.4453
Module start 'content' 0.00930.6300 781.4219525.0703
Module end 'content' 0.63930.0015 1,306.49228.3281
Script end 0.6408  1,314.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5136160.0002
Check MTime0.00130.1976160.0001
Mysql Total
Database connection0.00090.142610.0009
Mysqli_queries0.596193.0220540.0110
Looping result0.00050.0857520.0000
Template Total0.607294.820.3036
Template load0.00200.313520.0010
Template processing0.605294.436620.3026
Template load and register function0.00070.111910.0007
states
state_id_array0.00160.245810.0016
state_identifier_array0.00120.179620.0006
Override
Cache load0.00160.2481160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.117520.0004
Fetch class attribute name0.00120.194330.0004
XML
Image XML parsing0.00070.110520.0004
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00080.1242170.0000
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs