Vorlage unter webEdition 7.04 nicht nutzbar

Fragen zum Erstellen von Templates für webEdition.
FriedrichA
Member
Beiträge: 45
Registriert: Do 11. Sep 2014, 15:55

Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon FriedrichA » Mi 18. Okt 2017, 10:38

Guten Morgen,
eine Vorlage funktioniert in webEdition 6.3.8 tadellos. Bei einem Vortest unter 7.0.4 funktioniert diese überhaupt nicht mehr. Änderungen wurden nicht vorgenommen.

Der Block selbst wird aufgerufen.
Allerdings das für uns wichtige erscheint dann nicht, also z.B. input für Überschrift, Textare für Text links und Bildauswahl für Bild rechts.

Wir finden den Fehler nicht. Kann uns von euch jemand helfen? Vllt. ist es ja keine große Sache, da es, wie erwähnt, unter webEdition 6.3.8 prima funktioniert.

Die komplette Vorlage

// BEGINN //
<div id="main">

<we:ifClient browser="ie">
<br clear="all" />
</we:ifClient>

<div class="content">
<?php
$GLOBALS["indizes"] = unserialize($GLOBALS["we_doc"]->getElement("ContentBlock"));
$GLOBALS["blockzaehler"] = -1;
$GLOBALS["extension"] = 0;
?>

<we:block name="ContentBlock">

<?php
\$GLOBALS["blockzaehler"]++;
\$GLOBALS["extension"]++;
\$test = "includedblk_ContentBlock_".\$GLOBALS["indizes"][\$GLOBALS["blockzaehler"]];
\$GLOBALS["included"][\$GLOBALS["blockzaehler"]] = \$GLOBALS["we_doc"]->getElement(\$test);
?>

<we:ifEditmode>
<we:select name="included" reload="true">
<option value="">Bitte w&auml;hlen</option>
<option value="1">Bild rechts</option>
<option value="2">Bild links</option>
<option value="3">nur Text</option>
<option value="4">Bild rechts&nbsp;(ohne Headline)</option>
<option value="5">Bild links&nbsp;(ohne Headline)</option>
<option value="6">nur Text&nbsp;(ohne Headline)</option>
<option value="8">Text mit Rahmen</option>
<option value="11">Text mit Rahmen und Bild links</option>
<option value="10">Angebote Starteite</option>
<option value="7">Formular Kontakt</option>
<option value="9">Formular Arrangements</option>
</we:select>
</we:ifEditmode>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==1) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:right; width:98%;">
<div id="Headline<?php echo \$GLOBALS["extension"]; ?>">
<h1><we:input type="text" name="headline3" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<we:img name="BildImBlock1" align="right" alt="" class="main img_250" xml="true"/>
<p><we:textarea wysiwyg="true" name="blocktext1" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==2) { ?>
<we:ifEditmode>
<br style="clear:both;" />
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left; width:98%;">
<div id="Headline<?php echo \$GLOBALS["extension"]; ?>">
<h1><we:input type="text" name="headline2" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<we:img name="Blockbild2" align="left" alt="" class="main img_250" xml="true" />
<p><we:textarea wysiwyg="true" name="blocktext2" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==3) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left;width:100%;">
<div id="Headline<?php echo \$GLOBALS["extension"]; ?>">
<h1><we:input type="text" name="headline3" htmlspecialchars="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<p><we:textarea wysiwyg="true" name="blocktext3" xml="true" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==4) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left;width:100%;">
<div style="height:0px; width:0px; visibility:hidden">
<h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<we:img name="BildImBlock4" align="right" alt="" style="margin:0px 0px 0px 15px;" xml="true"/>
<p><we:textarea wysiwyg="true" name="blocktext4" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==5) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left; width:100%;">
<div style="height:0px; width:0px; visibility:hidden">
<h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em ; margin-left: -1.3em" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<we:img name="Blockbild5" align="left" alt="" style="margin:0px 15px 0px 0px;" xml="true" />
<p><we:textarea wysiwyg="true" name="blocktext5" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==6) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left; width:100%;">
<div style="height:0px; width:0px; visibility:hidden">
<h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<p><we:textarea wysiwyg="true" name="blocktext6" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==7) { ?>
<we:ifEditmode>
<br clear="all"/>

<we:href name="formularelement" type="int" />
<we:else />
<we:include id="$tester"/>
</we:ifEditmode>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==8) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left;width:93%; border:1px dotted #33CCFF; margin: 1em 0 0 1.5em; padding:1em;">
<div id="Headline<?php echo \$GLOBALS["extension"]; ?>">
<h1><we:input type="text" name="headline8" xml="true" htmlspecialchars="true" style="width:36em;" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<p><we:textarea wysiwyg="true" name="blocktext2" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==11) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left; width:92%; border:1px dotted #33CCFF; margin: 1em 0 0 1.5em; padding:1em;">
<div id="Headline<?php echo \$GLOBALS["extension"]; ?>">
<h1 style="margin-bottom: .1em; width: 100%; min-height: 2em"><we:input type="text" name="headline11" xml="true" htmlspecialchars="true" maxlength="80" /></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<we:img name="Blockbild11" align="left" alt="" xml="true" style="margin: 0 1em 0 1.3em" />
<p><we:textarea wysiwyg="true" name="blocktext11" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
</div>
</div>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==9) { ?>
<we:ifEditmode>
<br clear="all"/>

<we:href name="formularelement" type="int" />
<we:else />
<we:include id="$tester"/>
</we:ifEditmode>

<?php } ?>

<?php if (\$GLOBALS["included"][\$GLOBALS["blockzaehler"]]==10) { ?>
<we:ifEditmode>
<br clear="all"/>
</we:ifEditmode>

<div id="ContentBox<?php echo \$GLOBALS["extension"]; ?>" style="float:left;width:90%; margin-left: 1em; margin-bottom: 1em; padding-right: 2em; padding-bottom: -2em; border: 1px solid #e8f1fb; ">
<div style="height:0px; width:0px; visibility:hidden">
<h1><we:input type="text" name="headline10" xml="true"/></h1>
</div>

<div class="content<?php echo \$GLOBALS["extension"]; ?>">
<we:img name="Blockbild10" align="left" alt="" style="margin:0px 15px 0px 0px;" xml="true" />
<we:textarea name="blocktext10" wysiwyg="true" xml="true" inlineedit="false" />
</div>
</div>

<?php } ?>

</we:block>
<br clear="all"/>

<div id="pageEnd">
<br clear="all"/>
</div>

</div>
</div>
// ENDE //

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon WBTMagnum » Mi 18. Okt 2017, 10:54

Hallo Friedrich,

Hab ihr schon in den Errorlog geschaut? Dort finden sich in der Regel sachdienliche Hinweise.

HTH,
Sascha

FriedrichA
Member
Beiträge: 45
Registriert: Do 11. Sep 2014, 15:55

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon FriedrichA » Mi 18. Okt 2017, 11:14

Hallo,

da gibt es zuletzt diesen Eintrag.

// BEGINN //
ID: 3177
--------------------------------------------------------------------------------
Type: User warning
--------------------------------------------------------------------------------
Function: t_e
--------------------------------------------------------------------------------
File: webEdition/we/include/we_classes/contents/we_template.class.php
--------------------------------------------------------------------------------
Line: 836
--------------------------------------------------------------------------------
Text: save template failed
---------------------------------------------------
/content-test.tmpl
--------------------------------------------------------------------------------
Backtrace: #0 t_e called at [webEdition/we/include/we_classes/contents/we_template.class.php:836]
#1 we_save called at [webEdition/we/include/we_editors/we_editor.inc.php:419]
#2 require called at [webEdition/we_cmd.php:314]

--------------------------------------------------------------------------------
Date: 2017-10-18 10:14:36
--------------------------------------------------------------------------------
Source-Code: webEdition/we/include/we_classes/contents/we_template.class.php:
835: } else {
836: t_e('save template failed', $this->Path);
837: }
838:
839: $this->setElement('allVariants', we_unserialize($this->getElement('allVariants')), 'variants');
840: return $ret;

----------------------------------------------------------
webEdition/we/include/we_editors/we_editor.inc.php:
418: $oldID = $we_doc->ID;
419: if($we_doc->we_save()){
420: if($oldID == 0){
421: $we_doc->lockDocument();
422: }
423: $wasSaved = true;

----------------------------------------------------------
webEdition/we_cmd.php:
313: if($inc !== true){
314: require((substr($inc, 0, 5) === 'apps/' ? WEBEDITION_PATH : WE_INCLUDES_PATH) . $inc);
315: }
316: // When pressing a link in edit-mode, the page is being reloaded from
317: // webedition. If a webedition link was pressed this page shall not be
318: // reloaded. All entries in this array represent values for we_cmd[0]

----------------------------------------------------------

--------------------------------------------------------------------------------
WE-Info:
Version: 7.0.4.0
SVN: 14222 trunk release h0
--------------------------------------------------------------------------------
System:
PHP: 7.0.24
max_execution_time: 30
memory_limit: 128M
short_open_tag:
post_max_size: 16M
max_input_vars: 2000
session.auto_start: 0
--------------------------------------------------------------------------------
Mysql:
type: mysqli_pconnect
protocol: 10
client: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
host: Localhost via UNIX socket
server: 5.5.57-0+deb8u1-log
database: fwast_we
encoding: utf8

// ENDE //

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon WBTMagnum » Mi 18. Okt 2017, 15:40

Das dürfte ein Fehler beim Speicher über das Backend sein. Ich vermute mal, dass es noch weitere Fehler gibt. Wie sehen die aus?

Wurde nach dem Upgrade ein kompletter Rebuild gemacht?

Liebe Grüße,
Sascha

FriedrichA
Member
Beiträge: 45
Registriert: Do 11. Sep 2014, 15:55

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon FriedrichA » Mi 18. Okt 2017, 15:42

Hallo Sascha,
im finalen Projekt wurde noch kein Update durchgeführt. Wir haben den Test in einem Projekt ausgeführt, das bereits mit der Version 7.04 läuft. Rebuild wurde ausgeführt. Die Vorlage wurde neu erstellt und mit einem Dokument verknüpft (dynmisch erzeugt).

VG
André

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon WBTMagnum » Mi 18. Okt 2017, 21:28

Hallo André,

Ich habe mir den Code jetzt mal genauer angesehen. Ich kann mir nicht vorstellen, dass der Code in 6.3.8 funktioniert hat. Das Escaping von PHP Variablen ist seit der Umstellung auf 6.3 nicht mehr notwendig.

Ich habe mir mal erlaubt deinen Code ein wenig anzupassen (ungetestet):

Code: Alles auswählen

<div id="main">

  <we:ifClient browser="ie">
    <br style="clear:both;" />
  </we:ifClient>

  <div class="content">

    <we:block name="ContentBlock">

      <we:ifEditmode>
        <we:select name="included" reload="true">
          <option value="">Bitte w&auml;hlen</option>
          <option value="1">Bild rechts</option>
          <option value="2">Bild links</option> 
          <option value="3">nur Text</option> 
          <option value="4">Bild rechts (ohne Headline)</option>
          <option value="5">Bild links (ohne Headline)</option> 
          <option value="6">nur Text (ohne Headline)</option> 
          <option value="8">Text mit Rahmen</option> 
          <option value="11">Text mit Rahmen und Bild links</option> 
          <option value="10">Angebote Starteite</option> 
          <option value="7">Formular Kontakt</option> 
          <option value="9">Formular Arrangements</option>
        </we:select>
        <br style="clear:both;" />
      </we:ifEditmode>

      <we:ifVar name="ContentBlock" match="1">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:right; width:98%;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline3" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="BildImBlock1" align="right" alt="" class="main img_250" xml="true"/>
            <p><we:textarea wysiwyg="true" name="blocktext1" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="2">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:98%;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline2" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild2" align="left" alt="" class="main img_250" xml="true" />
            <p><we:textarea wysiwyg="true" name="blocktext2" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="3">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:100%;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline3" htmlspecialchars="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <p><we:textarea wysiwyg="true" name="blocktext3" xml="true" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="4">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:100%;">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="BildImBlock4" align="right" alt="" style="margin:0px 0px 0px 15px;" xml="true"/>
            <p><we:textarea wysiwyg="true" name="blocktext4" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="5">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:100%;">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em ; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild5" align="left" alt="" style="margin:0px 15px 0px 0px;" xml="true" />
            <p><we:textarea wysiwyg="true" name="blocktext5" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="6">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:100%;">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <p><we:textarea wysiwyg="true" name="blocktext6" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="7">
        <we:ifEditmode>
          <we:href name="formularelement" type="int" />
        <we:else />
          <we:include id="$tester"/>
        </we:ifEditmode>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="8">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:93%; border:1px dotted #33CCFF; margin: 1em 0 0 1.5em; padding:1em;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline8" xml="true" htmlspecialchars="true" style="width:36em;" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <p><we:textarea wysiwyg="true" name="blocktext2" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="11">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:92%; border:1px dotted #33CCFF; margin: 1em 0 0 1.5em; padding:1em;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1 style="margin-bottom: .1em; width: 100%; min-height: 2em"><we:input type="text" name="headline11" xml="true" htmlspecialchars="true" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild11" align="left" alt="" xml="true" style="margin: 0 1em 0 1.3em" />
            <p><we:textarea wysiwyg="true" name="blocktext11" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="9">
        <we:ifEditmode>
          <we:href name="formularelement" type="int" />
        <we:else />
          <we:include id="$tester"/>
        </we:ifEditmode>
      </we:ifPosition>

      <we:ifVar name="ContentBlock" match="10">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:90%; margin-left: 1em; margin-bottom: 1em; padding-right: 2em; padding-bottom: -2em; border: 1px solid #e8f1fb; ">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline10" xml="true"/></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild10" align="left" alt="" style="margin:0px 15px 0px 0px;" xml="true" />
            <we:textarea name="blocktext10" wysiwyg="true" xml="true" inlineedit="false" />
          </div>
        </div>
      </we:ifPosition>

    </we:block>
    <br style="clear:both;" />

    <div id="pageEnd">
      <br style="clear:both;" />
    </div>
  </div>
</div>
Folgende Anmerkungen dazu:
  • Ich hoffe ich habe das mit dem blockzaehler richtig interpretiert. Hier kann es sein, dass du noch nachbessern musst.
  • Wo die variable '$tester' her kommt ist mir unklar.
  • Was genau das '$GLOBALS[extension] ' bewirken sollte, war mir nicht ganz klar. Kann also sein, dass das <we:position/> hier nicht passt.
HTH,
Sascha

FriedrichA
Member
Beiträge: 45
Registriert: Do 11. Sep 2014, 15:55

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon FriedrichA » Do 19. Okt 2017, 14:36

Hallo Sascha,

zunächst ein ganz herzliches Dankeschön für die Mühen. Leider funktioniert es aber nicht. das heißt, die webEdition Elemente (Texteingabe, Textarea, Bildauswahl) werden nicht angezeigt.

In webEdition 6.3.8 habe ich es eben nochmals getestet, hier funktioniert es prima, siehe Screenshot (Dateianhang).

Es sind alles webEdition eigene Tags, daher wundert es mich sehr, dass es nicht funktioniert in der Version 7.04.

VG
André
screenshot.jpg
screenshot.jpg (70.81 KiB) 3929 mal betrachtet

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon WBTMagnum » Do 19. Okt 2017, 19:15

Hallo André,
FriedrichA hat geschrieben: zunächst ein ganz herzliches Dankeschön für die Mühen. Leider funktioniert es aber nicht. das heißt, die webEdition Elemente (Texteingabe, Textarea, Bildauswahl) werden nicht angezeigt.
Wie schon geschrieben, sind meine Anpassungen ungetestet. Hier braucht es vermutlich noch die eine oder andere Anpassung. Grundsätzlich haben wir aber ähnliche Lösungen mehrfach mit webEdition 7 im Einsatz.
FriedrichA hat geschrieben: In webEdition 6.3.8 habe ich es eben nochmals getestet, hier funktioniert es prima, siehe Screenshot (Dateianhang).
Das glaube ich dir gerne. Wundert mich aber trotzdem ein wenig. Der Parser sollte sich hier schon längst beschwert haben.
FriedrichA hat geschrieben: Es sind alles webEdition eigene Tags, daher wundert es mich sehr, dass es nicht funktioniert in der Version 7.04.
Das stimmt so nicht. In den von dir geposteten Templates wurde mittels PHP auf die Block-Elemente zugegriffen und ein eigener Counter umgesetzt. Diese Konstrukte braucht es auf Grund der Weiterentwicklung des Template-Parsers schon länger nicht mehr.

Eine weitere Analyse auf Basis der vorliegenden Infos ist leider schwierig. Vielleicht wäre es das Beste du suchst dir professionelle Hilfe bei einem webEdition Partner.


HTH,
Sascha

FriedrichA
Member
Beiträge: 45
Registriert: Do 11. Sep 2014, 15:55

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon FriedrichA » Do 19. Okt 2017, 20:57

Hallo Sascha,
dennoch. Vielen, vielen Dank.

VG
André

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon WBTMagnum » Sa 21. Okt 2017, 01:30

Hallo André,

Ich habe mir das jetzt nochmals angesehen. In meinem Code waren we-Tags noch unbalanced sowie eine Variable falsch benannt. So sollte es jetzt gehen (gerade getestet):

Code: Alles auswählen

<div id="main">

  <we:ifClient browser="ie">
    <br style="clear:both;" />
  </we:ifClient>

  <div class="content">

    <we:block name="ContentBlock">

      <we:ifEditmode>
        <we:select name="included" reload="true">
          <option value="">Bitte w&auml;hlen</option>
          <option value="1">Bild rechts</option>
          <option value="2">Bild links</option> 
          <option value="3">nur Text</option> 
          <option value="4">Bild rechts (ohne Headline)</option>
          <option value="5">Bild links (ohne Headline)</option> 
          <option value="6">nur Text (ohne Headline)</option> 
          <option value="8">Text mit Rahmen</option> 
          <option value="11">Text mit Rahmen und Bild links</option> 
          <option value="10">Angebote Starteite</option> 
          <option value="7">Formular Kontakt</option> 
          <option value="9">Formular Arrangements</option>
        </we:select>
        <br style="clear:both;" />
      </we:ifEditmode>

      <we:ifVar name="included" match="1">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:right; width:98%;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline3" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="BildImBlock1" align="right" alt="" class="main img_250" xml="true"/>
            <p><we:textarea wysiwyg="true" name="blocktext1" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="2">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:98%;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline2" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild2" align="left" alt="" class="main img_250" xml="true" />
            <p><we:textarea wysiwyg="true" name="blocktext2" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="3">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:100%;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline3" htmlspecialchars="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <p><we:textarea wysiwyg="true" name="blocktext3" xml="true" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="4">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:100%;">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="BildImBlock4" align="right" alt="" style="margin:0px 0px 0px 15px;" xml="true"/>
            <p><we:textarea wysiwyg="true" name="blocktext4" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="5">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:100%;">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em ; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild5" align="left" alt="" style="margin:0px 15px 0px 0px;" xml="true" />
            <p><we:textarea wysiwyg="true" name="blocktext5" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="6">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:100%;">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline4" htmlspecialchars="true" xml="true" style="width: 36em; margin-left: -1.3em" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <p><we:textarea wysiwyg="true" name="blocktext6" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="7">
        <we:ifEditmode>
          <we:href name="formularelement" type="int" />
        <we:else />
          <we:include id="$tester"/>
        </we:ifEditmode>
      </we:ifVar>

      <we:ifVar name="included" match="8">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:93%; border:1px dotted #33CCFF; margin: 1em 0 0 1.5em; padding:1em;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1><we:input type="text" name="headline8" xml="true" htmlspecialchars="true" style="width:36em;" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <p><we:textarea wysiwyg="true" name="blocktext2" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="11">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left; width:92%; border:1px dotted #33CCFF; margin: 1em 0 0 1.5em; padding:1em;">
          <div id="Headline<we:position type="block" name="ContentBlock"/>">
            <h1 style="margin-bottom: .1em; width: 100%; min-height: 2em"><we:input type="text" name="headline11" xml="true" htmlspecialchars="true" maxlength="80" /></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild11" align="left" alt="" xml="true" style="margin: 0 1em 0 1.3em" />
            <p><we:textarea wysiwyg="true" name="blocktext11" htmlspecialchars="true" width="680" height="400" commands="prop,list,link,undo,insertimage" fontnames="arial" inlineedit="false" buttonpos="top" spellcheck="true" /></p>
          </div>
        </div>
      </we:ifVar>

      <we:ifVar name="included" match="9">
        <we:ifEditmode>
          <we:href name="formularelement" type="int" />
        <we:else />
          <we:include id="$tester"/>
        </we:ifEditmode>
      </we:ifVar>

      <we:ifVar name="included" match="10">
        <div id="ContentBox<we:position type="block" name="ContentBlock"/>" style="float:left;width:90%; margin-left: 1em; margin-bottom: 1em; padding-right: 2em; padding-bottom: -2em; border: 1px solid #e8f1fb; ">
          <div style="height:0px; width:0px; visibility:hidden">
            <h1><we:input type="text" name="headline10" xml="true"/></h1>
          </div>

          <div class="content<we:position type="block" name="ContentBlock"/>">
            <we:img name="Blockbild10" align="left" alt="" style="margin:0px 15px 0px 0px;" xml="true" />
            <we:textarea name="blocktext10" wysiwyg="true" xml="true" inlineedit="false" />
          </div>
        </div>
      </we:ifVar>

    </we:block>
    <br style="clear:both;" />

    <div id="pageEnd">
      <br style="clear:both;" />
    </div>
  </div>
</div>
Liebe Grüße,
Sascha

FriedrichA
Member
Beiträge: 45
Registriert: Do 11. Sep 2014, 15:55

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon FriedrichA » Mo 23. Okt 2017, 14:44

Hallo Sascha,
es scheint in der Tat zu funktionieren. Super! Ein ganz großes Dankeschön.

VG
André

WBTMagnum
webEdition Partner
webEdition Partner
Beiträge: 1825
Registriert: Di 7. Mär 2006, 16:50
Wohnort: Wien
Kontaktdaten:

Re: Vorlage unter webEdition 7.04 nicht nutzbar

Beitragvon WBTMagnum » Mo 23. Okt 2017, 15:14

Hallo André,

Super! Freut mich zu hören.

Noch ein Tipp: Bei Versionssprüngen immer die relevanten Versionshistorie durchschauen. Dort finden sich Hinweise was in den Templates angepasst gehört. Wenn ihr da jetzt auf "gut Glück" ein Upgrade durchgeführt habt, dann solltet ihr die Templates nochmals durchschauen und ev. Altlasten bereinigen. Das vermeidet unliebsame Überraschungen bei zukünftigen Updates/Upgrades.


Liebe Grüße,
Sascha


Zurück zu „webEdition Templates erstellen (we:Tags)“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 10 Gäste