Package com.dotmarketing.portlets.templates.design.bean

Examples of com.dotmarketing.portlets.templates.design.bean.TemplateLayout


                title = (String) request.getAttribute( "title" );
            }
        }

        //Parse and return the layout for this template
        TemplateLayout layout = DesignTemplateUtil.getDesignParameters( drawedBody, isPreview );
        layout.setTitle( title );

        return layout;
    }
View Full Code Here


     * @return
     */
    public static TemplateLayout getDesignParameters ( String drawedBody, Boolean isPreview ) {

        Document templateDrawedBody = Jsoup.parse( drawedBody );
        TemplateLayout parameters = new TemplateLayout();
        parameters.setPageWidth( getPageWithValue( templateDrawedBody ) );
        parameters.setHeader( hasHeader( templateDrawedBody ) );
        parameters.setFooter( hasFooter( templateDrawedBody ) );
        parameters.setLayout( getLayout( templateDrawedBody ) );
        //Set the body layout to the template
        setLayoutBody( parameters, templateDrawedBody, isPreview );

        return parameters;
    }
View Full Code Here

      setForward(req, "portlet.ext.templates.design_template");
    }else if(isDrawed){
      req.setAttribute(WebKeys.OVERRIDE_DRAWED_TEMPLATE_BODY, true);
      // create the javascript parameters for left side (Page Width, Layout ecc..) of design template
      Template template = (Template) req.getAttribute(WebKeys.TEMPLATE_EDIT);
      TemplateLayout parameters = DesignTemplateUtil.getDesignParameters(template.getDrawedBody());
      req.setAttribute(WebKeys.TEMPLATE_JAVASCRIPT_PARAMETERS, parameters);
      setForward(req, "portlet.ext.templates.design_template");
    }else
      setForward(req, "portlet.ext.templates.edit_template");
    // *********************** END GRAZIANO issue-12-dnd-template   
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.templates.design.bean.TemplateLayout

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.