Hi Thomas,
Yes, if you want to use a component you must define it in your module
descriptor. See some existing modules for examples. There is a <components>
section, something like:
<components>
<id>main</id>
<component>
<type>ch.tmit.StaticHelpers</type>
<implementation>ch.tmit.StaticHelpers</implementation>
</component>
</components>
should do the trick...
Regards from Vienna,
Richard
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:user-list-owner@magnolia-
> cms.com] Im Auftrag von Thomas Walsh (via Magnolia Forums)
> Gesendet: Dienstag, 08. Juli 2014 14:00
> An: Magnolia User List
> Betreff: [magnolia-user] Re: Shared Freemarker variables in Magnolia 5
>
> Hi Richard,
>
> Thanks for your reply. We are working with the STK renderer.
>
> This is what we tried:
>
> module
> >standard-templating-kit
> >>renderers
> >>>stk
> >>>>contextAttributes
> >>>>>tmitutil
> >>>>>>componentClass = ch.tmit.StaticHelpers name = tmitutil
>
> Our definition seems to be ok but we are getting another error:
>
> 2014-07-07 16:55:29,526 ERROR
> ndering.engine.ModeDependentRenderExceptionHandler: Error while
> rendering [/Paulo-Coelho] with template [tmit-module:pages/Home] for URI
> [/Paulo-Coelho.html=book=]:
> RenderException: info.magnolia.objectfactory.NoSuchComponentException:
> No component configuration for type [ch.tmit.StaticHelpers] found. Please
> add a configuration to your module descriptor.
> info.magnolia.rendering.engine.RenderException:
> info.magnolia.objectfactory.NoSuchComponentException: No component
> configuration for type [ch.tmit.StaticHelpers] found. Please add a
> configuration to your module descriptor.
>
> Is there something we have to add to the module descriptor?
>
> Regards,
>
> Tom.
>
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=26416137-7bc4-4b02-8aea-
> f3f1afa90bd0
>
>
> ----------------------------------------------------------------
> 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]>
> ----------------------------------------------------------------
----------------------------------------------------------------
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]>
----------------------------------------------------------------