how do you reference a cck field specific to current OG

Created on 11 March 2011, almost 14 years ago
Updated 28 October 2024, about 2 months ago

I would like to be able to link to the specific US State document based on the organic group that has that US State set up as a cck field.

I have the following code and it displays nothing:

  if ($node->field_state[0]['value'] == "KS") {
  print "<li><a href='hr-forms/supervisors/new_hire_packet_ks.pdf'>New hire packet</a></li>";  }
  if ($node->field_state[0]['value'] == "MO") {
  print "<li><a href='hr-forms/supervisors/new_hire_packet_mo.pdf'>New hire packet</a></li>";  }

Does anyone know how to properly reference my field_state which is created on my organic group nodes?

Thank you!

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

og.module

Created by

πŸ‡ΊπŸ‡ΈUnited States astanley86

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024