Page 1 of 1

Creating Custom Page in Admin in Broadleaf Commerce 2.2.0

Posted: Wed Sep 11, 2013 9:17 am
by hiteshsingla
Hi,
I am working with Broadleaf Commerce 2.2.0-GA
I was trying to create a new html page in admin using thymeleaf template, i created a controller for that also with the respective request mapping and even defined a layout map for the custom page in applicationContext-servlet-admin.xml like this

Code: Select all

<bean class="org.broadleafcommerce.common.web.BroadleafThymeleafViewResolver">
        <property name="templateEngine" ref="blAdminWebTemplateEngine" />
        <property name="order" value="1" />
        <property name="cache" value="false" />
        <property name="characterEncoding" value="UTF-8" />
        <property name="fullPageLayout" value="/admin/layout/fullPageLayout" />
        <property name="layoutMap">
            <map>
                <entry key="admin/login/" value="/admin/layout/loginLayout" />
                <entry key="admin/adminCustomPage/" value="NONE"/>
            </map>
        </property>
    </bean>

But still when I access the above mentioned url, I am getting this error
Exception evaluating SpringEL expression: "currentAdminModule.id == module.id" (admin/layout/partials/leftNav:11)

which means that still the layout for my custom page is fullPagfeLayout not NONE.
How can I configure my custom page to have no layout in admin?
I was able to implement the same page in site, that means my code is perfect and is working.But I need that to be in admin.
Glad if somebody can help me out.

Re: Creating Custom Page in Admin in Broadleaf Commerce 2.2.0

Posted: Sun Oct 13, 2013 1:42 am
by faizan
I need to do the same in broadleaf commerce 3.0. Did you got the solution for 2.2.0.
Please let me know how to proceed.
Thanks in advance

Re: Creating Custom Page in Admin in Broadleaf Commerce 2.2.0

Posted: Mon Nov 25, 2013 2:45 am
by Deepak
Did any one can help me about how to custom a page in admin for the broadleaf version 3.0.2-GA in site i worked it is successfully working am trying in admin it is not at all coming so any one suggest me in better way to sort this pbm


regards
deepak