Taxonomy provides for the categorization of content on a site. Groups of terms are created (vocabularies) and these terms can be applied to nodes when creating/editing.<div><br></div><div>Term names are available as tokens when determining pathauto settings, and taxonomy terms provide default views for all nodes categorized with the respective term. The default taxonomy term view may be overridden, see taxonomy_term at admin/build/views.</div>
<div><br></div><div>Try creating a vocab for region and "North America," etc as terms. Views of nodes categorized with these regions will exist by default -- you should see links at the bottom of each node (depending on your theme). Then use the pathauto settings with the term tokens to rewrite the node URLs.<br>
<br><br><div class="gmail_quote">On Wed, Jan 5, 2011 at 8:42 AM, Andrew Manson <span dir="ltr"><<a href="mailto:andrewm@graticule.com">andrewm@graticule.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
field_region is just a text field. It has a fixed number of possible
values (input as a drop-down box). <br>
<br>
You mention that taxonomy might have a better solution for this
problem, I am not really that familiar with taxonomy so is there any
chance you could describe the "simpler solution" you mentioned. <br>
<br>
Thank you. <br><font color="#888888">
- A <br></font><div><div></div><div class="h5">
<br>
On 01/04/2011 04:54 PM, Carl Wiedemann wrote:
<blockquote type="cite">What type of field is field_region? You may have
better luck if field_region is a nodereference field, where the
regions are nodes and the product nodes refer to the region nodes.
Views attach <a href="http://drupal.org/project/views_attach" target="_blank">http://drupal.org/project/views_attach</a>
may be of use to show products for a given region or vice versa.
<div>
<br>
</div>
<div>A simpler solution could be to use taxonomy instead.<br>
<div><br>
<div class="gmail_quote">On Tue, Jan 4, 2011 at 10:44 AM,
Andrew Manson <span dir="ltr"><<a href="mailto:andrewm@graticule.com" target="_blank">andrewm@graticule.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi all,<br>
<br>
I have already asked this "quick" question in the IRC but
even while I<br>
was typing it I felt it was more mailing list material...
Right here goes:<br>
<br>
I have some path aliases set up using PathAuto where the
url will be of<br>
the form: data_products/[field_region-raw]/[title-raw] .
This comes out<br>
in the format data_products/namerica/product1 when viewing
the node. The<br>
data_products/ url is actually a view and the
[field_region-raw] acts as<br>
a view argument so going to data_products/namerica would
so all products<br>
in north america.<br>
<br>
What I would to have is a Menu Item "North America" that
will be<br>
highlighted when you go to the url data_products/namerica/
and the url<br>
data_products/namerica/product1 .<br>
<br>
I have been looking around Google quite a bit but I can't
find anything<br>
that meets my needs but I think that I just have a lack of
understanding<br>
and don't really know what I should be looking for. Can
anyone point me<br>
in the right direction?<br>
<br>
Regards,<br>
- Andrew<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
</font></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div></div></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>