crispconcepts / kirby-accordionHeadlineField

Replaces the default "headline" field, and groups all content until next "headline" field in an accordion
17 stars 3 forks source link

Textarea field is drawn very large if following last accordion-headline #5

Open RHansmann opened 9 years ago

RHansmann commented 9 years ago

Good work, thanks for this solution! Works so far, but I recognized a strange behaviour with textarea field:

If a textarea field is specified below the last given accordion-headline in the blueprint file, the textarea is drawn very, very large (long), even if followed by other fields.

If the text area field is specified below an accordion-headline later followed by another accordion-headline (= somewhere between 2 headlines), textarea is drawn with normal length.

Example:

fields: headlineTitle: label: de: Überschrift en: Title type: headline titleicon: label: de: Überschrifts-Symbol en: Title icon type: selecticon title: label: de: Überschrift en: Title type: text required: true headlineContent: label: de: Seiten-Inhalt en: Page content type: headline text: label: de: Text en: Text type: textarea icon: info-circle

crispconcepts commented 9 years ago

Thank you for bringing this to my attention. I will look into it when I am able.

crispconcepts commented 9 years ago

Hi, I'm afraid I am not able to replicate the bug using Chrome or Firefox. I do recall seeing it myself in the past, but now that I am seeking it out it won't appear. Does this still occur for you?

labo-css commented 9 years ago

Same problem for me. With this site.php

<?php if(!defined('KIRBY')) exit ?>

title: Site
pages: true

fields:
  labelvar:
    label: Variables globales
    type: headline
  text1:
    label: Texte perso exemple
    type:  textarea
  labelmetas:
    label: Metas
    type: headline
  title:
    label: Titre du site
    type:  text
    width: 1/2
  email:
    label: Email
    type: email
    width: 1/2
  description:
    label: Description
    type:  text
    icon: google
    required: true
    help: Description utilisée par les moteurs de recherche
  keywords:
    label: Mots-clefs
    type:  tags
    required: true
    help: Mots-clef utilisés par les moteurs de recherche
  info:
    label: Infos du footer
    type:  textarea
    icon:  file-text-o
  labelavance:
    label: Options avancées & debug
    type: headline
  classglobal:
    placeholder: Séparez les classes par des espaces
    label: Bodyclasses
    type:  text
    help: Classe(s) CSS appliquée(s) au &lt;body&gt;
    icon: css3
  ajouthead:
    placeholder: Vous venez de supprimer ce contenu par erreur ? Utilisez Ctrl+Z afin de revenir en arrière. Merci :)
    label: Extra code dans le &lt;head&gt;
    type:  textarea
    icon: code
    buttons: false

  ajoutbody:
    placeholder: Vous venez de supprimer ce contenu par erreur ? Utilisez Ctrl+Z afin de revenir en arrière. Merci :)
    label: Extra code dans le &lt;body&gt;
    type:  textarea
    icon: code
    buttons: false