Jump to content

cck field made into link


Petrus

Recommended Posts

Hello,

 

I have this code which comes is off the body template off a content type by content template.

 

<div class="field-item"><?php print $node->field_naam[0]['view'] ?></div>

 

I want to edit it and make it a link like:

 

<div class="field-item"><a href=\"http://example.com/<?php print $node->field_naam[0]['view'] ?>"</a><?php print $node->field_naam[0]['view'] ?></a></div>

 

This gives a parse error since I am learning.

Link to comment
https://forums.phpfreaks.com/topic/220531-cck-field-made-into-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.