Help with creating a view to show a node.

Hitby - March 28, 2008 - 18:05
Project:Views
Version:5.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm trying to setup a view that will display a nodes content dependent on the URL. Eventually I want to achieve this with fully dynamic URLs using mutiple arguments like:

$arg/$arg1/$arg2
which would change to
taxonomy/nodetype/nid

First though, I'm trying to get it working using only one argument, the nid. taxonomy/nodetype is already set up as a view and is working correctly to display a list of matching nodes. I wish to be able to click on the title of a node in that view and be redirected to taxonomy/nodetype/nid rather than node/nid

My 'content' view is set up like so
name: content
Provide page view: checked
URL: biology/images/$arg
ie. taxonomyterm/nodetype/nid

view type: list view

Fields:
Node title
3 cck text fields, one cck image field and one cck link field

Arguments:

Node ID
return page not found
Option: equal

Argument code is empty.

Filers:
Taxonomy term is All Of Biology

Node Type: is one of Image

So, I'd imagine that when I visited biology/images/18

where 18 is a node that is both an image and in taxonomy biology that the page would appear containing the node.

I used the theme wizard to create the code for template.php and view-list-content.tpl.php

When I actually visit the page it's just blank. Could you please tell me where I'm going wrong, this is the final piece of the puzzle and when it falls into place I'll be able to recommend Drupal to my employer.

#1

palazis - March 28, 2008 - 22:04

biology/images/$arg is NOT allowed.
i have sent you an email about this

#2

Hitby - March 29, 2008 - 08:26

thanks Pirandelo, All I'm trying to achieve is having the node page at referringsection/node rather than siteroot/node. This should be such a simple thing and it's incredibly important to my site for it to work like this.

#3

Hitby - April 2, 2008 - 09:11

This issue was solved.
With the help of rizqi this issue has been solved.

Solution at http://drupal.org/node/241267

#4

sun - September 20, 2008 - 17:49
Status:active» fixed

#5

Anonymous (not verified) - October 4, 2008 - 17:51
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.