Hi,

I found a solution to my problem. For everyone who is interested I have
appended my modified config.json.


Regards, Florian



Hello Thomas,

let me answer your questions directly inside the text:
 
> a couple of questions here:
> 
> a) What does "docroot/cms/index.html (includes qooxdoo app)" mean?! Is
> it the qooxdoo app? Is this the index.html from e.g.
> docroot/cms/modules/mymodule/source?

Yes it is. Of course with an adapted include of the application script.
 
> b) Can you load the URL
> http://localhost/cms/modules/mymodule/source/index.html in a browser?
> What happens?

This works without problem, either with the source or build version.
 
> c) How do you plan to integrate the qooxdoo app with the CMS system?
Is
> there some link in your CMS that on click changes the current page to
> load the qooxdoo app? Which URL do you envision the qooxdoo app to
> have?

The cms provides a link to a page which contains the qooxdoo application
(standalone or inline). Explained with my given example, the url might
be

http://mydomain/cms/load.php?name=mymodule

This url would return the following file:

/docroot/cms/modules/mymodule/index.php

In this file, the qooxdoo application script is loaded:

< script type="text/javascript"
src="modules/__NEWMODULE__/source/script/myapp.js"> </script >

An example of such a scenario can be found here (this qooxdoo 0.8
version is some weeks old):

http://qooxdoo.2f-cms.com/load.php?name=Fotogalerie&file=image&id=1&pic_
no=0&cat=2&alone=0

In the meantime I found a configuration, that works with the current
qooxdoo 0.8 version and which fulfills my requirements. In this
configuration I use an additional subfolder "qx" for my qooxdoo files.
The qooxdoo sdk is located in the webserver's documentroot folder
"docroot/qooxdoo_0_8". 

I have appended the config.json file at the end of my mail.


Regards, Florian


config.json:
{
  "name"    : "__NEWMODULE__",

  "include" :
  [
    {
      "path" :
"../../../../../../qooxdoo_0_8/tool/data/config/application.json",
        "as"   : "genericapp"
    }
  ],

  "let" :
  {
    "QOOXDOO_PATH" : "../../../../../../qooxdoo_0_8/framework",
    "QOOXDOO_URI"  : "../${QOOXDOO_PATH}",
    "APPLICATION"  : "myapp",
    "MODULE_PATH"  : "modules/__NEWMODULE__",
    "APP_URI"      : "${MODULE_PATH}/qx",
    "QXTHEME"      : "qx.theme.Modern",
    "LOCALES"      : [ "en" ],
    "CMS_DIR"      : "../../..",
    "ROOT"         : ".",
    "BUILD_PATH"   : "build",
    "SOURCE_PATH"  : "source"
  },
  
  "jobs" :
  {
    // the next one is needed wherever the local lib is to be scanned
    "scan-local-lib" :
    {
      "extend" : ["genericapp::scan-local-lib"]
    },


    "common" :
    {
      "library" :
      [
        {
          <see "qooxdoo_0_8/tool/data/config/base.json">
        },

        {
          "manifest" : "${ROOT}/Manifest.json",
          "uri"      : "${APP_URI}"
        }
      ],

      "include" :
      [
        <see "qooxdoo_0_8/tool/data/config/base.json">
      ],

      "settings" :
      {
        <see "qooxdoo_0_8/tool/data/config/base.json">
      }
    },


    // -- source jobs --------------------------------------------------

    "source-script" :
    {
      "extend" : ["common"],

      "compile-source" :
      {
        "file"    : "${SOURCE_PATH}/script/${APPLICATION}.js",
        "locales" : "${LOCALES}",
        "root"    : "../${CMS_DIR}/${SOURCE_PATH}"
      }
    },


    "source" :
    {
      "extend" : ["genericapp::source"],
      "run" :
      [
        "source-script"
      ]
    },

    // -- build jobs ---------------------------------------------------

    "build-script" :
    {
      "extend" : ["common"],

      "variants" :
      {
        "qx.debug" : ["off"]
      },

      "compile-dist" :
      {
        "resourceUri" : "${BUILD_PATH}/resource",
        "target"      : "${APP_URI}/${BUILD_PATH}",
        "file"        : "${BUILD_PATH}/script/${APPLICATION}.js",
        "uri"         :
"${APP_URI}/${BUILD_PATH}/script/${APPLICATION}.js",
        "root"        : "${CMS_DIR}/${APP_URI}",
        "format"      : "on",
        "locales"     : "${LOCALES}",
        "optimize"    : ["basecalls", "variables", "privates",
"strings"]
      }
    },


    "build-files" :
    {
      <see "qooxdoo_0_8/tool/data/config/base.json">
    },


    "build-resources":
    {
      <see "qooxdoo_0_8/tool/data/config/base.json">
    },


    "build" :
    {
      "extend" : ["genericapp::build"],
      "run" :
      [
        "build-resources",
        "build-script",
        "build-files"
      ]
    }
  }
}

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to