Link to any "node" using Drupal

I need to get better at posting on a more regular basis. Maybe if I start making a habit of it even if it's something simple. Today let's take a look at how to link to a node in Drupal that all users will have access to (even without admin. privledges)...

l(strip_tags($node->title),"node/".$node->nid);


l() is Drupal's way of making links. $node->title will be what the user sees. "node/".$node->nid is the URL for the node. That's all there is to it.
0 Responses