Hi
I’m trying to install the snippetfield plugin but I’m getting a blank page in the panel with the default config.
I’m running with 2.5.6, and this is my blueprint :
plats:
label: Plats
type: snippetfield
snippet: mydir/snippet
style: items
fields:
plat:
label: Plat
type: text
icon: cutlery
detail:
label: Détail
type: textarea
prix:
label: Prix
type: text
icon: eur
width: 1/2
gluten:
label: Gluten
type: switch
texts:
- Avec
- Sans
icon: bell
width: 1/2
The snippet I’m using is the same as the default here
<?php foreach($field->entries() as $entry): ?>
<div class="structure-entry" id="structure-entry-<?php echo $entry->id() ?>">
<div class="structure-entry-content text">
<?php echo $field->entry($entry) ?>
</div>
<?php if(!$field->readonly()): ?>
<nav class="structure-entry-options cf">
<a data-modal class="btn btn-with-icon structure-edit-button" href="<?php __($field->url($entry->id() . '/update')) ?>">
<?php i('pencil', 'left') . _l('fields.structure.edit') ?>
</a>
<a data-modal class="btn btn-with-icon structure-delete-button" href="<?php __($field->url($entry->id() . '/delete')) ?>">
<?php i('trash-o', 'left') . _l('fields.structure.delete') ?>
</a>
</nav>
<?php endif ?>
</div>
<?php endforeach ?>
I tried multiple times to remove certain plugins, and I did a very basic file of the snippet.php but I don’t understand most of it…I have set c::set('debug', true);
but I still have a blank page. Do you have some advices ?
EDIT : I could target the bug and this appear to come from <?php echo $field->entry($entry) ?>
. Every time I write it, I get a blank page.