| Message: 90277 |
 |
BY: Admin Admin (kimberlygriggs) DATE: 2009-09-14 22:45 SUBJECT: RE: Related subjects per Guide Hi Ian,
I assume you will need to write an sql query if this is in a Drupal view. If so then ...
Guides have many subjects through the guides_subjects table (a join table).
You would query the guides_subjects table using the guides id to find all the subject ids. You would then use that list of subject ids to query the subjects table for the subject code or subject value.
If you want to do this in rails in would be pretty straight forward by mimicking how pages are related to guides. | |