Jahia Dev Forum > Using StaticAssetsFilter...

0 (0 Good)
0 (0 Bad)

Using StaticAssetsFilter in my own 'generic' module?

by  rvt »  2011/08/05 19:43

 

Hello!

 

Can I use StaticAssetsFilter in some way to let it load javascript/css files from my iwn 'generic' module?

THis would potientially prevent me from adding the same icons, javascript and css files to each module seperatly.

For example I use the same tabbed system in various modules, and it would be nice if I can have them loaded from one module.

 

Ries

  • Using StaticAssetsFilter in my own 'generic' module?
    2011/08/05 19:43

    rvt <p> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Hello!</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Can I use&nbsp;StaticAssetsFilter in some way to let it load javascript/css files from my iwn &#39;generic&#39; module?</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> THis would potientially prevent me from adding the same icons, javascript and css files to each module seperatly.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> For example I use the same tabbed system in various modules, and it would be nice if I can have them loaded from one module.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Ries</p>

  • Number of messages  185
    Registration date Aug 5, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Using StaticAssetsFilter in my own 'generic' module?

    by  rvt »  2011/08/29 02:40

     

    Hello!

     

    Can I use StaticAssetsFilter in some way to let it load javascript/css files from my iwn 'generic' module?

    THis would potientially prevent me from adding the same icons, javascript and css files to each module seperatly.

    For example I use the same tabbed system in various modules, and it would be nice if I can have them loaded from one module.

     

    Ries

     

    I found the answer in my own stupidity:

    Reading this : http://www.jahia.com/community/documentation/jahiapedia/jahia-modules/assets/index.html

    and http://www.jahia.com/community/documentation/jahiapedia/jahia-modules/assets/usage.html

     

    I came to the conclusion I had my 'depends' set incorrectly.

     

    Now I can add my js functions from a other module correctly and Jahia will look for the resources.

     

     

     

  • Re: Using StaticAssetsFilter in my own 'generic' module?
    2011/08/29 02:40

    rvt <blockquote> <p> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Hello!</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Can I use&nbsp;StaticAssetsFilter in some way to let it load javascript/css files from my iwn &#39;generic&#39; module?</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> THis would potientially prevent me from adding the same icons, javascript and css files to each module seperatly.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> For example I use the same tabbed system in various modules, and it would be nice if I can have them loaded from one module.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Ries</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> </blockquote> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> I found the answer in my own stupidity:</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Reading this :&nbsp;http://www.jahia.com/community/documentation/jahiapedia/jahia-modules/assets/index.html</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> and&nbsp;http://www.jahia.com/community/documentation/jahiapedia/jahia-modules/assets/usage.html</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> I came to the conclusion I had my &#39;depends&#39; set incorrectly.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> Now I can add my js functions from a other module correctly and Jahia will look for the resources.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #3b3ffb"> &nbsp;</p>

  • Number of messages  185
    Registration date Aug 29, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Using StaticAssetsFilter in my own 'generic' module?

    by  faissah »  2011/08/30 13:56

    Hello Ries,

    Thank you very much for sharing this answer with us!

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page