[support] Pathauto, Menu Trails, Views and the active menu item

Carl Wiedemann carl.wiedemann at gmail.com
Tue Jan 4 16:54:19 UTC 2011


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
http://drupal.org/project/views_attach may be of use to show products for a
given region or vice versa.

A simpler solution could be to use taxonomy instead.

On Tue, Jan 4, 2011 at 10:44 AM, Andrew Manson <andrewm at graticule.com>wrote:

> Hi all,
>
> I have already asked this "quick" question in the IRC but even while I
> was typing it I felt it was more mailing list material... Right here goes:
>
> I have some path aliases set up using PathAuto where the url will be of
> the form: data_products/[field_region-raw]/[title-raw] . This comes out
> in the format data_products/namerica/product1 when viewing the node. The
> data_products/ url is actually a view and the [field_region-raw] acts as
> a view argument so going to data_products/namerica would so all products
> in north america.
>
> What I would to have is a Menu Item "North America" that will be
> highlighted when you go to the url data_products/namerica/ and the url
> data_products/namerica/product1 .
>
> I have been looking around Google quite a bit but I can't find anything
> that meets my needs but I think that I just have a lack of understanding
> and don't really know what I should be looking for. Can anyone point me
> in the right direction?
>
> Regards,
> - Andrew
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110104/30ac470c/attachment.html 


More information about the support mailing list