📖 Documentation

News Links and icons

📅 Last updated: 11 Jun 2007
I decided to try out node reference as a substitute for the categories setup I have for News Events and News items. Node reference is useful because it helps separate entries of different types when entering and when displaying data. I then used the computed field cck module to tell this field that "whenever the event node has an associted album, display a camera icon in the teaser" This works partially. The icon displays, but the condition dos not work very well. Here are my code and links: Computed code: if ($node->field_album_link[0]['value'] != '') $node_field[0]['value'] = 'cameracanonicon.jpg'; Display format: $display = 'Image removed.'; node edit: http://ismaili.nixx.ca/drupal5/node/252/edit news events: http://ismaili.nixx.ca/drupal5/newsevents news event edit: http://ismaili.nixx.ca/drupal5/admin/content/types/news-event/fields

🏷️ Topics

CHATBOT DISABLED END #}