Hi,

I tried to configure an archive view.
Since I need to obtain a block sorted by a cck ISO date field on 'summary, sorted descending',
I removed Argument type 'node: posted Month + Year', substituting it with my cck field.
Then, I noted that the output isn't ordered correctly anymore... and maybe I understood the reason.

The original argument was written as yyyymm... that is a number (output is correctly 200809, 200807, and so on...).
The new one is written as yyyy-mm... that is a string. And sorting isn't performed.

A solution? Maybe removing '-' character for a while... to carry out the right sorting.

How can I accomplish it?

Many thanks!
Alessandro

CommentFileSizeAuthor
#3 img.jpg88.37 KBalex72rm

Comments

merlinofchaos’s picture

Project: Views (for Drupal 7) » Date
Version: 5.x-1.6 » 5.x-2.x-dev

Date argument formatting is handled by the module that supplies the data. I don't think this is technically a bug either but I'm not sure.

arlinsandbulte’s picture

Status: Active » Postponed (maintainer needs more info)

@Alex72RM: Is this issue still valid?
I think you should be able to do what you want. Give a little more info if you still need support.

alex72rm’s picture

StatusFileSize
new88.37 KB

Hi,

the problem is still there (I've installed newest date -dev version).

As you can see in the attached image, I've configured an argument into an archive view.

With a CCK date field sort order doesn't work as expected. on the contrary, with "node: posted year + month", it works well.

A I wrote before, I think it depends on the particular format "yyyymm" that comes with ""node: posted year + month". A CCK date comes with a "yyyy-mm" format...

What do you think?

arlinsandbulte’s picture

Looks like this is a Drupal 5 install...
Sorry, I am only familiar with Drupal 6.

I would imagine this should be possible in D5, though.
Maybe someone else can chip in or if I find time, I will take a look at D5.

alex72rm’s picture

Category: bug » feature
Status: Postponed (maintainer needs more info) » Closed (works as designed)

I've solved by myself.

I've created a computed cck field that get ccyymm part from a cck date.

With this approach, I can summarize archive view on my cck date field as "node: created year + month".