Hallo Fidel,
ich bin in PHP auch nicht die Leuchte und arbeite daher am liebsten mit Templates. Ich denke aber, es wird nicht einfacher, die Extension anzupassen. Ich habe meinen Workaround getestet und es klappt super. Anbei Code und Screenshot.
Ich hoffe, es hilft.
PHP-Code:
<?php if($this->Input->get('token')): ?>
{{insert_article::102}}
<?php else: ?>
{{insert_article::30}}
<?php endif ?>
<!-- indexer::stop -->
<div class="<?php echo $this->class; ?><?php if (!$this->tableless): ?> tableform<?php endif; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<form<?php if ($this->action): ?> action="<?php echo $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="post">
<div class="formbody">
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formId; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<?php if ($this->error): ?>
<p class="error"><?php echo $this->error; ?></p>
<?php endif; ?>
<?php if (!$this->tableless): ?>
<table>
<?php echo $this->fields; ?>
<tr class="<?php echo $this->rowLast; ?>">
<td class="col_0 col_first">[nbsp]</td>
<td class="col_1 col_last"><div class="submit_container"><input type="submit" class="submit" value="<?php echo $this->slabel; ?>"></div></td>
</tr>
</table>
<?php else: ?>
<div class="fields">
<?php echo $this->fields; ?>
</div>
<div class="submit_container">
<input type="submit" class="submit" value="<?php echo $this->slabel; ?>">
</div>
<?php endif; ?>
</div>
</form>
</div>
<!-- indexer::continue -->
Lesezeichen