eZ Community » Forums » Suggestions » Being able to group with datatype
expandshrink

Being able to group with datatype

Being able to group with datatype

Tuesday 16 December 2003 8:00:11 pm - 4 replies

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 9:23:37 pm

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

Wednesday 17 December 2003 9:09:31 am

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

paul

Modified on Wednesday 17 December 2003 9:09:47 am by Paul Forsyth

Wednesday 17 December 2003 3:01:50 pm

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

Thursday 15 January 2004 10: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_pub...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_pub.../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?

Modified on Thursday 15 January 2004 10:26:49 pm by Anders F

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from