Hi,

I think this is a bug but I can't find an issue that is the same as this.

I have a taxonomy/term filter, cloned from the supplied one. The path has been changed to (for this example) /events/%. The contextual filter, under the 'When the filter value is NOT in the URL' group I have tried the following options:

  • Display all results for the specified field
  • Provide default value (value of 'all')
  • Provide default value (value blank)

Every single request to /events (ie, without a filter) takes me to a Page not Found! Interestingly the view preview correctly shows me my 2 testing events nodes, but the actual page is Page not found.

I am using the latest (as of last Friday) View7.x-dev build, Drupal 7.8.

I can workaround by supplying a new page view without the contextual links in the path, and no contextual filters and it works but I beleive the behaviour described above is contrary to its designed function.

Any advise or comments?

Comments

dawehner’s picture

Status: Active » Fixed

Just use the path /events instead of /events/% and that's it.

/events/% means that an argument is required.

ZuluWarrior’s picture

YEs but I require an argument :)

To explain more, my taxonomy structure, simplified is:

Vocab: Events Categories
Term : Conferences
Term : Tutorials
Term : How Tos
Term : -- Webcasts
Term : -- On Location

so for my view its basically a taxonomy/term/%/% clone. When I view sub categories (ie events/conferences ) I get the right result, ie the events in that term.

But then for the initial events landing page (which displays all events) I get the Page not Found, after supplying the 'filter not present' arguments to my view. Like I say it wirks in the views preview, just not on the url events/

I post because I'm thinking this is actually a bug and should be logged, however the workaround I used was to add a second page view to my events view and set that page up as the landing page (path: events/, no contextual filters, standard Event node type filter) so its not a show-stopper, but as the behaviour differs from the 6.x stable I post here to log the bug.

Thanks for the advise thought!

Ashlar’s picture

As Merlinofchaos explained to me in another thread, the path cannot end ion '%'.

Change the path to "events/%/anythingyouwant".

This may get you past your problem, but maybe not because there seem to be a couple problems associated with using contextual filters right now. This change helped me past one problem, but I am still getting the same result as you, it shows the correct result in preview, but not on the site.

ZuluWarrior’s picture

Yea, I see what your getting at there.

Another thing occurs to me, my contextual view has a depth modifier so (i think) that requires a second % in the page value as well, dunno how thats gonna figure!

I basically ran with a 2 view setup in the end though, with one as my landing page ('/events' , no % in page value, no contextual filters) which works for my use case asI want to customize the landing page anyway, the second view is a plain old vanilla clone of the taxonomy/term/5 view and handles the filtered results (/events/whatever).

It's not ideal, or at least not what I would have done in D6 where I recall contextual filters worked well but for now its working. Would still like to see the issue fixed though...

Status: Fixed » Closed (fixed)

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

dedek’s picture

Version: 7.x-3.x-dev » 7.x-3.5
Priority: Normal » Major
Status: Closed (fixed) » Needs review

Enybody find solition?

dawehner’s picture

Priority: Major » Normal
Status: Needs review » Active

Needs review means that someone already attached a patch for that.

leenark’s picture

Hi,

Any solution for above described issue. I am using views latest 3.5 and with latest drupal version and
am facing same issue. In my view I am showing events related to taxonomy terms and hence need argument present. for my link events/% when I select display all when no term is selected it is landing on page not found. any help please?