Views do not show up

Zoologico - October 16, 2007 - 02:05
Project:Viewfield
Version:5.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have created a view. I added the field to my node. I edited my node and chose one of the views. The view still does not show up. I even tried contemplate to see what the field would be, but it doesn't even have a field that shows up in contemplate.

Could someone outline briefly a step by step on how to get this module work the intended way?

Thanks.

#1

Lowell - November 2, 2007 - 05:04

I am a new user myself, but since no-one else has responded I will give this a try...

the view field is attached after contemplate does its work
you didn't mention anything about arguments. I think you need to specify an argument for the view.
At least make sure your view works on its own first.

gluck

#2

Darren Oh - December 19, 2007 - 16:17
Status:active» postponed (maintainer needs more info)

I just found that nothing will show up if a view uses Node ID as an argument. Is this what others are experiencing?

#3

Zoologico - December 20, 2007 - 14:22

I don't think that was it since I did check if the View worked on its own, but thanks for the tip.

#4

Darren Oh - December 20, 2007 - 14:52

Even if a view works on its own, it will not show in a view field if the node ID is used as an argument.

#5

jjv - January 4, 2008 - 20:04

That's the behavior I am getting trying to do a view that shows nodereferenced items. If I use %nid, the view fails in my CCK node. If I call it the view directly from a url, it works.

#6

jjv - January 4, 2008 - 20:49

As a follow-up to this...

If I make my argument handling code in the view module this:

$args[0] = str_replace (" ", "", arg(1));

The viewfield works in my CCK node.

I am worried about using that in 15 places though and having it break when 1.3 comes out. Is 1.3 coming out any time soon, and is it expect to fix these argument issues? This is hard to troubleshoot, and feels brittle to maintain.

#7

Sterlingwh - January 8, 2008 - 00:11
Component:User interface» Code

I'm getting a similar issue, using the page url with %nid argument works, as does using the insertview module with %nid in the body field, but when using the viewfield with %nid I'm getting reverse results of what the view should.

This seems to be related only to %nid because I'm using another viewfield in the same content type but it is filtered by a taxonomy term argument and is displaying correctly.

#8

Darren Oh - January 8, 2008 - 03:03
Status:postponed (maintainer needs more info)» reviewed & tested by the community

Here's my patch.

AttachmentSize
viewfield.module-183761.patch 2.4 KB

#9

eriksen.costa - February 4, 2008 - 00:36
Status:reviewed & tested by the community» fixed

The viewfield.module CVS revision 1.3.2.13 has this bug fixed. Update your module to DRUPAL-5 revision to fix this problem.

#10

Anonymous (not verified) - February 18, 2008 - 00:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.