[opencms-dev] i am wrong or bug in templateone elements

Thomas Kollakowsky tsky at informatik.fh-ge.de
Tue Jul 5 16:24:40 CEST 2005


Hi Andreas,

hmm i do that already. the folder has locale=de and i try explicitly for 
the file. the problem i discover is that offline it "seems" to be 
right...element text1 is over element text2 and the content is the 
right. wenn i publish then in all elements is the content of element 
text1. seems that the code that counts the elements go through all 
elements but not to the corrosponding "text"-element...
as you can see here:
http://cvs.digitale-medien.informatik.fh-gelsenkirchen.de:8080/opencms/opencms/vum/bilder.html
in the second part should be appear some pictures.

T.

Steuerdatei:
<?xml version="1.0" encoding="UTF-8"?>

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
  <page language="de">
    <element name="text1">
      <links>
        <link name="link0" type="IMG" internal="true">
          
<target><![CDATA[/sites/default/img/background128x128.png]]></target>
        </link>
        <link name="link1" type="IMG" internal="true">
          
<target><![CDATA[/sites/default/img/background128x128.png]]></target>
        </link>
      </links>
      <content><![CDATA[<P>
<TABLE cellSpacing=3 cellPadding=3 border=0>
 
  <TR>
    <TD><IMG title=background128x128.png alt=background128x128.png
      src="${link0}" border=0></TD>
    <TD width=400></TD>
    <TD width=140></TD></TR>
  <TR>
    <TD></TD>
    <TD>Bilder aus VUM Projekten</TD>
    <TD></TD></TR>
  <TR>
    <TD><IMG title=background128x128.png alt=background128x128.png
      src="${link1}" border=0></TD>
    <TD></TD>
    <TD></TD></TR></TABLE></P>]]></content>
    </element>
    <element name="text3">
      <links>
        <link name="link3" type="IMG" internal="true">
          
<target><![CDATA[/sites/default/img/background128x128.png]]></target>
        </link>
        <link name="link2" type="IMG" internal="true">
          <target><![CDATA[/sites/default/img/THvum04.jpg]]></target>
        </link>
        <link name="link0" type="IMG" internal="true">
          
<target><![CDATA[/sites/default/img/background128x128.png]]></target>
        </link>
        <link name="link1" type="IMG" internal="true">
          <target><![CDATA[/sites/default/img/THvum02.jpg]]></target>
        </link>
      </links>
      <content><![CDATA[<P>
<TABLE cellSpacing=3 cellPadding=3 border=0>
 
  <TR>
    <TD><IMG title=background128x128.png alt=background128x128.png
      src="${link0}" border=0></TD>
    <TD width=400 colSpan=2></TD>
    <TD width=140></TD></TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD><IMG title=THvum02.jpg alt=THvum02.jpg
      src="${link1}" border=0></TD>
    <TD></TD></TR>
  <TR>
    <TD></TD>
    <TD><IMG title=THvum04.jpg alt=THvum04.jpg
      src="${link2}" border=0></TD>
    <TD></TD>
    <TD></TD></TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD></TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD></TR>
  <TR>
    <TD><IMG title=background128x128.png alt=background128x128.png
      src="${link3}" border=0></TD>
    <TD colSpan=2></TD>
    <TD></TD></TR></TABLE></P>]]></content>
    </element>
    <element name="text5">
      <links/>
      <content><![CDATA[footline]]></content>
    </element>
  </page>
  <page language="en">
    <element name="text1">
      <links>
        <link name="link0" type="IMG" internal="true">
          <target><![CDATA[/sites/default/img/english.gif]]></target>
        </link>
      </links>
      <content><![CDATA[<IMG title=english.gif alt=english.gif
src="${link0}" border=0>]]></content>
    </element>
    <element name="text3">
      <links/>
      <content/>
    </element>
    <element name="text5">
      <links/>
      <content/>
    </element>
  </page>
</pages>



Andreas Zahner wrote:

>Thomas,
>
>just set the "locale" property on the folder containing your pages to "en",
>"de" or the Locale corresponding to your page contents. After doing that,
>the elements should be displayed as desired.
>
>Regards,
>
>Andreas Zahner
>Alkacon Software - The OpenCms Experts
>http://www.alkacon.com  
>
>-----Original Message-----
>From: opencms-dev-bounces at opencms.org
>[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Thomas Kollakowsky
>Sent: Tuesday, July 05, 2005 1:20 PM
>To: The OpenCms mailing list
>Subject: [opencms-dev] i am wrong or bug in templateone elements
>
>Hi,
>i want to use simple the templateone. makes all what i want to have. but 
>there seems to be a silly bug in the template.
>
>every time i make element more than Text Z1S1 in some subfolder the 
>first element S1Z1 appears, instead of Text Z2Z1.
>Anyone an idea what i make wrong ? or is that a bug ?
>
>i only want use it, not make much programing...
>
>best regards
>tom
>
>  
>


-- 

_______________________________________________

http://www.fh-gelsenkirchen.de
http://www.informatik.fh-gelsenkirchen.de
http://inf504.informatik.fh-gelsenkirchen.de
_______________________________________________

Dipl. Ing. Thomas Kollakowsky
Wissenschaftlicher Mitarbeiter
Digitale Medien - Informatik
Fachhochschule Gelsenkirchen
University of Applied Sciences

Neidenburger Straße 43
D-45877 Gelsenkirchen

Tel.:  +49.209.9596.414
Fax.:  +49.209.9596.703
________________________________________________





More information about the opencms-dev mailing list