"Link this field to its node" field option

gpk - September 17, 2009 - 07:51
Project:Views Custom Field
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

is missing, would be a useful addition to a great module!

#1

apasaja - October 22, 2009 - 04:22
Title:"Link this field to its node" field option» Im looking for this too..
Version:6.x-1.x-dev» 6.x-1.0

Im looking for this too...

I use this codes:

<a target="_blank" href="<?php print $data->node_link ?>">
<?php print $data->node_title ?>
</a>

...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

#2

apasaja - October 22, 2009 - 04:22
Title:Im looking for this too..» "Link this field to its node" field option

why the title changed? try to change it back..

#3

Igal - October 22, 2009 - 05:50

Try following:
Add Node: Nid before custom field and exclude it from display.
Use this code in php customfield

<a target="_blank" href="<?php print '/node/' . $data->nid ?>">
<?php print $data->node_title ?>
</a>

#4

apasaja - October 22, 2009 - 07:21

thanks for the reply..

but the target="_blank" not works. Its open in same window

When using only <?php print '/node/' . $data->nid ?>, it will show the same result

 
 

Drupal is a registered trademark of Dries Buytaert.