Hi,

 

 

extra metadata fields can be defined in the
WEB-INF/etc/spring/applicationcontext-metadata.xml configuration file.

 

<bean id="metadataDefinitionConfig"
class="org.jahia.services.metadata.MetadataDefinitionConfig">

  <property name="definitions">

    <map>

            ....

            <entry key="fielddef.categories">

              <ref bean="fielddef.categories" />

</entry>

 

            <entry key="fielddef.myMetadata">

              <ref bean="fielddef.myMetadata" />

            </entry>

    </map>

  </property>

</bean>

 

<bean id="fielddef.categories"
class="org.jahia.services.metadata.FieldDefinition">

  <property name="name"><value>defaultCategory</value></property>

   ...

</bean>

 

<bean id="fielddef.myMetadata"
class="org.jahia.services.metadata.FieldDefinition">

  <property name="name"><value>myMetadata</value></property>

  <property name="title"><value><![CDATA[<jahia-resource
id="JahiaEnginesResources" key="org.jahia.services.metadata.myMetadata"
default-value="My Metadata"/>]]></value></property>

  <property name="type"><value>20</value></property> <!--
SMALLTEXT_SHARED_LANG -->

  <property name="defaultValue"><value></value></property>

  <property name="readOnly"><value>false</value></property>

  <property name="editableDefinition"><value>false</value></property> <!--
not editable definition, as loaded from xml file -->

  <property name="hiddenFromEditingEngine"><value>false</value></property>
<!-- metadata displayed or not in editing engine -->

  <property name="required"><value>false</value></property> <!-- mandatory
in engine -->

  <property name="order"><value>13</value></property> <!-- default order -->

  <property name="contentDefinitionMappings"> <!-- mappings -->

    <list>

      <value>org.jahia.services.pages.JahiaPageDefinition</value>

      <value>org.jahia.data.containers.JahiaContainerDefinition</value> <!--
if you want to create this metadata for all containers too.-->

    </list>

  </property>

</bean>

 

Regards,

Khue

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bildsoe, Poul
Sent: vendredi, 24. août 2007 08:44
To: [email protected]
Subject: [template_list] Additional meta data fields

 

In several places I have seen it mentioned that the meta data fields can be
extended and I have seen that a Jahia Field can be a meta data field
(setIsMetadata) but I cannot find any documentation or examples showing how
to ad for example extra metadata fields to all pages on a site. If i for
instance declare a field in a template I cannot tell the field to be a meta
data field. Can anyone shed some light on these matters?

Capgemini Danmark A/S, Registered office: Gentofte, Reg.No. 25606965

 

 

This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use
this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.

        
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list

Reply via email to