FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Tracking document life and version (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Tracking document life and version
#1952
alloydog (User)
Senior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Re:Tracking document life and version 1 Year, 1 Month ago Karma: 0  
Thanks, I see it now.

However, I added the new details to the files, but must have done something wrong, as I don't get my new option.

Here are the files, with my additions in red: *I have added a space between colons (: ) and s to stop the smilies...

my_groups.cnd:
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>

[okg:tecnologia] mixin
- okp:tecnologia.tipo (string) = '' multiple autocreated
- okp:tecnologia.lenguaje (string) = '' autocreated
- okp:tecnologia.descripcion (string) = '' autocreated
- okp:tecnologia.comentario (string) = '' autocreated
- okp:tecnologia.versioning (string) = '' multiple autocreated

[okg:consultoria] mixin
- okp:consultoria.tipo (string) = '' autocreated
- okp:consultoria.comentario (string) = '' autocreated

[okg: status] mixin
- okp: status.tipo (string) = '' autocreated
- okp: status.comentario (string) = '' autocreated


PropertyGroupBundle.properties:
okg\:tecnologia=Tecnología
okp\:tecnologia.tipo=Tipo
okp\:tecnologia.tipo.uno=Tipo Uno
okp\:tecnologia.tipo.dos=Tipo Dos
okp\:tecnologia.tipo.tres=Tipo Tres
okp\:tecnologia.lenguaje=Lenguaje
okp\:tecnologia.lenguaje.java=Java
okp\:tecnologia.lenguaje.c=C
okp\:tecnologia.lenguaje.c++=C++
okp\:tecnologia.lenguaje.python=Python
okp\:tecnologia.descripcion=Descripción
okp\:tecnologia.comentario=Comentario
okg\:consultoria=Consultoría
okp\:consultoria.tipo=Tipo
okp\:consultoria.tipo.uno=Tipo Uno
okp\:consultoria.tipo.dos=Tipo Dos
okp\:consultoria.tipo.tres=Tipo Tres
okp\:consultoria.comentario=Comentario
okg\: status=Status
okp\: status.tipo=Status
okp\: status.tipo.draft=Status Draft
okp\: status.tipo.peerreviewed=Status Peer reviewed
okp\: status.tipo.approved=Status Approved
okp\: status.comentario=Comments


PropertyGroupValues.properties:
okp\:tecnologia.tipo=4,uno,dos,tres
okp\:tecnologia.lenguaje=3,java,c,c#,c++,python
okp\:tecnologia.descripcion=1
okp\:tecnologia.comentario=2
okp\:consultoria.tipo=3,uno,dos,tres
okp\:consultoria.comentario=2
okp\: status.tipo=4,draft,peerreviewed,apporved
okp\: status.comentario=2


When I click New property, I still only get the options tecnologia and consultoria. I do shutdown and restart OpenKM between changes.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1954
pavila (Admin)
Admin
Posts: 564
graphgraph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:Tracking document life and version 1 Year, 1 Month ago Karma: 9  
There are spaces between the okp\: and the rest of each line. The same thing with okg\:, okg: and okp:
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
#1955
pavila (Admin)
Admin
Posts: 564
graphgraph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:Tracking document life and version 1 Year, 1 Month ago Karma: 9  
By the way, you have to re-register the properties from the administrator backoffice.
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
#1956
alloydog (User)
Senior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Re:Tracking document life and version 1 Year, 1 Month ago Karma: 0  
pavila wrote:
QUOTE:
By the way, you have to re-register the properties from the administrator backoffice.


ooops, forgot that bit...


It works now. Thanks!
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1961
alloydog (User)
Senior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Re:Tracking document life and version 1 Year, 1 Month ago Karma: 0  
Works a treat!

Here's a recap for anyone like me who easily forgets things...

1. Add the new property details to the following files:

my_groups.cnd
PropertyGroupBundle.properties
PropertyGroupValues.properties

Here are my examples:
my_groups.cnd:
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>

[okg: status] mixin
okp: status.tipo (string) = '' autocreated
okp: status.comentario (string) = '' autocreated


This file creates the entries for type (tipo) and a comments (comentario) box.

PropertyGroupValues.properties:
okp\: status.tipo=3,draft,peerreviewed,approved
okp\: status.comentario=2


This file set the type to be a list of options (3) and defines the list items.
The comment box is defined as a text area (2)

1 = Input
2 = Text area
3 = List
4 = List, multiple select

PropertyGroupBundle.properties:
okg\: status=Document Status
okp\: status.tipo=Document Status
okp\: status.tipo.draft=Draft
okp\: status.tipo.peerreviewed=Peer reviewed
okp\: status.tipo.approved=Approved
okp\: status.comentario=Comments


This file defined what is actually displayed on the user interface.
status is the name shown on the property tab
status.tipo is the name shown in the dropdown list when you add the property.
status.tipo.draft and so on are the displayed names of the list options.

2. Register the property from the Administration | Utilities panel.
Use the full path and file name, in my case is it:
[drive]:\user\projects\dms\openkm-3.0\my_groups.cnd

3. Restart OpenKM.

4. Use Add property on tool bar to add the new property to a file.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/01/22 07:48 By alloydog.
 
  The administrator has disabled public write access.
#1962
alloydog (User)
Senior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Re:Tracking document life and version 1 Year, 1 Month ago Karma: 0  
One more question...

Is it possible to have the new property show automatically? That is as soon as a new file is added to the repository, the new property tab is there?

It's not such a big issue when adding files one by one, but in most cases, we'll get a folder of files, often 50+ which will need the custom property tab.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop