-
11 Oct 2012 6:54 AM #1
How to share a custom theme in a multi-page ExtJS application
How to share a custom theme in a multi-page ExtJS application
I am wondering the best way to go about sharing a custom theme and resources like images in a multi-page ExtJS application build. It seems like it currently requires you to rebuild the theme for each individual page in your application.
I would like to store the theme at the workspace level and be able to build the "app" (all pages) by issuing the `sencha app build` command from the workspace directory. Then each page would just reference the theme from the build root.
Something like this..
Code:build\ build\resources\ build\resources\images build\resources\css build\page1\ ... build\page2 ...
-
12 Oct 2012 1:40 PM #2
I am having this same problem as well.
-
15 Oct 2012 6:50 AM #3
Bump. Don't want this to get buried until we hear some official response from a Sencha dev.
-
15 Oct 2012 12:12 PM #4
I'm also interested to hear what the "proper" way is, if one exists. The best I could do was hack together a not-too-great solution using the Ant integration of Sencha Cmd.
-
15 Oct 2012 2:20 PM #5
Sorry for the delay. I promise I haven't been ignoring your question ...
At present, elbow grease is about the only answer (and leveraging Ant is a good choice there). You could create a "theme app" (an app with just one theme) to help isolate the theme from "real" apps.
We will be working on a more elegant answer for future releases.Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
16 Oct 2012 4:09 PM #6
Thanks for replying Don. I have a work around for now but hope this makes it in.
-
26 Dec 2012 5:02 PM #7
The migration is underway - 3.0.2 moves themes into a proper package structure and 3.1 *should* see that structure be shared in a workspace.
http://www.sencha.com/forum/showthre...s-in-Cmd-3.0.2Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote