Link Value Filtering with more than 1 values

Matrix Version:5.3.2.1

Hi,

I’m wondering if it is possible to enter more than one string ( or a reqex) for a link value when using Link Value Filtering?

For example, if I have photos with link value of portrait or Landscape or Aerial or Panoramic and I want link value Filtering to be either Landscape or Panoramic. Is this possible?

Is there some other way of creating a listing based on link values that could achieve the desired outcome?

Thanks Georgina.

Have you tried using a search asset? Your link values would be a dropdown?
So your filter would look something like:
?linkval=landscape
?linkval=panoramic
?linval=aerial etc

No I have not tried that. I was unsure if search pages could match on link values.

I’ve read that they are slow, is this the case?

This is usually done with metadata fields instead of link values, that’s how the search page can filter on multiple fields. What’s the reason for using link values?

The assets are already using link values to denote a parent/child relationship, and the link value itself describes what kind of parent/child relationship it is.

So, what I am wanting to do is list children with a particular relationship that is already described via the link value.

Hmm, in that case I don’t know if you can filter it on multiple values. Maybe try separating each value with a pipe?

Landscape|Panoramic

Or even separate them with a space or a comma, or even semi-colon?

Alternative is to use the JS API and produce the list using a JS based solution.

Hi

You could try something similar to what Bart suggested for searching metadata values that are not empty (
Matching stored search on any non-empty metadata value).

Create a new metadata field and pull the link values into the default value for this:

%asset_linking_info^as_xml^xpath:,://link_value%

The delimeter (",") could be whatever suits.

Then you should be able to search on that metadata field, or use a listing with conditions etc to get what you need.

Thanks
Peter

1 Like