Once again OO-Extension

Author Message

Thorsten Körner

Saturday 26 March 2005 6:18:46 am

Hi,

Does anyone know, where to set, that the importet file is stored as a gallery, not article.

I've changed the settings in oo.ini to:

[OOImport]
DefaultImportClass=article
DefaultImportTitleAttribute=title
DefaultImportBodyAttribute=body
RegisteredClassArray[]=gallery
RegisteredClassArray[]=folder
ImportedImagesMediaNodeName=Imported images

[OOExport]
UseTemplate=true
TemplateName=eztemplate.stw

# Map eZ publish attributes to OpenOffice.org section definitions
[gallery]
Attribute[title]=title

[folder]
Attribute[title]=title
Attribute[shortdescription]=shortdescription

But this doesn't take effect. I think it is ignored in ezooimport.php

I deleted the cache before uploading and transforming, but the file is still transformed to an article.

Any Hints?

-- Thorsten

http://Server4Profis.de CMS, Database and eZ publish Hosting
http://123tk.de Database-, Internet and Intranet Development
eZ publish programing, extensions and modules
SAP, Lotus and IFS integration

Bård Farstad

Tuesday 29 March 2005 2:52:56 am

Thorsten,

the reason this happens is most likely because the OOo plugin does not find a match. You need to define _all_ attributes in the oo.ini file. The code currently looks for excact match of all the attributes.

The DefaultImportClass is set to article, that's why it appears as article in your case.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.