Coder Social home page Coder Social logo

Comments (6)

cedriclombardot avatar cedriclombardot commented on August 16, 2024

For the moment, If you start writing rows you must continue using rows.

To be expliicit, you should set :

NONE: [[ firstname,Middleinit,lastname] , [Address1 ],[Address2 ],[city ],[state ],[country ],[phone ], [email ] ]

Or :
NONE: [[ firstname,Middleinit,lastname]]
Others: [ Address1,Address2,city,state,country,phone, email ]

You could probably propose something : https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/blob/master/Builder/Admin/BaseBuilder.php#L168

<?php

   foreach ($rows_or_fields as $field) {
            $rows[][$field] = $field;
        }

from admingeneratorgeneratorbundle.

deepgreen avatar deepgreen commented on August 16, 2024

Thanks - I'm writing up the documentation with examples.

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

You can also add a patch if you want i think it's easy (a simple
is_array before the foreach) and could be good for others

2011/11/23 Mike Heward
[email protected]:

Thanks - I'm writing up the documentation with examples.


Reply to this email directly or view it on GitHub:
https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/issues/48#issuecomment-2853597

from admingeneratorgeneratorbundle.

deepgreen avatar deepgreen commented on August 16, 2024

It is clear that the scope of the builders is really flexible, it grows on me the more I look into this. Now it includes the ability to generate forms, subforms all with the native security context of symfony: i.e. its an integration utility that sit above the Symfony components. So the concept is to pitch the functionality as a site builder - inclusive of front end and admin. Rather like a (big) extension to the Symfony2 generators but with central YAML file for generation control and symfony component integration. Possibly becoming a site generator starting with a number of preconfigured templates. Just a thought as really the basics of this is are in place now. Of course the focus now is with the admin part.
So back to your suggested patch features like this for form layout are really good if you see a wider context where users are likely very particular over front form layout.
In any case I shall take a look.

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

With the TwigGenerator library, you can generate everything you want. For example a propel2 or other php librairies. The admingenerator builders is "only" a big template collection to generate a symfony2 admin. So feel free to think using the same construction to make other services to build front or other things.

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

@deepgreen you can now set :

display: [ field1, field2 ]

or

display:
  "NONE": [ field1, field2 ]

or

display:
  "NONE": [ [field1, field2], [field3] ]

but also

display:
  "NONE": [ [field1, field2], field3 ]
  "other": [ field1, [field2, field3] ]

from admingeneratorgeneratorbundle.

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.