Views 2.x-dev

This is driving me crazy... Everything seems to be set allright and in the views UI it also works as its supposed to work. But when i try it on the website it just wont show.

What i want to achieve:
- View page diary/%
- argument is user:uid
-- if argument is not present, provide fault argument: User ID from logged in user
- validator = user
-- type is Allow both numeric UIDs and string usernames
--- action to take if argument does not validate show 404

Ok now what does not work is following. Viewing the page diary without a argument shows a 404... What it should do is provide a argument with the default uid from the logedin user and show the nodes of that user. But it just wont work. Again in the UI it works as it should it shows the nodes posted by the logedin user (admin) but on the website it shows a 404

Anyone got any ideas what this could be ???

Comments

Michsk’s picture

if setting action to take if argument is not present = show empty text
and for validator options basic validation and action to take if not validate = show empty text

still results in a 404

jon nunan’s picture

- View page diary/%

You only need the '/%' if the path is going to have something after it, like 'diary/%/feed'. I think this is what's causing you problems.

Change it to just

diary
Michsk’s picture

pff thanks man that did it. i have worked till 05 am to fix this. THANKS