• XML Conditional Statement for Property Groups

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #42382  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?
Attachments
Here's the error.
Here's the error.
Capture2.PNG (3.82 KiB) Viewed 3152 times
Here's my syntax for the if statement.
Here's my syntax for the if statement.
Capture1.PNG (6.75 KiB) Viewed 3152 times
 #42393  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.