Matteo Pelucco ha scritto:
 them into <head></head> tag, so I need to know wich
resources to load BEFORE paragraph rendering phase.

My idea is to use a template renderer, but how can I discover active paragraphs?

I have also the problem to discover CSS and JS resources needed by inherited paragraphs (in the SiteDesigner way).

Almost done (phew...) but:

I added this extra config to some paragraphs:

+ mainMenu
  + js
    - menuManager: /docroot/.../menuManager.js
    - menuPreloader: /docroot/.../menuManager.js
  + css
    - menuCss: /docroot/.../mainMenu.css
  - description: ...
  - dialog: ...
  ...other usual paragraph node data...

In my template renderer I can obtain all content paragraphs BEFORE rendering them. But how can I read config worskpace in order to obtain <js> content node or <css> content node starting only from a single info.magnolia.cms.beans.config.Paragraph object?

The only useful attribute is paragraph.getName(), I think..

M.


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to