This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » OASIS extension and default import class
expandshrink

OASIS extension and default import class

OASIS extension and default import class

Tuesday 05 December 2006 8:51:40 am - 2 replies

The OASIS (ezodf) have a setting to specify the default class for import in odf.ini

[ODFImport]
# Default class for import
DefaultImportClass=article

I want to use the OASIS import for different type of objects, articles, products, ....
How could I have:
- The possibility for the user to choose the type of object he want his Open Office document to be
- The ability of eZ publish to override this settings according to the node / subtree of the import?

Thanks

Wednesday 06 December 2006 3:07:31 pm

Hi,
Look at odf.ini. You could define different classes.
The match is done looking at document sections name. In OpenOffice use Insert -> Section and create a template for yor class. AFAIK there is no such option in Mircosoft Word so all Word documents are imported using the default class.

Tuesday 17 July 2007 7:51:44 am

Hello all,

I have been looking at something similar to what is mentioned in this post.

After looking at modules/ezdf/ezooimport.php file it seems that the odf -> eZ class matching is done by trying to match the document's seaction names to attribute names in the available declared classes.

Therefore, if I understand correctly, <i>classes need to have a unique attribute/identifier combinations</i>, to avoid being mistakenly mapped to another class.

I guess it would be useful to have a different way of identifying classes, like prepending the class to the filename (eg. article_nameofarticle.odf and publication_nameofpublication.ofg) even if both classes contain the same attributes and have the same identifiers.

Another need for better matching would be to have pre-filled content objects which contain datatypes not currently supported by the extension.

Could anyone confirm this?

Regards,

Felipe

Modified on Tuesday 17 July 2007 7:56:29 am by Felipe Jaramillo

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from