I have created a view which uses favorite nodes: user id as an argument. I have 2 displays for the same -> block and page. The block is rendered as desired but in case of the the page view, the page is rendered without any content (not even the div classes of views). However, the preview of the page display on passing the user id (argument) displays the correct results in the view page. Even weird, it does get the title from view (I have given a "%1 ....." type of title for the argument) and the title is correct.

The page is rendered but without content. Any insight?

CommentFileSizeAuthor
#5 viewCalendar.txt7.64 KBanou

Comments

dawehner’s picture

could you please give more instructions!

for example export your view, a link to your site etc.

the only thing i can say here is "it should work"

mukesh.agarwal17’s picture

Thanks for the quick response, but I am working on an internal project, where I cannot really show you an instance, nor can i send u the exported view... :(

I am not sure of the problem, coz the view and the query formed are absolutely correct.. Even on the page's view the title is coming from the view. I know I am saying the same things again and again... but I am stuck with this and I have still not found the way

Some details... (for the page view, coz block is working)

Basic Settings

Style : Unformatted
Row Style : Node (only teaser)
Use AJAX: Yes
Use pager: Yes
Items per page: 10
Distinct: No
Access: Unrestricted
Exposed form in block: No
Header: None
Footer: None
Empty text: PHP code (Code is quite simple and I am sure its not the problem coz I am testing on a page which is not empty and anyways the empty text is not showing)
Theme: Information

Arguments
Favorite Nodes: User ID

Sort criteria
Favorite Nodes: Time Added desc

Filters
Node: Type = Ad

Path: user/%/favorites
Menu: No Menu

Let me know if the information can help decide something...

mukesh.agarwal17’s picture

FYI

I am overriding user page using panels with url as user/% I have done this before as well.. Could this overwrite another page like 'user/%/favorites'...

dawehner’s picture

first, i cannot understand why you don't export the view...

second, i think this could be also a bug of the favourite nodes views integration

so i suggest you to create a testing site just using views and favourite nodes and find out whether this is a bug of the favourite nodes module or not

anou’s picture

StatusFileSize
new7.64 KB

I have the same problem. Almost... Something with path aliases, i think.
If i put the system path in my view's page display like "node/36", or the url alias like "calendar", the preview works just fine but in the second case nothing happen on the page site. Works only with the system path...
Strange isn't ?

Here a link to my view code if it can be helpful to help me ;-)
http://anou.free.fr/CODE/viewCalendar.txt

anou’s picture

Found a conflict between url aliases of my page "calendar" and my view's page display path. Can't work together if it the same path. Got reed of the content and the view works fine !
I've to find something else to show my picture's content ;-)
See ya

Anonymous’s picture

Version: 6.x-2.4 » 6.x-2.6

Same symptom, same 'solution'.
I changed the name of my Page View from 'news' to 'newslisting' and it displayed.
I'm not sure this is a bug, but I don't know what other view it was conflicting with.

petednz’s picture

@anou - thanks for the path suggestion - just fixed my problem where an early view was already using the /calendar path - renamed the old one and all good

merlinofchaos’s picture

Status: Active » Fixed

So sounds like not a Views bug after all, just a conflict with paths + aliases.

Status: Fixed » Closed (fixed)

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