Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.9
Component:
node data
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2010 at 12:21 UTC
Updated:
5 Aug 2010 at 19:00 UTC
Hi - I just wondered if I'm missing something here.
When I use node.get from Services, one property returned is the path of the node (node.path).
I wish to make a View which accepts a path as an argument then returns the node with that path. I seem to be prevented from doing this because "path" is listed as a potential argument in Views.
Is there a reason why "path" is not available?
Thanks.
Comments
Comment #1
dawehnerYou would have to write a custom argument handler. Set this to feature request.
Comment #2
merlinofchaos commented'path' isn't really a piece of data on a node that you can utilized. Plus, arguments can't easily contain slashes. I'm not sure there's anyway you can do this.
Comment #3
gavin_o commentedMany thanks to both of you. I'm sure you are right that the path is not really a piece of data on the node - I was surprised it was returned by Services as a property of the node.
I have no idea where to start with a custom argument handler I'm afraid, so my solution to this for now was to use CCK to define another field on the node type select that as the argument for the view, rather than using the path. That CCK field ("id") ended up being the same as the path almost all the time, and needed manually setting on each node, but the solution works.
Comment #4
dawehnerSo this is fixed