• Unable to create property group

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #6333  by surajaya
 
randomagenda wrote:Hi everyone,

I have finally managed to get the property groups working with the option's I wanted. :D Thank you to all who helped, I have decided to write a quick guide to how I achieved this for anyone who may come across the same issue/s.

1) If you have already created a property group you CANNOT modify it, so if you are having problems start from scratch.

2) When adding the PropertyGroups.xml finle I still got the error message 'Missing = in namespace decl. (CustomNodes.cnd, line 1)' however the property groups seem to work perfectly. the error message is not important (as far as I can see)

3) In the main directory of your OKM installation you should find PropertyGoups.cnd and PropertyGoups.xml, I modified these files and then added them through the administrator console.

4) Make sure your files are 100% correct, no Capital letters or or missing characters. If you get it wrong you'll probably have to start all over again with a new installation!

5) If you are having difficulty check you can use the demo PropertyGroups files to create your property groups, they can be found here: http://wiki.openkm.com/index.php/Proper ... definition

Below I have included the actual working PropertyGroups files I have used to get the options working as I needed.
DocType-1.zip

Hope this helps anyone having the same trouble, and also a BIG thank you to all who gave advice.

Random Agenda
I've followed your step (I even use your attached file), but got the error "Missing = in namespace decl." and I still can't use property groups (the buttons is disabled / not active) :?: . Any idea on what's wrong with my openkm ?
 #6595  by arjfaye06
 
Hi, I've been also followed the procedures and the same problem, occurred. We are still waiting for your opinion and help, guys. Hope we can be fixed it sooner or later.
 #6613  by jllort
 
Put here your .cnd and xml files and we'll take a look on these
 #6800  by randomagenda
 
Hi,

I have just followed my own instructions and I cannot get it to work either....

I have managed to modify the PropertyGroups files in the OpenKM root folder to add property groups into the system.

however after spending lots of time looking into property groups I have managed to use the keywords function to do what I needed. this seem much more stable and with a little planning can work just aswell.
 #6805  by jllort
 
Better than modifying could be add new, and test always in development environment before adding.

Because if you've registeres some one, you can not delete the property and could be a problem during registering metadata. Sincerally there's no mistery on metadata.
 #11554  by Alexires
 
Hey guys, sorry for the blatant necro. I'm having some issues in implementing a property group. The error is
Code: Select all
The content of element type "select" is incomplete, it must match "(option+,validator*)"
Now, I think I don't have the proper code for the validator part. I have the options in for the select, but I have no idea what and where to put the validator part. Below is my .xml code.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.0//EN"
                                 "http://www.openkm.com/dtd/property-groups-2.0.dtd">
<property-groups>
  <property-group label="Book" name="okg:book">
    <input label="Title" type="text" name="okp:book.title"/>
    <input label="Author(s)" type="text" name="okp:book.author"/>
    <input label="Publisher" type="text" name="okp:book.publisher"/>
    <input label="ISBN" type="text" name="okp:book.isbn" />
    <input label="Language" type="text" name="okp:book.language"/>
    <checkbox label="Sorted?" name="okp:book.sorted"/>
    <textarea label="Description" name="okp:book.description"/>
  </property-group>

<property-group label="Article" name="okg:article">
    <input label="Title" type="text" name="okp:article.title"/>
    <input label="Author(s)" type="text" name="okp:article.author"/>
    <input label="Journal" type="text" name="okp:article.journal"/>
    <input label="Volume No." type="text" name="okp:article.volume" />
    <input label="Issue No." type="text" name="okp:article.issue" />
    <input label="Year of Publication (yyyy)" type="text" name="okp:article.pubyear" />
    <input label="Language" type="text" name="okp:article.language"/>
    <checkbox label="Sorted?" name="okp:article.sorted"/>
    <textarea label="Description" name="okp:article.description"/>
  </property-group>

<property-group label="Video" name="okg:video">
    <input label="Title" type="text" name="okp:video.title"/>
    <input label="Author(s)" type="text" name="okp:video.author"/>
    <select label="Type" type="multiple" name="okp:video.type"/>
	<option label="Documentary" value="documentary" />
	<option label="Film" value="film" />
	<option label="TV Show" value="tvshow" />
	<option label="Experimentation" value="experimentation" />
    </select>
    <input label="Publisher" type="text" name="okp:video.publisher" />
    <input label="Language" type="text" name="okp:video.language"/>
    <checkbox label="Sorted?" name="okp:video.sorted"/>
    <textarea label="Description" name="okp:video.description"/>
  </property-group>

  <property-group label="Write Up/Report" name="okg:report">
    <input label="Title" type="text" name="okp:report.title"/>
    <input label="Author(s)" type="text" name="okp:report.author"/>
    <input label="Language" type="text" name="okp:report.language"/>
    <checkbox label="Sorted?" name="okp:report.sorted"/>
    <textarea label="Description" name="okp:report.description"/>
  </property-group>
</property-groups>
I'm sure it is just something small that I have overlooked or something like that. I'm running the latest version of OpenKM (downloaded and install just a few days ago) on Ubuntu 11.04.
 #11566  by jllort
 
see the error:
Code: Select all
The following nodetype change contains non-trivial changes.
You've yet registered this property group and now try making some changes, like for example delete some property, that's not allowed ! for repository historic consistence, you can add more properties and change types, but not remove yet registered. If you're on a non production environment, simply delete folder repository ( will delete all repository information ) and start with new clean, there're you can continue making tests. If you're on a production environment then you're on a problem.
 #11574  by pavila
 
Alexires wrote:Hey guys, sorry for the blatant necro. I'm having some issues in implementing a property group. The error is
Code: Select all
The content of element type "select" is incomplete, it must match "(option+,validator*)"
According to your XML, the tag is closed
Code: Select all
<select label="Type" type="multiple" name="okp:video.type"/>
Should be changed to:
Code: Select all
<select label="Type" type="multiple" name="okp:video.type">
Note de "/".

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.