Lennart Kruse (via Magnolia Forums)
2013-07-05 09:47:17 UTC
Hi,
this is the first time I use Magnolia and I'm having a hard time building my own template:
Right now I have a page template in [Configuration]/modules/templating/templates/pages/home. This works, I can use this template for a new page.
Then I added an area (type: list) as described in [url]http://documentation.magnolia-cms.com/templates/introduction.html#Areas[/url]. This works as well, meaning I see the component selector within my page's preview.
Now the tricky part: Building a custom component and wire it with my area list. I tried building the component in [Configuration]/modules/templates/components/largeTeaser, as described in [url]http://documentation.magnolia-cms.com/templates/introduction.html#Components[/url], but how do I wire it to my area list? The documentation says to use [quote]<module name>:<relative path to component>[/quote], which would be [quote]templating:templates/components/largeTeaser[/quote], right? But the result is: [quote]ERROR fo.magnolia.pages.app.action.CreateComponentAction: Exception caught: No template definition registered for id: templating:templates/components/largeTeaser[/quote]...
BTW: I would suggest to add an example to the documentation. And [url]http://documentation.magnolia-cms.com/templates/stk/template-prototype.html#Availablecomponents[/url] says components "are typically configured in Template Definitions > /components" - isn't this inconsistent? If not: How do I wire components from there?
Thanks in advance,
crusy
this is the first time I use Magnolia and I'm having a hard time building my own template:
Right now I have a page template in [Configuration]/modules/templating/templates/pages/home. This works, I can use this template for a new page.
Then I added an area (type: list) as described in [url]http://documentation.magnolia-cms.com/templates/introduction.html#Areas[/url]. This works as well, meaning I see the component selector within my page's preview.
Now the tricky part: Building a custom component and wire it with my area list. I tried building the component in [Configuration]/modules/templates/components/largeTeaser, as described in [url]http://documentation.magnolia-cms.com/templates/introduction.html#Components[/url], but how do I wire it to my area list? The documentation says to use [quote]<module name>:<relative path to component>[/quote], which would be [quote]templating:templates/components/largeTeaser[/quote], right? But the result is: [quote]ERROR fo.magnolia.pages.app.action.CreateComponentAction: Exception caught: No template definition registered for id: templating:templates/components/largeTeaser[/quote]...
BTW: I would suggest to add an example to the documentation. And [url]http://documentation.magnolia-cms.com/templates/stk/template-prototype.html#Availablecomponents[/url] says components "are typically configured in Template Definitions > /components" - isn't this inconsistent? If not: How do I wire components from there?
Thanks in advance,
crusy
--
Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=ddd1f3fc-7878-4bfc-9692-75c25fd2dbd7
----------------------------------------------------------------
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: <user-list-***@magnolia-cms.com>
----------------------------------------------------------------
Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=ddd1f3fc-7878-4bfc-9692-75c25fd2dbd7
----------------------------------------------------------------
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: <user-list-***@magnolia-cms.com>
----------------------------------------------------------------