Comments (6)
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.
Thanks - I'm writing up the documentation with examples.
from admingeneratorgeneratorbundle.
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.
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.
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.
@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)
- afe_single_upload riquiered issue HOT 6
- Doctrine ORM Manager named "default" does not exist. HOT 8
- Hardcoded id in getFilterForm HOT 2
- Excel export. Wont Work HOT 3
- Extend ExcelController from the user project ListController HOT 8
- Problem after upgrade to Symfony 2.6 HOT 1
- Problem Multi upload with single upload HOT 4
- ContextErrorException HOT 3
- GenerateAdminCommand compatible with SensioGeneratorBundle HOT 2
- updateRouting definition error with symfony 2.6 HOT 4
- Conflict with avocode/form-extensions-bundle HOT 6
- ListController::isCsrfTokenValid() changed and need 2 arguments HOT 1
- Init new tag v1.0.3 and v1.1.4 HOT 4
- Add uglifyjs and uglifycss support HOT 3
- Filters HOT 1
- Cumplidos sus requerimientos, NO logro descargar via composer...please check ! I very interesting!
- ser
- Global stopOnFail(true) should be overrideable with local stopOnFail HOT 2
- updateRouting() should be compatible HOT 1
- ODM is no longer supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admingeneratorgeneratorbundle.