CHAPTER 2 CONFIGURING (Web hosting faq) DRUPAL Using the AND
CHAPTER 2 CONFIGURING DRUPAL Using the AND and OR Operators The simple syntax used in the previous example can be enhanced by asking for more than one term. If you want to see a list of all the content that is classified with both tids 4 and 5, here is what the path would look like: taxonomy/term/4,5 Notice that the comma (,) is used to separate the two tids. The comma functions as the AND operator; only content with classified with tid 4 AND tid 5 will be shown. If you would like to see content with tid 4 OR tid 5, use the plus (+) operator instead: taxonomy/term/4+5 The list of terms can be arbitrarily long, but only one of the two operators should be used; don t mix the AND operator with the OR operator: taxonomy/term/4,6,7,14,33 taxonomy/term/5+3+2+56+122 Indicating Depth If your taxonomy vocabulary represents a hierarchy, you can construct paths to return just a segment of the hierarchy. Consider the following hierarchy: term 1 term 2 term 3 term 4 term 5 term 6 You already know what the path should look like to get a list of content for tid 1: taxonomy/term/1 This is a shorthand for the longer syntax that follows this form: taxonomy/term/tid/depth Depth is the number of levels in the hierarchy below the tid that should be returned, and it defaults to zero (0). So these two paths are equivalent: taxonomy/term/1 taxonomy/term/1/0 Now watch what happens when you ask for a depth of 1: taxonomy/term/1/1 You now get a list that includes content categorized with tids 1, 2, and 6, as these are the direct children of tid 1. Increase the depth to 2, and the list will grow to include tids 3 and 4. A depth of 3 or greater will produce the entire hierarchy. Can you predict which terms this path will produce? taxonomy/term/4+6/1
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision mysql hosting services