[support] Matching a term if it belongs to another term (views)
Luke
drupal at lists.tacticus.com
Wed Aug 3 03:42:22 UTC 2011
It does, thanks.
and you're welcome on the taxonomy views integrator module.:)
I am still thinking that Nancy's solution might be better for this sort of
thing though, at least to the person who maintains the site after the
original designer. Consider, that with a view attached view, it is pretty
easy to track down how what is being done is being done. This module adds
a layer of simplicity, but in doing that, it makes the workflow more murky
I think.
At least, that is my impression.
Luke
On Tue, 2 Aug 2011, Vaibhav Jain wrote:
> Luke,
>
> If you are adding an argument in views and want to check if its the parent
> if TID 3, you can do it this way.
> Add the argument as term name or TID, then in the validator, you can write
> php code to check that.
> use function taxonomy_get_parents to get the parent of that TID.
>
> Hope this helps.
>
> On Tue, Aug 2, 2011 at 1:44 PM, Luke <drupal at lists.tacticus.com> wrote:
> Another views question:
>
> It would be convenient, if I could have a view match on a term
> argument,
> if the referenced TID was a child of another term.
>
> So if TIDs 80 through 200 were children of TID 3, rather than
> coding for
> the range (which might get out of range TIDs added to it later),
> is there
> some way I could have the view check whether the passed argument
> of TID
> 120, is in fact a child term of TID 3?
>
> Hopefully that's not stupidly basic.
>
> Luke
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
>
>
>
> --
> Regards,
> Vaibhav Jain
>
>
More information about the support
mailing list