1. #1
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    27
    ykey has a spectacular aura about ykey has a spectacular aura about

      2  

    Default 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
    ...

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    38
    Vote Rating
    1
    andyjl is on a distinguished road

      0  

    Default


    I am having this same problem as well.

  3. #3
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    27
    ykey has a spectacular aura about ykey has a spectacular aura about

      0  

    Default


    Bump. Don't want this to get buried until we hear some official response from a Sencha dev.

  4. #4
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    61
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default


    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.

  5. #5
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,428
    Vote Rating
    151
    dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold

      1  

    Default


    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
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  6. #6
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    27
    ykey has a spectacular aura about ykey has a spectacular aura about

      0  

    Default


    Thanks for replying Don. I have a work around for now but hope this makes it in.

  7. #7
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,428
    Vote Rating
    151
    dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold

      0  

    Default


    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.2
    Don Griffin
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Thread Participants: 3

Tags for this Thread