Forums / General / design directory structure?

design directory structure?

Author Message

gerry rodman

Saturday 22 May 2004 9:02:59 am

I am trying to understand the big picture of the first level directories under the design dir but I find that the docs don't really address this subject from a high enough level to answer my question.

With v3.3-5 under the design dir, I have three dirs... standard, admin, and shop (I installed as shop)

With v3.4 beta 2 i get and additional directory called base.

I have questions about the basic purposes of these dirs... my guess is that the answer is simple but I don't quite see the relationships.

Lets start with standard:

MOST of the stuff here appears to be geared toward the admin interface. Is my observation correct? It is ALL related to the admin interface? If so what is the relationship between it and the admin dir (under the design dir). What is in the admin dir which is not in the standard dir?

V3.4 beta base dir vs. shop:

These dirs seem to contain duplicate files, some of which appear to be the identical in content.
I assume shop is designed to override the base dir. But if so, why are many of the files in shop, identical (in content) to those in base? Is any of the public facing interface stuff based on or does it refer to anything in the standard dir or (again) is the standard dir strictly for admin.

If someone could answer these question and / or provide a general definition of the relationships of the first level of dirs under the design dir...I would be most grateful.

Cheers

gr

Roy Bøhmer

Wednesday 26 May 2004 1:13:43 pm

Well, I'll give it a try...

In my opinion a clear understanding of siteaccess is fundamental to an understanding of designs. A very simplified explanation could be:
- A site contains of one database. The shop-site uses the shop-database, news uses news-database etc.
- The database contains (among other things) the content
- Often you want to approach the content in different ways according to what you want to do. ex: If you want to administrate the site you want to give different permissions to the content than you will give to the reader.
The eZ-way to do this is to set up two different siteaccesses to the same site/database. You can have as many siteaccesses to the same site as you like. (And you can have as many sites as you like too...)

So where does the design comes in?
For each siteaccess you define which design to use. The designs available are found in the first level under /design/.
The standard-design is rarely used as the main-desing in a siteaccess. Insted its used as a "fall-back-design". In your example the shop-site use the shop-design. But when the system fails to find the desired template in /design/shop/ it searches in /design/standard/. The standard-design therefore contains general templates aimed to serve every kind of request.
Yes, the standard-design also contains many templates aimed to the admin-interface ("every kind of requests..")

In this way you can easily make a new siteaccess and a new design to the same site, or you can use the same design to several different sites. If you install more than one of the example-sites (shop, blog, news etc) they all use the same admin-design. But the user see the sites in different ways because they see an other siteaccess which make use of an other design.

Hope it helps.
I've not tested 3.4beta and is new to the base-dir. Sorry.

The dirs under /design/ spesifies a way to

eZ debug

Timing: Jan 31 2025 06:27:38
Script start
Timing: Jan 31 2025 06:27:38
Module start 'content'
Timing: Jan 31 2025 06:27:38
Module end 'content'
Timing: Jan 31 2025 06:27:38
Script end

Main resources:

Total runtime0.1381 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9219180.8438
Module start 'content' 0.00500.0046 768.765693.7266
Module end 'content' 0.00960.1284 862.4922523.7734
Script end 0.1380  1,386.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.2161200.0002
Check MTime0.00130.9508200.0001
Mysql Total
Database connection0.00070.508510.0007
Mysqli_queries0.096669.94231410.0007
Looping result0.00110.77131390.0000
Template Total0.128292.810.1282
Template load0.00080.548910.0008
Template processing0.127492.259310.1274
Override
Cache load0.00050.352710.0005
Sytem overhead
Fetch class attribute can translate value0.00080.575710.0008
XML
Image XML parsing0.00030.198410.0003
General
dbfile0.00594.2911200.0003
String conversion0.00000.001430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs