Using Blossom I can set the page fields from the Java in the TabFactory:

@TabFactory("Content")
        public void contentTab(UiConfig cfg, TabBuilder 
tab,DialogCreationContext  ctx) {
        
                SectionIdentifierValidatorDefinition idValidatorDefinition=new 
SectionIdentifierValidatorDefinition();
                idValidatorDefinition.setDialogCreationContext(ctx);
        
            final ArrayList<AbstractFieldBuilder> fieldList = new ArrayList<>();
                
                
                fieldList.add(cfg.fields
                                .text("title").i18n(true)
                                .label("Title")
tab.fields(fieldList.toArray(new AbstractFieldBuilder[0]));
        
        }
                                );

Then, if I want a version of of the field in my page for each language I have 
to add .i18n(true) in all the field definitions (I have hundred of fields in my 
application), while I would like to set this flag only once for all the fields 
of my pages, any idea?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=ff6c1cff-ab74-483b-a3cf-e02b963dc9f5


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to