adding a link to the node

enboig - May 12, 2008 - 09:05
Project:Ajax Table
Version:5.x-1.2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have mades a table showing nid and title, and I want to allow a user to go to the full node page when clicking over the title; how is this achieved? I was thinking of making this using the callback function and pass it the node nid, but I don't really know.

Thanks

#1

enboig - May 12, 2008 - 09:58

I solved this; I used this callback:

<?php
function ajaxtable_link_al_node ($col,$value,$row) {
  return
l($value,"node/".$row['nid']);
}
?>

If there is a "better" way of doing this it is wellcome.

#2

enboig - May 21, 2008 - 08:13

Sorry, I posted a comment here which was for http://drupal.org/node/257481

 
 

Drupal is a registered trademark of Dries Buytaert.