Jahia in English > Custom Metadata...

0 (0 Good)
0 (0 Bad)

Custom Metadata - Jahia 5.0.6 r25558

by  cachavez »  2011/06/07 18:49

Hi all.

I'm trying to add some additional metadata information, I did the following:

Modified the file applicationcontext-metadata.xml

/1

The value returned is empty or null, but the value is on the database, but that sentence nothing returns.

To get the value entered, I have to restart the servlet, after that, the above sentence returns a value.
But It is painful be start/stop/start to make the Jahia returns the value of this new metadata.

Is there some other place where I need to file this metadata information ?

--
Cheers.
Carlos Ch?�vez.

  (cachavez)

Number of messages  32
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom Metadata - Jahia 5.0.6 r25558

by  wassek »  2011/06/07 18:49

Hi Carlos,

Where do you add your value on the metadata? Because there are two different metadatas, one on the contentPage and one on the contentContainer.
The difference, if you add the metadata to the ContentPage, you have to open the Page Settings from an existing Page. If you add the metadata to the container, you can do that on containercreation, where you add the fields or update a special container.

In your case you read the metadata from the contentPage:
final String someFieldPage = thePage.getContentPage().getMetadataValue(/1

In this case you have to call the getParent Method two times because the first call returns the ContentField (the pagefield), and the parent of the field is the container, which contain the metadata.

best regards
Werner

Werner Assek (wassek)

Number of messages  24
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom Metadata - Jahia 5.0.6 r25558

by  cachavez »  2011/06/07 18:49

Hi Werner.

Actually, we did apply the patch jahia-hotfix-5.0.6_5_r25869, after that the metadata works as expected.

thanks for your answer.

--
Cheers.
Carlos Ch?�vez.

  (cachavez)

Number of messages  32
Registration date
0 (0 Good)
0 (0 Bad)

Add custom fields in metadata section

by  namitgupta »  2012/10/15 07:44

Hello,

I am looking at ways to add new fields to the metadata section for different modules. I have not been able to add new metadata fields using the GUI.

Is there a programmatic way to add the custom fields to the metadata section?

 

Regards,

Namit Gupta

  (namitgupta)

Number of messages  36
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page