remapping the directory structure

Author Message

cfa cfa

Wednesday 30 July 2003 9:47:39 pm

i am currently working on a product-index for a multi-language site (where every language got its own siteaccess).

the products and productgroups are plenty (more than 500) are organized in the following (simpliefied) directory structure:

productgroup - product

now i want to add geographical information (country and province) to this directory structure (or the product-class object) where this geographical information would be accessed in two ways:

productgroup - product - country - province (the normal way)
country - province - productgroup - product (the re-mapped way)

the user should experience the COUNTRY and STATE as part of the directory structure (like it is done on YAHOO) and just click himself thru to the desired PRODUCT from top-to-bottom or the other way round.

i tried out the following ways of implementation:

DIRECTORY STRUCTURE - just make two of them! some countries have a lot of provinces, and there are many countries on this earth!

ENUM-FIELD implementation of country and province but failed to create a good relation between COUNTRY and PROVINCE, ENUM-fields can t get translated into other languages either.

RELATED OBJECT to a country and its province (and just create te countries and provinces needed during input). this worked good with multi-languages!

COUNTRY CLASS object. there was one posted, but only in english...

thanks!

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 21:09:06
Script start
Timing: Jan 18 2025 21:09:06
Module start 'layout'
Timing: Jan 18 2025 21:09:06
Module start 'content'
Timing: Jan 18 2025 21:09:07
Module end 'content'
Timing: Jan 18 2025 21:09:07
Script end

Main resources:

Total runtime1.5078 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 592.1094152.6406
Module start 'layout' 0.00820.0033 744.750039.4766
Module start 'content' 0.01151.4946 784.2266405.8359
Module end 'content' 1.50610.0016 1,190.06258.1406
Script end 1.5078  1,198.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2792160.0003
Check MTime0.00170.1108160.0001
Mysql Total
Database connection0.00070.046010.0007
Mysqli_queries1.462897.0118460.0318
Looping result0.00060.0422440.0000
Template Total1.464497.120.7322
Template load0.00230.154520.0012
Template processing1.462196.964920.7310
Template load and register function0.00020.015810.0002
states
state_id_array0.00160.107310.0016
state_identifier_array0.00230.151620.0011
Override
Cache load0.00190.1256160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.060710.0009
Fetch class attribute name0.00080.054710.0008
XML
Image XML parsing0.00010.007510.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00170.1103100.0002
String conversion0.00000.000540.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs