Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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.


Thread View

Thread Author Date
Related subjects per GuideIan Chan2009-09-14 19:23
      RE: Related subjects per GuideAdmin Admin2009-09-14 22:45
            RE: Related subjects per GuideIan Chan2009-09-14 23:19
                  RE: Related subjects per GuideAdmin Admin2009-09-14 23:29
                        RE: Related subjects per GuideIan Chan2009-09-17 21:05
                              RE: Related subjects per GuideAdmin Admin2009-09-27 22:53

Post a followup to this message