Condition using document path

Benutzeravatar
ounos
Member
Beiträge: 44
Registriert: Mi 6. Aug 2014, 11:09

Condition using document path

Beitragvon ounos » Di 19. Jul 2016, 11:04

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.

Benutzeravatar
Carrear
webEdition Partner
webEdition Partner
Beiträge: 646
Registriert: Do 17. Jan 2013, 03:02
Wohnort: Hannover
Kontaktdaten:

Re: Condition using document path

Beitragvon Carrear » Di 19. Jul 2016, 15:31

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".

Benutzeravatar
ounos
Member
Beiträge: 44
Registriert: Mi 6. Aug 2014, 11:09

Re: Condition using document path

Beitragvon ounos » Di 19. Jul 2016, 16:05

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.

mokraemer
Senior Member
Beiträge: 3619
Registriert: So 8. Aug 2010, 01:23
Wohnort: Mainz

Re: Condition using document path

Beitragvon mokraemer » Fr 22. Jul 2016, 14:59

I think it should work using WE_PATH as field name.
webEdition-Kern-Entwickler


Zurück zu „webEdition Basic Version“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 5 Gäste