Forums / Setup & design / "Information Design" question

"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

eZ debug

Timing: Jan 18 2025 04:53:41
Script start
Timing: Jan 18 2025 04:53:41
Module start 'content'
Timing: Jan 18 2025 04:53:41
Module end 'content'
Timing: Jan 18 2025 04:53:42
Script end

Main resources:

Total runtime1.0300 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.7109180.8359
Module start 'content' 0.00660.8481 768.5469593.2031
Module end 'content' 0.85470.1752 1,361.7500337.4063
Script end 1.0300  1,699.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4510210.0002
Check MTime0.00160.1551210.0001
Mysql Total
Database connection0.00070.064610.0007
Mysqli_queries0.930990.37921990.0047
Looping result0.00250.24341970.0000
Template Total0.987695.920.4938
Template load0.00220.209320.0011
Template processing0.985595.670920.4927
Template load and register function0.00020.021610.0002
states
state_id_array0.00140.131910.0014
state_identifier_array0.00190.186720.0010
Override
Cache load0.00180.1765300.0001
Sytem overhead
Fetch class attribute can translate value0.00120.119940.0003
Fetch class attribute name0.00160.150650.0003
XML
Image XML parsing0.00480.464640.0012
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.02031.9698290.0007
String conversion0.00000.000730.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs