Zitat von
Andreas
Kannst du nicht über eine Templateanpassung den Anker an das action="" dran setzen und dann dem confirm-Text eine ID geben?
HTML-Code:
...action="en/news/james-wilson-returns.html#confirm"...
...
<p id="confirm" class="confirm">Your comment has been added and is now pending for approval.</p>
Danke Andreas
Hier wie ich es bei cto 4.4 gelöst habe :
Code:
<div class="form">
<?php if ($this->requireLogin): ?>
<p class="info"><?= $this->login ?></p>
<?php else: ?>
<p id='begincomment'></p>
<?php if ($this->confirm): ?>
<p class="confirm"><?= $this->confirm ?></p>
<?php elseif ($this->allowComments): ?>
<form<?php if ($this->action): ?> action="<?= $this->action ?>#begincomment"<?php endif; ?> id="<?= $this->formId ?>" method="post"
...
Damit erreiche ich, dass in beiden Fällen (Sicherheitsfrage Ok oder nicht OK) nach dem Submit wieder der Beginn des Kommentarformulars angezeigt wird.
Einmal mit dem Formular für die Korrektur der Sicherheitsfarge oder mit der Rückmeldung 'Kommentar erfasst ...'
Lesezeichen