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.
I am trying to use the "Date" argument and specify a date range @--P2W (Now to 2 weeks in the future). I want the view to default to this argument, but setting the Default argument type : Fixed Entry to "@--P2W" doesn't work it gives a "Page not found" error
However, if you specify the argument in the URL it works correctly
so,
http://example.com/myview -- won't work - page not found
http://example.com/myview/@--P2W -- Works great
Any Ideas?
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedIt's more of a feature request than a bug report. It wasn't originally intended to work that way, but I have since gotten the date arguments working, so a next step could be allowing a way to use it to set the default. That's going to take some code changes, since that wasn't the original plan, so it won't happen right away.
Comment #2
sentogi CreditAttribution: sentogi commentedKaren Hi,
Unfortunately I have same sproblem in drupal v6.15. You said "it wasn't originally intended to work that way" but live preview works in that way. it shows the correct result when I type url without argument as I specified the default argument by giving "fixed entry". But when A execute the real path without argument (http://example.com/myview) the page displays "Page not found" message.
What I cound't understand is if we can't specify default argument by fixing entry how can we assing the arguments ?
I would be appreciated if you could answers my question?
Thanks in advance
Tolga
Comment #3
DamienMcKennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.