Petrus Posted December 3, 2010 Share Posted December 3, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.