Re: Database transfer and metadata access

Sergiy Shyrkov <[email protected]> Wed, 18 Jun 2008 15:03:06 +0200
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hello Guillaume,

What Jahia version do you use?

1) There is no possibility to change the type of the database later on. 
You could use Jahia export/import feature to transfer most of the 
content (virtual sites, users and groups, content objects etc.) from one 
Jahia installation to another
2) You can access the metadata field value by using, e.g. the following 
API ( 
http://www.jahia.org/javadoc-dev_5/org/jahia/content/ContentObject.html#getMetadataValue(java.lang.String,%20org.jahia.params.ProcessingContext,%20java.lang.String) 
):

ContentContainer container = ...;

String metadatalastPublished = 
container.getMetadataValue("lastPublishingDate", jParams, "");

You can also check the example of getting the last publishing data of 
the page in the top.inc JSP:

https://svndev.jahia.net/svn/corporate_portal_templates_v2/trunk/src/jsp/common/top.inc

Kind regards
Sergiy

KUHMEL Guillaume wrote:
> Hi,
>  
> Two points today :
> - How can in the server administration can i change the type of 
> the database I use "on-the-fly" as mentionned on the administrator 
> guide? i need to change from hypersonic to oracle and to keep my content.
> - In template developpment, how can i access Dublin Core metadata on a 
> container (i need to access the publication date of a container) ?
>  
> Thanks a lot
> ------------------------------------------------------------------------
>
> _______________________________________________
> dev_list mailing list
> [email protected]
> http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list
>   

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