Difference between revisions of "Folder Style assigned by metadata"

From OpenKM Documentation
Jump to: navigation, search
Line 2: Line 2:
  
 
The script assign folder style to folder based in database metadata values present into document contents into.  
 
The script assign folder style to folder based in database metadata values present into document contents into.  
 +
 +
'''Description:'''
 +
* Property group ( metadata )
 +
* Folder Style icon ( Red / Green / Yellow with id values 18, 19, 20)
  
 
Property group:
 
Property group:
 
<source lang="xml">
 
<source lang="xml">
<property-group label="Invoice status" name="okg:invoicedata">
+
<property-group label="Invoice status" name="okg:invoice">
<select label="Status" name="okp:invoicedata.status" type="simple">
+
<select label="Status" name="okp:invoice.status" type="simple">
 
<option label="Open" value="open" />
 
<option label="Open" value="open" />
<option label="Pending to review" value="review" />
+
<option label="Pending to review" value="review" />
 
<option label="Closed" value="closed" />
 
<option label="Closed" value="closed" />
 
</select>
 
</select>
 
</property-group>
 
</property-group>
 
</source>
 
</source>
 +
 +
== Example ==
 +
'''Register database metadata values:'''
 +
 +
[[File:Okm user guide 498.png|center]]
  
 
[[Category: Utilities]]
 
[[Category: Utilities]]

Revision as of 19:20, 14 September 2013

Contents

The script assign folder style to folder based in database metadata values present into document contents into.

Description:

  • Property group ( metadata )
  • Folder Style icon ( Red / Green / Yellow with id values 18, 19, 20)

Property group:

<property-group label="Invoice status" name="okg:invoice">
<select label="Status" name="okp:invoice.status" type="simple">
	<option label="Open" value="open" />
	<option label="Pending to review" value="review" />
	<option label="Closed" value="closed" />
</select>
</property-group>

Example

Register database metadata values:

Okm user guide 498.png