Forums / Suggestions / Being able to group with datatype

Being able to group with datatype

Author Message

Vincent Saulnier

Tuesday 16 December 2003 11:00:11 am

I think it would be a good idea to be able to group results of a fetch command by attributes.

Exemple : if I want to have a calendar where I can specify the date of an event I should be able to do the same as in the blog Site with a custom date.

Vincent Saulnier

Tuesday 16 December 2003 12:23:37 pm

We should be able to do the same with the month_overview field parameter.

Paul Forsyth

Wednesday 17 December 2003 12:09:31 am

Im not clear on why you would want to make a calendar a datatype. Can you give better examples?

paul

Vincent Saulnier

Wednesday 17 December 2003 6:01:50 am

I don't want to make a calendar a datatype.

I'll explain myself better:

Right now, what I see from version 3.3.0-2 blog package in demo, we have the monthview.tpl navigator.

I want to be able to use that but not with the published date, with the use of a date datatype in the selected content object for instance a event content object.

I've tried, it works for showing the right event in the right page but I'm not able to have links on the calendar to the right days.

I hop it's clearer.
--
Vincent

Anders F

Thursday 15 January 2004 1:26:07 pm

I'm not really shure but I think I tried to focus (perhaps a bit badly...) on something like this in this thread:

http://www.ez.no/developer/ez_publish_3/forum/setup_design/sort_by_attribute_in_several_classes

It can be accomplished by putting the attribute in the name pattern, a quite ugly hack:

http://www.ez.no/developer/ez_publish_3/forum/setup_design/fetch_sort_via_specific_field_/re_fetch_sort_via_specific_field__3

I suppose the code could look like this:

sort_by,array('attribute',false(), 'my_own_attribute')

and it should work like sort_by name, published etc. (on all classes with that attribute).

I'm not really shure that I use the correct vocabulary, hopefolly you understand what I mean...

Any comments?

eZ debug

Timing: Jan 30 2025 20:31:42
Script start
Timing: Jan 30 2025 20:31:42
Module start 'content'
Timing: Jan 30 2025 20:31:42
Module end 'content'
Timing: Jan 30 2025 20:31:43
Script end

Main resources:

Total runtime0.4863 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 587.9531370.2891
Module start 'content' 0.01010.0251 958.24221,001.4219
Module end 'content' 0.03520.4505 1,959.66413,891.3906
Script end 0.4858  5,851.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00741.5182200.0004
Check MTime0.00150.3109200.0001
Mysql Total
Database connection0.00050.098310.0005
Mysqli_queries0.279157.40071410.0020
Looping result0.00140.29491390.0000
Template Total0.449992.510.4499
Template load0.00260.541510.0026
Template processing0.447291.971310.4472
Override
Cache load0.00060.125010.0006
Sytem overhead
Fetch class attribute can translate value0.00400.817210.0040
XML
Image XML parsing0.00250.509410.0025
General
dbfile0.02284.6985200.0011
String conversion0.00000.001830.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.0005 secs