On Wed, 2009-12-09 at 16:20 +0100, Hay (Husky) wrote:
> Hi everyone,
> another question. I'm trying to build a custom theme, using the STK,
> which i already put in a module. For development i've already found
> the 'bypass' flag to develop CSS and Javascript files on my local
> filesystem. However, i need something similar for images that i want
> to use in my theme (icons, backgrounds, etc.). Of course, i could
> upload them all to the DAM and load them from there, but it seems to
> me there should be an easier solution, because otherwise i need to
> bootstrap all image files in the DAM with my module.
The easiest thing would be to change the VirtualURIMapping to point to a
local folder for the resources instead of the DMS during theme
development if you want to develop it against live instance. Other
option is to tune your theme against the html prototype (part of the STK
bundle) and then just copy all resources into your theme. The advantage
of the prototype is that it shows all the elements produced by STK and
it is static HTML which should make your life as a designer much easier.
>
> I've already found out that the standard pop theme from the STK does
> something magical with images on the filesystem that are automatically
> loaded in the DAM, but i can't find out how to reproduce that in my
> own module.
The magic you are referring to is performed by
info.magnolia.module.templatingkit.setup.ThemeInstallTask that installs
resources to repo while installing the module.
HTH,
Jan
>
> Kind regards,
> -- Hay Kranen
> Frontend developer VPRO Netherlands
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------