Git Product home page Git Product logo

Comments (18)

qzminski avatar qzminski commented on August 29, 2024

@Toflar, do you know the answer for this question?

from contao-haste.

Toflar avatar Toflar commented on August 29, 2024

Yes I know the answer: It's not possible yet :-) We'd have to add it. I don't like the way fieldsets are handled anyway.
But I've created a simple solution that could also be added in the 1.x version because it's fully backward compatible. For version 2 I'd like to have a proper solution though.
@lionel-m does that work for you?

https://github.com/qzminski/Haste/tree/feature/legends

from contao-haste.

lionel-m avatar lionel-m commented on August 29, 2024

does that work for you?

Yes thanks !

from contao-haste.

Toflar avatar Toflar commented on August 29, 2024

Merge this feature into develop for a future 1.1.0

from contao-haste.

qzminski avatar qzminski commented on August 29, 2024

Is this feature ready to be merged?

from contao-haste.

Toflar avatar Toflar commented on August 29, 2024

It's not really nicely done but it apparently yes

from contao-haste.

qzminski avatar qzminski commented on August 29, 2024

Merged in e8e2d4f

from contao-haste.

aschempp avatar aschempp commented on August 29, 2024

I dont think this will work, has anyone tested it? E.g. the exception in addFieldSet will never wprk this way?

from contao-haste.

qzminski avatar qzminski commented on August 29, 2024

This has not been tested. Why the exception wouldn't work?

from contao-haste.

aschempp avatar aschempp commented on August 29, 2024

Because in_array would never match a name, if the name now in a key of the array?

from contao-haste.

qzminski avatar qzminski commented on August 29, 2024

Haha right, gonna fix that ;-)

from contao-haste.

aschempp avatar aschempp commented on August 29, 2024

I'm not sure if thats all, the "name" key seems not used in any changed code lines, but I havent checked everything on my ipad ;-)

from contao-haste.

Toflar avatar Toflar commented on August 29, 2024

I'm gonna rewrite this part for 2.0 anyway^^

from contao-haste.

sabrik avatar sabrik commented on August 29, 2024

Hey guys,

Is it possible to use fieldsets with the latest version when you integrate the fields from an array with the $objForm->addFormFields function?

Thanks

from contao-haste.

Toflar avatar Toflar commented on August 29, 2024

I don't really get your question, but if you wanted to ask whether the latest version supports fieldsets, then yes. Just use the inputType "fieldset".

from contao-haste.

sabrik avatar sabrik commented on August 29, 2024

Thanks for the fast reply! :-)
Already tried that but it does not work.
Can you give me an example how it should work, or what the dca element has to look like?

I tried it with:

        'fieldset' => array
        (
            'name'          => 'fieldset1',
            'label'         => 'label',
            'inputType'     => 'fieldset'
        ),

from contao-haste.

Toflar avatar Toflar commented on August 29, 2024
$arrFields['fieldset_start'] = array (
    'inputType' => 'fieldset',
    'eval'      => array('fsType'=>'fsStart')
);
$arrFields['fieldset_end'] = array (
    'inputType' => 'fieldset',
    'eval'      => array('fsType'=>'fsEnd')
);

from contao-haste.

sabrik avatar sabrik commented on August 29, 2024

Oh of course, fsType!
Thanks for your help Toflar :-)

from contao-haste.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.