INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: cornishpirate on May 13, 2006, 04:42:50 am

Title: Expressions
Post by: cornishpirate on May 13, 2006, 04:42:50 am
I would like to add a view with content limited to media contained in folders with the substring "- Dutch" in the outer folder name.

Is this possible?
Title: Re: Expressions
Post by: marko on May 13, 2006, 04:48:09 am
in step 4 of the add/edit view scheme dialogue, add the following:

[filename (path)]="- Dutch"

Title: Re: Expressions
Post by: cornishpirate on May 13, 2006, 05:47:07 am
I have outer folders of the form F:\music\euro - Dutch

and 1 folder per album beneath that and those are the ones I need to select somehow.

So I need to find a string within the folder name and then take all the child folders beneath them.
Title: Re: Expressions
Post by: marko on May 13, 2006, 05:56:47 am
[filename (path)]="- Dutch"

would list every file from every album folder beneath F:\music\euro - Dutch

Could you give a little more detail about what it is you are trying to achieve?

Title: Re: Expressions
Post by: cornishpirate on May 13, 2006, 06:06:09 am
Marko, thanks for the help.

I'm trying to achieve what you said should happen with that expression, but it doesn't.

Surely there should be an operator meaning 'contains' rather than =
Title: Re: Expressions
Post by: cornishpirate on May 13, 2006, 06:41:39 am
OK, sorted it.

Just removed the quotes and got the result I need.

Awesome product.
Title: Re: Expressions
Post by: marko on May 13, 2006, 07:01:30 am
removing the quotes breaks the rule into two seperate parts.

without the quotes, you have:

[filename (path)]=- which returns all files with a hyphen in the folder path

followed by a search of every field that is searched by default for the term, Dutch.

have a look in the help file for search rules. it's all been taken care of. open help>expand 'smartlists'>Smartlist and Search - Rules and Modifiers

="-- --"   =contains
="-- --]   =ends with
=[-- --"   =begins with
=[-- --]   =exact match

It would help to understand what's happening if you paste the entire search string you are using here, as the order in which search rules are placed is more than a little bit important.

-marko.