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
Comments
Comment #1
merlinofchaos commentedDate 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.
Comment #2
arlinsandbulte commented@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.
Comment #3
alex72rm commentedHi,
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?
Comment #4
arlinsandbulte commentedLooks 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.
Comment #5
alex72rm commentedI'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".