[opencms-dev] Need help in removing XML content!!

Michael Emmerich m.emmerich at alkacon.com
Thu Aug 25 15:40:44 CEST 2005


Try to set the

<userelativelinks>false</userelativelinks>		

to

<userelativelinks>true</userelativelinks>				

in the opencms-importexport.xml in the configuration folder. Do not 
forget to restart the tomcat after you changes.

You will then have a some exported pages which should work without the 
OpenCms.

I think pointing out what the Extended HTML IMport does could be helpful 
here:

image you have a simple html page like this:

<html>
<head>
....something in here
</html>
<body>
this is the content of my html page
</body<>
</html>


The import now cuts out everything inside the <body> tags - and ony this 
is stored as the page inside of OpenCms (in an xml format).

Why?

Because everything "around" it is defined by the template. The template 
normally will contain the header, navigation footer or whatever of your 
page, things that should not be edited by the content editors. They 
should only work on the "real" content of your pages.

So if you have some style sheet imports in your oringial html head, they 
are gone now. I don't know which template you have choosen when you did 
the html import, but it might have been the empty template which will 
only put the nescessary tags around your content to make it valid html 
page again.

Take a look at the "template-how-to" in the documentation module, it 
describes how a simple template will work.

Regards,
Michael Emmerich

Alkacon Software





pat sad schrieb:
> My initial use of openCMS is to store HTML pages and have users editing 
> the content of my HTML pages and then exporting them to a file server 
> where they will be viewed online. I do understand that it creates 
> templates when you do an extended html import but now my issue is that 
> when I export them, the 'links' that they point to changed, just like i 
> was explaining in my last posting, and its causing me trouble when I'll 
> want to view them online.
>  
> My question in this case is, is there a way to have the link references 
> stricly the way they were when I initially inserted them ?
>  
> Also I noticed that I lost all my style sheet formatting, can openCMS 
> not do that somehow?
>  
> Thanks.
> 
>  
> On 8/25/05, *Michael Emmerich* <m.emmerich at alkacon.com 
> <mailto:m.emmerich at alkacon.com>> wrote:
> 
>     If you have imported your existing HTML files with the Extendet Html
>     Import, you DO use a template - the one that you chosse in the Extendet
>     Html Dialog.
> 
>     The importes HTML files will be converted into the page format of
>     OpenCms - and this is what the Extendet Html Import is used for.
> 
>     If you do not want to use a template, you can "import" your existing
>     files with the synchronisation feature - but then there is the question
>     why you want to do this. It makes no real sense to just store some HTML
>     pages in OpenCms without useing the templates.
> 
>     Regards,
>     Michael Emmerich
> 
> 
>     pat sad schrieb:
>      > I initially imported all my html pages, using the EXTENDED HTML
>     IMPORT,
>      > and I did not use any template for them. But when I did my static
>      > export, they all came out with XML content.
>      >
>      > I need to have them exported the same way they were initially. Is
>     there
>      > such a way ?
>      >
>      >
>      > On 8/24/05, *Siegfried Puchbauer* <siegfried.puchbauer at gmail.com
>     <mailto:siegfried.puchbauer at gmail.com>
>      > <mailto:siegfried.puchbauer at gmail.com
>     <mailto:siegfried.puchbauer at gmail.com>>> wrote:
>      >
>      >     are your html pages based on a template?
>      >
>      >     2005/8/24, pat sad < hlp.psaad at gmail.com
>     <mailto:hlp.psaad at gmail.com> <mailto:hlp.psaad at gmail.com
>     <mailto:hlp.psaad at gmail.com>>>:
>      >
>      >         I'm using static export to retrieve the files that I
>      >         inserted in openCMS(using the Extended HTML import), but
>     will that
>      >         convert them back to html files when I view them after
>     the static
>      >         export or will I always have the XML inside the pages ?
>      >
>      >         When I did my static export it kept them as XML content.
>      >         How do I remove what openCMS inserts ?
>      >
>      >
>      >
>      >
>      >
>      >         _______________________________________________
>      >         This mail is send to you from the opencms-dev mailing list
>      >         To change your list options, or to unsubscribe from the list,
>      >         please visit
>      >         http://mail.opencms.org/mailman/listinfo/opencms-dev
>      >
>      >
>      >
>      >
>      >
>      >     _______________________________________________
>      >     This mail is send to you from the opencms-dev mailing list
>      >     To change your list options, or to unsubscribe from the list,
>     please
>      >     visit
>      >     http://mail.opencms.org/mailman/listinfo/opencms-dev
>     <http://mail.opencms.org/mailman/listinfo/opencms-dev>
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      >
>      >
>      > _______________________________________________
>      > This mail is send to you from the opencms-dev mailing list
>      > To change your list options, or to unsubscribe from the list,
>     please visit
>      > http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> 
> 
>     _______________________________________________
>     This mail is send to you from the opencms-dev mailing list
>     To change your list options, or to unsubscribe from the list, please
>     visit
>     http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list