Page tree
Skip to end of metadata
Go to start of metadata

This module lets you store and maintain resources in JCR in the old, pre-Magnolia 5.4 way, which enables you to run templating processing on CSS,JS or other text-based resources, typically with freemarker (FTL).

For new projects, Magnolia encourages you to rather use the new resources system - but we provide this module as an assistance for maintaining existing projects.

This resource system can co-exist in parallel with the new Resource Cascade system introduced in 5.4 with light development, where resources can be provided by file as well as in JCR. But the two resource systems do not interact.

An overview of the two resource systems:

NameAvailability in standard bundleURL for accessFeatures
Resource Cascade (a part of light development)5.4 and greater/.resourcesSupply resoures via classpath, file, or JCR
Processed Resources (legacy)5.3 and earlier/resources

Template processing of resources

Processed resources are stored in the "resources" JCR workspace.






Usage

This module provides and installs a new 'Processed Resources' app which allows you to view and optionally edit resource files.

For full documentation on this feature, please consult the Magnolia 5.3 Resources documentation: https://documentation.magnolia-cms.com/display/DOCS53/Resources


Processed Resources App

Processed Resources App - Editor

Example of a resource that has been processed



Installation

Add the following dependency to your Maven project:

<dependency>
    <groupId>info.magnolia.resources</groupId>
    <artifactId>magnolia-processed-resources-app</artifactId>
    <version>{moduleVersion}</version>
</dependency>



Configuration

This module installs itself, and adds itself to the App Launcher Layout.
No configuration is required.



Versions and compatibility table

Compatibility

Module VersionMagnolia Version
1.1.x5.6.x

History

  •  Version 1.1: first public release for Magnolia 5.6.x



Contributions, questions or findings

Please share your ideas or questions in the comments area on this page.

If you run into a problem, or have a feature request, please report it here: https://github.com/magnolia-community/processed-resources/issues



Source code

Please find the source code on GitHubhttps://github.com/magnolia-community/processed-resources



Licensing

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

GPL v3 (https://www.gnu.org/licenses/)
MNA (http://www.magnolia-cms.com/mna.html)


  • No labels