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?

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 15:04:41
Script start
Timing: Jan 18 2025 15:04:41
Module start 'layout'
Timing: Jan 18 2025 15:04:41
Module start 'content'
Timing: Jan 18 2025 15:04:41
Module end 'content'
Timing: Jan 18 2025 15:04:41
Script end

Main resources:

Total runtime0.4605 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9375152.6250
Module start 'layout' 0.00590.0030 740.562539.4453
Module start 'content' 0.00890.4502 780.0078519.7031
Module end 'content' 0.45900.0014 1,299.710912.1563
Script end 0.4605  1,311.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.7145160.0002
Check MTime0.00150.3225160.0001
Mysql Total
Database connection0.00080.168710.0008
Mysqli_queries0.410889.1988650.0063
Looping result0.00070.1532630.0000
Template Total0.433494.120.2167
Template load0.00170.366520.0008
Template processing0.431793.735920.2158
Template load and register function0.00020.054310.0002
states
state_id_array0.00030.063810.0003
state_identifier_array0.00070.160020.0004
Override
Cache load0.00140.3050290.0000
Sytem overhead
Fetch class attribute can translate value0.00060.121630.0002
Fetch class attribute name0.00090.198850.0002
XML
Image XML parsing0.00040.077230.0001
class_abstraction
Instantiating content class attribute0.00000.002350.0000
General
dbfile0.00060.1353100.0001
String conversion0.00000.001540.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs