Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
seeder17 CreditAttribution: seeder17 commentedI 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?
Comment #2
hefox CreditAttribution: hefox commentedAs 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.
Comment #3
jdwfly CreditAttribution: jdwfly commentedPlease try against the latest dev release.
Comment #4
jdwfly CreditAttribution: jdwfly commentedI 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.