"Information Design" question

Author Message

Mariano Sokal

Tuesday 12 June 2007 3:04:37 pm

Hello, I´m very new to ezpublish and I´m already liking it a lot.

Here´s my question: I need to be able to show several pieces of information, for example training courses, that fit in more than a single category. For example I have the following:

- "English as a Second Language", which can be in the US, Australia or Canada
- "Internships" which can be in UK or Australia
- "French as a Second Language" which can be in Canada or France

Then I would like the users to browse by a category named "countries" so they see every program they may in Canada, being french or english. Or browsing by "english language programs", and they would see programs in Canada and so on.

My idea is not having to duplicate the information, but assigning or (tagging?) more than one category to each piece of information.

Any recommendations on how to do that?

Kind regards,
AiZ

Greg McAvoy-Jensen

Tuesday 12 June 2007 5:54:55 pm

Welcome!

Have you considered setting up a selection datatype for country? See http://ez.no/doc/ez_publish/technical_manual/3_9/reference/datatypes/selection and http://ez.no/community/forum/general/how_would_you_make_this_in_ez_publish. It may work as long as you never delete a country.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Felipe Jaramillo

Wednesday 13 June 2007 3:42:40 pm

Actually I would suggest two approaches for this:

Using an object relation datatype in the course, internship, and other classes that is related to a folder's content (could be country or anything else).

Or, leveraging the tagging functionality in 3.9.2 The good thing about the tagging functionality in this last version is that it does not require related nodes to be of the same class.

All in all, this is definately not something hard to do.

Good luck!

Felipe
(Just got the Certified Extension Developer title!!!!)

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Mariano Sokal

Wednesday 27 June 2007 11:36:40 am

Thank you very much. It took me some time to understand it and getting it done, but now it works fine for me.

Felipe, what did you mean by leveraging the tag functionality? (si te es mas facil ayudarme en español te pregunto directamente por email).

Best Regards,
Mariano

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:22:12
Script start
Timing: Jan 18 2025 11:22:12
Module start 'layout'
Timing: Jan 18 2025 11:22:12
Module start 'content'
Timing: Jan 18 2025 11:22:13
Module end 'content'
Timing: Jan 18 2025 11:22:13
Script end

Main resources:

Total runtime0.8810 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.9141152.6250
Module start 'layout' 0.00540.0025 740.539139.4453
Module start 'content' 0.00780.8720 779.9844588.1250
Module end 'content' 0.87980.0012 1,368.109412.1641
Script end 0.8810  1,380.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3411160.0002
Check MTime0.00120.1383160.0001
Mysql Total
Database connection0.00080.087310.0008
Mysqli_queries0.826793.8316620.0133
Looping result0.00070.0800600.0000
Template Total0.848496.320.4242
Template load0.00200.226820.0010
Template processing0.846496.065420.4232
Template load and register function0.00010.013910.0001
states
state_id_array0.00110.130310.0011
state_identifier_array0.00140.161720.0007
Override
Cache load0.00170.1933300.0001
Sytem overhead
Fetch class attribute can translate value0.00070.074530.0002
Fetch class attribute name0.00160.182350.0003
XML
Image XML parsing0.00080.089330.0003
class_abstraction
Instantiating content class attribute0.00000.004050.0000
General
dbfile0.00080.0941180.0000
String conversion0.00000.000740.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs