Package info.magnolia.rendering.template

Examples of info.magnolia.rendering.template.TemplateDefinition


            if(!(ctxObj instanceof RenderingContext)){
                throw new TemplateProcessingException("Musst pass a RenderingContext here");
            }

            RenderingContext renderingContext = (RenderingContext)ctxObj;
            TemplateDefinition templateDefinition = (TemplateDefinition)renderingContext.getRenderableDefinition();
            String dlg = templateDefinition.getDialog();
            if(dlg!=null){
                helper.attribute("dialog", dlg);
            }
            helper.attribute("preview", String.valueOf(MgnlContext.getAggregationState().isPreviewMode()));
View Full Code Here

TOP

Related Classes of info.magnolia.rendering.template.TemplateDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.