I'm creating an integrated FAQ system on our university library web site: I want authors to be able to select related nodes in the edit view of a node. I've added two custom fields to the Page type.
1) Alternate Link Title: A question that points to the content of a node (e.g. for Directions to the Library, the field_altlinktitle would be How do I get to the Library?). The field is not required.
2) Help Links: This is a nodereference-based select list populated by a View that aggregates available altlinktitle values into an alpha-sorted list. Authors can select multiple values to associate pages as support items for a given node.
My problem: In Edit mode, the Help Links displays the altlinktitle values just fine. However, in the regular (anonymous user) display, the [title] values, rather than the field_altlinktitle values, are used for the link text.
I've themed content-field.tpl.php in order to display the selected links in a box. The php that displays the selected nodes is more or less the default --
if ($label_display == 'inline') {
print t($label) : }
print $item['view']
I assume I have to alter the value of 'view' to print the field_altlinktitle_value rather than [title]. Can someone tell me how to do this?
Comments
Comment #1
ealtman commentedAnybody?