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

pat sad hlp.psaad at gmail.com
Thu Aug 25 16:32:33 CEST 2005


Thanks again Michael for your clear explanation. 
You were correct concerning the relativelinks tag, it works without openCMS now.
As for the templates, I am using the empty template, like you
mentioned, and I noticed there are 7 other types of templates:

Alkacon documentation JSP test template
Alkacon documentation default template
Alkacon documentation howto complete template
Alkacon documentation howto editable template
Alkacon documentation howto simple template
Welcome / Release notes template

In the howto_template they explain that the stylesheet is put into the
<cms:link> tag.

<link type= "text/css" href="<cms:link>../resources/mystyle.css</cms:link>"> 

It also says: 

Note : You can use your CSS stylesheet in the Editor by attaching a
property "template" to the JSP template. The value of the property
must be the filename (including the full path) of your stylesheet.

Now, I noticed that in the Extended HTML import, we can define an
Element such as 'body' when we choose the 'Empty template'  but for
any other template it gives me an error such as:

The element "body" is not for template
"/system/modules/com.alkacon.documentation/templates/jsptest".

What element should I include instead ? And do you think I am on the
right track for including the css sheets in the head of my html files
? Also, what about javascript functions included in the head portion,
is there a way to keep them in the import as well ?

I have read the documentation, it helps me understand the conccept but
to actually apply it I need your help. The mailing list is, by far
MOST, the best documentation I can get for openCMS, I'm hoping that a
brave soul can answer my questions :)

Thanks again.

On 8/25/05, Michael Emmerich <m.emmerich at alkacon.com> wrote:
> 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
> 
> 
> 
> 
> 
> _______________________________________________
> 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