So we are trying to use Blossom without the STK. We still want to be able to 
import resources to the content repository from our module so we do the 
following

@Override
    protected List<Task> getExtraInstallTasks(InstallContext ctx) {

        final List<Task> extraInstallTasks = new ArrayList<Task>();

        // Red theme
        extraInstallTasks.add(new 
InstallResourcesTask("/WEB-INF/classes/themes/default/.*.css", "resources", 
false));
        extraInstallTasks.add(new 
InstallResourcesTask("/WEB-INF/classes/themes/default/.*.js", "resources", 
false));
        extraInstallTasks.add(new 
InstallResourcesTask("/WEB-INF/classes/themes/default/.*.png", "resources", 
true));
        extraInstallTasks.add(new 
InstallResourcesTask("/WEB-INF/classes/themes/default/.*.gif", "resources", 
true));
        extraInstallTasks.add(new 
InstallResourcesTask("/WEB-INF/classes/themes/default/.*.jpg", "resources", 
true));

        extraInstallTasks.add(new PropertiesImportTask("Joors","Joors 
properties","resources","joors.properties"));

        // Green theme
        /*
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/green/.*.css", "resources:css", false));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/green/.*.js", "resources:js", false));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/green/.*.png", "resources:binary", true));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/green/.*.gif", "resources:binary", true));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/green/.*.jpg", "resources:binary", true));
        */

        // Blue theme
        /*
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/blue/.*.css", "resources:css", false));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/blue/.*.js", "resources:js", false));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/blue/.*.png", "resources:binary", true));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/blue/.*.gif", "resources:binary", true));
        extraInstallTasks.add(new 
InstallResourcesTask("/joors/themes/blue/.*.jpg", "resources:binary", true));
        */

        return extraInstallTasks;
    }



We are expecting this to show up under Templating kit -> Resources but no luck.

So the questions are

1. Is this the way we should add our resources to the content repository or 
not? In a dream scenaio we add our content like this (maybe sing a delta 
instead of this since we always want tem to be installe) and then we access 
them from the JSP pages using the path /resources/css... or somehitng similar

2. What about properties? We use the i18BaseName in our controllers and we 
where expecting that to work but of cause the property files are not in the 
content repository so it doesnt work. My guess then is that we have to add them 
under /resources/com/joors/joors.properties for example adn then it will work. 
Is that so? If so should I use something like this 
new PropertiesImportTask("Joors","Joors 
properties","resources","joors.properties")

3. What about if we want to add sub node under resources can we the just write 
resources:css as the workspace or do we first have to manually create the css 
node under resources.

All this is done in Java code so if anyone can answer if Yes/No this is the way 
to do t and have example code it would be appreciated.


Thanks

Magnus

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=3bf90cf0-1c2c-49b1-9bf0-8a1987a96267


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

Reply via email to