adding articles - convert, embed or reformat ?

Author Message

Halvor M

Tuesday 22 March 2005 3:41:34 am

Hi,

I am adding a lot of articles to my site, and these are typically word documents of 5-30 pages, with footnotes. The other formatting doesn't bother me as much, but I would like an easy way to keep the footnotes without having to make anchor tags for each footnote manually.

One option would be to generate a html of the word doc, and the embed this on the ez article page... but how? One could have the html file as a clickable object link on the article page, but this isnt very satisfactory...

Any thoughts?

Ekkehard Dörre

Tuesday 22 March 2005 4:18:57 am

convert it with openoffice ( ooo ) and use the new
http://ez.no/community/contribs/import_export/openoffice_org_extension

I think, you need to expand the programming, and make some tests, it is beta. Or you write an xml-(add-in) for word and take modified ooo import. It is in visual basic. In word 2003 there is an xml-export. Everything is in one file. More about this:
http://ez.no/community/forum/suggestions/document_management

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Halvor M

Wednesday 23 March 2005 2:07:32 am

(I cross-posted this with my comment to the relevant article posting the oo-beta)

I installed it (it being the oo extension for EZ), but get this error message after selecting the import destination:

Fatal error: Call to a member function on a non-object in D:\www\_site\extension\oo\modules\oo\ezooimport.php on line 88
Fatal error: eZ publish did not finish its request

any input on how to resolve this one would be greatly appreciated :-)

Ekkehard Dörre

Wednesday 23 March 2005 4:43:10 am

check your zip environment.
You have gzopen or unzip?

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Halvor M

Wednesday 30 March 2005 1:13:18 pm

As it turned out, php in windows has zlib-module in place :-)

I can now import .sxw files, but I would like to be able to import documents that have formatting, especially footnotes - and keep the footnotes !

Any ideas on how to accomplish this ?

Ekkehard Dörre

Thursday 31 March 2005 1:32:03 am

yep,

look for the tag in content.xml ( unzip your ooo document by hand und you'll find it) and extend the exooimport.php

Which tag should it be in ez?

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Halvor M

Thursday 31 March 2005 5:38:43 am

oi, err.. thanks for the reply mate...

However, I think I need this in "idiotspeak" :-)

I have very little programming skills, so this is all uphill for me. With a little more of your kind assistance, I am sure I will manage though!

So, I have the document in word. I transform it in open office to a html document, with footnotes intact.

I understand I have to modify the import.php in the OO-extension.

What am i looking for, and what do I write there? :-)

I guess there isn't anything system specific about all this. If there is, let me know what more info you need...

Thanks again.

Ekkehard Dörre

Thursday 31 March 2005 7:43:01 am

Hi Halvor,

Halvor wrote:
<i>So, I have the document in word. I transform it in open office to a html document, with footnotes intact. </i>

No. No transform. Yust unzip your ooo document, then you'll see the content.xml an where your footnotes are.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Halvor M

Thursday 31 March 2005 9:41:46 am

aha !

I think I found what you mean in the folder:
_site\var\corporate\storage\text

At least there is the text of the docuemnt I imported. You are right in that there are anchor-links in this text, with the footnotes on the very bottom. The footnotes look like this:

<DIV ID="sdfootnote1">
	<P CLASS="sdfootnote-western"><A CLASS="sdfootnotesym" NAME="sdfootnote1sym" HREF="#sdfootnote1anc">1</A><SPAN LANG="en-GB">
	<FONT SIZE=1 STYLE="font-size: 7pt"><FONT COLOR="#000000">TEXT OF FOOT NOTE IS HERE</FONT></FONT></SPAN></P>
</DIV>

So, I guess this is at step in the right direction (!)

Now... what do I with this? I want the footnotes to be shown on the webpage generated by the importer of course... Please explain very basically :-)

Ekkehard Dörre

Thursday 31 March 2005 10:11:46 am

Hi Halvor,

we can try it to do. You can always go the "idiot way" copy and paste, which is sometimes faster.

Ok, first step

rename your openoffice document test.sxw in test.zip
unzip it
there is an xml file content.xml

something like this?


<text:p text:style-name="Footnote">TEXT OF FOOT NOTE IS HERE</text:p>
<text:p text:style-name="Footnote"/>

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Halvor M

Thursday 31 March 2005 12:35:04 pm

aha!

Got that, and found the content.xml.

When studying the file, I think this is the closest to what you suggest:

</text:span><text:span text:style-name="T3">
<text:footnote text:id="ftn1">
<text:footnote-citation>1</text:footnote-citation>
<text:footnote-body><text:p text:style-name="Footnote">
<text:span text:style-name="T4">
<text:s/></text:span><text:span text:style-name="T5">TEXT OF FOOTNOTE IS HERE </text:span>
</text:p></text:footnote-body></text:footnote></text:span>
<text:span text:style-name="T1">

This is fun :-)

Now... how to automatically make those footnotes appear in my imported EZdocument...?

Ekkehard Dörre

Thursday 31 March 2005 11:34:13 pm

Hi,

I think it is to complex to do the programming, so you should go another way:

the fastest way, import documents and make footnotes at the bottom by hand with Anchors
http://ez.no/ez_publish/documentation/reference/xml_tags

or export to html, clean wordhtml it with htmltidy (via GoLive, Dreamweaver, phase 5 editor http://www.qhaut.de/) search and replace the tags into ezxml tags and anchors and paste it manually.

Perhaps the online editor will help you, test it
http://admindevel.ezpublish.no/
(Log in with admin and publish)

It is a long night with a beer or two but could be faster than programming.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Halvor M

Friday 01 April 2005 12:43:02 am

Always preferred beer to programming anyways :-)

One more quesition then...

If I convert the document to html, then it will still contain the footnotes. It seems to me the easiest way of preserving the footnotes and formatting in my EZpublish article would be the following:

1. convert .doc to .html
2. create empty EZpublish article
3. locate empty article, and paste in the entire .html document

would this work? if so, where would I find the empty article I made, so I could paste in the .html ?

Ekkehard Dörre

Friday 01 April 2005 1:11:35 am

nearly,

3. these tags you can use:
http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/tags
http://ez.no/ez_publish/documentation/reference/xml_tags

so strip the rest off. Only body part.

The article is the normal article class: create, paste, publish.
Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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