Hi drupal community,
i've tried to use view tabs to order nodes by there creation date with the format "Y" (following to the php definition of date).
So I would expect that the modul order the nodes by the year of creation as tab field.
the problem is that I just get all the timestamps as tabs, there must be some error in the progression of the date value.

Does anybody have an idea how to solve this?

Comments

seeder17’s picture

Priority: Normal » Critical

I found the probmel in the include code of the module.
The date filds are just timestamps in the view request and the views tabs module is using the raw date timestamp without the format_date() function.
any idea how to change this?

hefox’s picture

As seeder17 said, it's using the raw data for the date instead of the rendered value. The key to solving it would be in finding that formated value. I'm not needing this so won't be trying trying to patch it, but I had a similar issue (#559214: Custom dynamic marker fields) and managed to find the formatted value in the views array, but sorta hacky.

jdwfly’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Please try against the latest dev release.

jdwfly’s picture

Status: Postponed (maintainer needs more info) » Fixed

I can't reproduce this so I am going to assume it is fixed. My date showed up as the year just like I wanted it to. Use the latest release or dev release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.