Main Content

Magnolia Community Forums: Development: Light Module App/SubApp template


  • whiff
    whiff
    Full name: Mikael
    Posts: 2
    Last post: Jun 20, 2016 2:12:13 PM
    Registered on: Jun 14, 2016
    Light Module App/SubApp template
    #1 by whiff on Jun 14, 2016 6:49:41 AM

    I want to build a custom app with a light module. I just want to develop it on the client side (no java) with Angular and freemarker templates. How do I "link" my BaseSubApp to a freemarker template with my js/css? Is this possible? Reading the documentation just confuses me... Shouldnt this be a really simple thing to to?

    What I want to accomplish:
    * App launcher icon on the dashboard
    * Freemarker template(s)
    * SPA Angular app inside the app/subapp

    Is there any example on this or someone who can point me in the right direction for this setup if it's possible?

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 197
    Last post: May 12, 2017 10:04:59 AM
    Re: Light Module App/SubApp template
    #2 by cmeier on Jun 15, 2016 1:58:56 PM

    You are adressing a bunch of topics :-)
    Which documentation have you read but were confusing you?

    Here are some links which i would propose to have a look at:


    (1)
    This one contains an example about accessing content from a content app via angular from the client side:
    https://documentation.magnolia-cms.com/display/DOCS/Accessing+content+on+the+client+side

    (2)
    This one contains an example about accessing content from a content app via freemarker:
    https://documentation.magnolia-cms.com/display/DOCS/Accessing+content+on+the+server+side

    For sure you also could do a mixture of (1) and (2) - using angular within a freemarker template ... if this makes sense.

    (3)
    Some more pages which i have recently created for a workshop before the Magnolia conference covering very similar topics:
    https://documentation.magnolia-cms.com/display/WIKI/Setting+up+Magnolia
    (You may also want to check the sibbling pages)

    (4)
    For the placement of the app launcher tile, have a look at:
    https://documentation.magnolia-cms.com/display/DOCS/App+launcher+layout

    The following sentences you have to explain in more detail ... i don't know what you want to do exactly.
    >> How do I "link" my BaseSubApp to a freemarker template with my js/css? Is this possible? <<
    However, i hope the links i have provided will be helpfull.

    Cheers,
    Christoph

  • whiff
    whiff
    Full name: Mikael
    Posts: 2
    Last post: Jun 20, 2016 2:12:13 PM
    Registered on: Jun 14, 2016
    Re: Light Module App/SubApp template
    #3 by whiff on Jun 20, 2016 2:12:13 PM

    Thanks for your response Christoph!
    Yeah I'll guess I don't understand Magnolias way of doing things.

    The following sentences you have to explain in more detail ... i don't know what you want to do exactly.

    The easiest way to describe what I want to do is How do I make a AppLauncher for the Hello Magnolia light module example without any Java?
    https://documentation.magnolia-cms.com/display/DOCS/Hello+Magnolia

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 197
    Last post: May 12, 2017 10:04:59 AM
    Re: Light Module App/SubApp template
    #4 by cmeier on Jun 21, 2016 10:05:07 AM

    Dear Mikael


    The easiest way to describe what I want to do is How do I make a AppLauncher for the Hello Magnolia light module example without any Java?
    https://documentation.magnolia-cms.com/display/DOCS/Hello+Magnolia


    (1)
    You want to make an App Launcher ... or i guess you want to add a *App launcher tile*.
    Please note that an *App launcher tile* is meant to launch an app (https://documentation.magnolia-cms.com/display/DOCS/_What+is+the+App+launcher).
    See , https://documentation.magnolia-cms.com/display/DOCS/Apps to understand what an *App* is (in the Magnolia context).
    Furthermore, the page https://documentation.magnolia-cms.com/display/DOCS/App+launcher+layout explains how to add an App launcher tile to your Magnolia instance (to launch one of *your* apps).

    (2)
    When following the "Hello Magnolia" tutorial, there is no new app created. All what happens, one creates a light module named "hello-magnolia", which contains a page template, a component template, 2 dialogs and some css, but NO app.

    Neither in (1) nor in (2) you need Java.

    A (light) module may contain 0 to many apps, hello-magnolia has none. Therefore, no need to add an extra app launcher tile to the app launcher.

    I still don't know exactly, what you try to achieve.
    However, if your use case requires an app - then create an app - with or without Java.
    The page https://documentation.magnolia-cms.com/display/DOCS/My+first+content+app would give you some first ideas ho to create an app.

    Cheers,
    Christoph

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/