Page 3 of 3

Re: Unable to create property group

PostPosted:Mon Aug 30, 2010 2:37 am
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 ?

Re: Unable to create property group

PostPosted:Wed Sep 29, 2010 5:26 am
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.

Re: Unable to create property group

PostPosted:Wed Sep 29, 2010 6:29 pm
by jllort
Put here your .cnd and xml files and we'll take a look on these

Re: Unable to create property group

PostPosted:Wed Oct 13, 2010 4:38 pm
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.

Re: Unable to create property group

PostPosted:Thu Oct 14, 2010 6:43 am
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.

Re: Unable to create property group

PostPosted:Thu Jul 14, 2011 9:31 am
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.

Re: Unable to create property group

PostPosted:Fri Jul 15, 2011 10:38 am
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.

Re: Unable to create property group

PostPosted:Sat Jul 16, 2011 7:30 am
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 "/".

Re: Unable to create property group

PostPosted:Tue Jul 19, 2011 4:54 am
by Alexires
Excellent, works great now. Thanks for your help!