Vorlage unter webEdition 7.04 nicht nutzbar
Verfasst: 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ä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>
</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 //
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ä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>
</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 //