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

KarenS’s picture

Title: Default argument type : Fixed Entry : @--P2W won't work gives page not found error » Default argument type: allow Fixed Entry : @--P2W
Category: bug » feature

It'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.

sentogi’s picture

Karen 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

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately 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.