Active
Project:
Views Custom Field
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2009 at 07:51 UTC
Updated:
6 Aug 2010 at 21:39 UTC
is missing, would be a useful addition to a great module!
Comments
Comment #1
apasaja commentedIm looking for this too...
I use this codes:
...but the
<?php print $data->node_link ?>is not works...I have no idea how to link to the node.. and I need it open in new window
Comment #2
apasaja commentedwhy the title changed? try to change it back..
Comment #3
Igal commentedTry following:
Add Node: Nid before custom field and exclude it from display.
Use this code in php customfield
Comment #4
apasaja commentedthanks for the reply..
but the
target="_blank"not works. Its open in same windowWhen using only
<?php print '/node/' . $data->nid ?>, it will show the same resultComment #5
ain commentedThis is not a very feasible solution SEO-wise. Reference to node ID isn't semantic. What's needed is he Pathauto reference.
Comment #6
matebublik commentedHello!
Try the following:
print drupal_get_path_alias("node/" .$data->nid) ;Welcome from Hungary! :)
Comment #7
ain commentedYes, deployed that myself already, but forgot to comment here about it. Thanks for the snippet Mate!
Greets from Estonia!
Comment #8
gpk commentedAlthough #6 is a good workaround, the original feature request was for an option to be available from within the Views UI, much like for other Views fields.
Comment #9
ginga8 commentedI fixed it on my own. just a small change. Here is my outcome.
I found this helpful
Comment #10
gpk commentedComment #11
charlie-s commentedEXACTLY what I needed. I knew how to do the nid but it was worthless as all other references are to the path alias.
Thanks.