Seite 1 von 1

Condition using document path

Verfasst: Di 19. Jul 2016, 11:04
von ounos
Is it possible to use document's path in <we:conditionAdd/> field attribute ?

I want to achieve something like that:

Code: Alles auswählen

<we:conditionAdd field="document_path" compare="NOT LIKE" value="%/dir_to_exclude/%"/>
Thank you.

Re: Condition using document path

Verfasst: Di 19. Jul 2016, 15:31
von Carrear
Is it a folder, which is directly in the main folder? If it is, you could try to make a listdir, to write the id of every folder, but this one to an array. Than PHP implode this array with a comma as seperator and give this value to the listview as workspaceID.

EDIT: Alternatively, you could try to exclude the content of the folder, by making it "not searchable".

Re: Condition using document path

Verfasst: Di 19. Jul 2016, 16:05
von ounos
Carrear hat geschrieben:Is it a folder, which is directly in the main folder? If it is, you could try to make a listdir, to write the id of every folder, but this one to an array. Than PHP implode this array with a comma as seperator and give this value to the listview as workspaceID.

EDIT: Alternatively, you could try to exclude the content of the folder, by making it "not searchable".
Thank you for your quick reply. I guess there are some workarounds, but I still need an answer on my initial question.
If it's not possible, I will add a feature request in wE qa.

Re: Condition using document path

Verfasst: Fr 22. Jul 2016, 14:59
von mokraemer
I think it should work using WE_PATH as field name.