Forums / Suggestions / Being able to group with datatype
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.
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
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?