Page 1 of 1

XML Conditional Statement for Property Groups

PostPosted:Tue Oct 11, 2016 3:00 am
by cloudydwayne
Hello there,

I'm trying to implement an if else statement for my metadata. But I'm having an error: Element type "if" must be declared.
How can I declare an element type?

Re: XML Conditional Statement for Property Groups

PostPosted:Wed Oct 12, 2016 10:01 am
by jllort
Obviously will not going right. The tags available into the xml are based on rules set in the file http://www.openkm.com/dtd/property-groups-2.3.dtd ( any new tag there should be declared into new dtd description file and implemented into the openkm core to take effect.

In professional version we have parent-child feature between selects ( select parent value take effects among select child value ). The feature you propose for select input is not available neither profesional or community version and might be implemented ( I'm not sure if the place for setting this kind of logic is the xml file or extra layer in core for filtering fields, anyway seems be more near UI layer ).

Why do you need it, can you describe the scenario, because probably could solve it, doing with external form connected to openkm across api and build there your own logic.

Re: XML Conditional Statement for Property Groups

PostPosted:Wed Oct 19, 2016 12:53 am
by cloudydwayne
Hello,

I wanna try if openkm can support an if...else statement that executes some code if a condition is true and another code if that condition is false.

Re: XML Conditional Statement for Property Groups

PostPosted:Thu Oct 20, 2016 8:13 pm
by jllort
Not possible without modifying the actual logic in the source code.