I’ve created a new ‘jobs’ content type on my Drupal 6 site, to enable administrator to post new jobs.
The content type has a hidden field called job_type, which can have 1 of 4 possible values: Instructor, Lecturer, Manager or Support.
How do I configure Drupal to dynamically display a list of files download based on the value of the job_type field?
The required files are already on the server.
For example:
if job_type = Manager, show: file1.pdf, file2.pdf
if job_type = Support, show: file1.pdf, file3.pdf, file5.pdf
if job_type = Lecturer, show: file1.pdf, file4.pdf
Thanks
Look into the Computed Field module.
something like
Then configure the display to print links to the files.
There are a lot of code snippets in the documentation at http://drupal.org/node/126522