@Himasha, I think it should be "store-common".
@Chanaka Okay, will try to debug and isolate the error. Thank you On Thu, Sep 10, 2015 at 1:29 PM, Chanaka Jayasena <[email protected]> wrote: > Issue seems to be with the navigation.hbs. To fix it add navigation.hbs to > partial to > <CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/themes/store/partials/. > > > Start with an en empty file. You will be able to get rid of the error. > Then type {{dump .}} in the file to see the data coming there. Try to > compare the data with the original partial data in > "store/themes/store/partials/pagination.hbs" > > > thanks, > Chanaka > > On Thu, Sep 10, 2015 at 11:15 AM, Rasika Perera <[email protected]> wrote: > >> Hi all, >> >> I am trying to partially override a global page in ES v2. I followed this >> [1] doc. Here are the steps I followed; >> >> 1. Created "shell" of an app extension called "store-device" in >> "<CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app" >> path. >> >> 2. Added a dependency to "store-common" and overridden app.server() >> callback method on app.js on >> "<CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/app.js" >> path. >> >> app.dependencies = ['store-common']; >> app.server = function(ctx) { >> return { >> endpoints: { >> pages: [ >> title:'Store | My Items', >> url:'my-items', >> path:'my_items.jag', >> secured:true, >> permission:'APP_MYITEMS' >> }] >> }, >> >> 3. Added an overriding controller "my_items.jag" on " >> <CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/pages/" >> path. >> >> 4. Added an overriding renderer "my_items.js" on >> "<CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/themes/store/renders/pages/" >> path. >> >> 5. Added an overriding partial "my_items.hbs" on " >> <CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/store-device/themes/store/partials/" >> path. >> >> ---------- >> >> When trying to access the my page on " >> https://localhost:9443/store/pages/my-items"; I am getting a "TypeError: >> Cannot read property "types" from undefined". Complete log can be found on >> [2]. >> >> Complete "store-device" shell's folder structure is as follows; >> >> >> <CARBON_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/store-device >> | >> |---*app.js* >> |---pages >> | `---*my_items.jag* >> `---themes >> |---default >> | `---renderers >> | `---pages >> | `---*my_items.js* >> `---store >> `---partials >> `---*my_items.hbs* >> >> Any help to solve this problem will be greatly appreciated. >> >> Thank you >> >> Links >> [1] https://docs.wso2.com/display/ES200/Overriding+a+Global+Page >> [2] Error log; see the attachment: console_log.txt >> >> -- >> With Regards, >> >> *Rasika Perera* >> Software Engineer >> M: +94 71 680 9060 E: [email protected] >> LinkedIn: http://lk.linkedin.com/in/rasika90 >> >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Chanaka Jayasena > Senior Software Engineer; WSO2, Inc.; http://wso2.com/ > email: [email protected]; cell: +94 77 785 5565 > blog: http://chanaka3d.blogspot.com > -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: [email protected] LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
