By Breen on
I'm trying to use CCK to put a link into the title field of my page. I want it to add a link if there is a value in the url field and if there isn't use the node title.
I've found this code here that sort of works but I'm fairly new to PHP:
if (content_format('field_url', $field_url[0])) print content_format('field_url', $field_url[0]); else print $node_url; ">
print $title;
Found at: http://drupal.org/node/245942
Comments
Oops made a mistake in
Oops made a mistake in pasting the code:
Subscribing, please explain
Subscribing, please explain how to make the node-title containing html like href.
greetings,
Martijn