Hey guys, pretty new to the Magnolia environment, but I'm really wondering what I'm doing wrong atm.
As soon as I try to add a component to my "content" area I get an error. My code is as follows: [b]Template page:[/b] [code][@cms.area name="content" /][/code] [b]Component centeredtextarea.yaml[/b] [code]templateScript: /hello-magnolia/templates/components/content/centeredtextarea.ftl renderType: freemarker dialog: hello-magnolia:components/content/centeredtextarea title: Centered text area [/code] [b]Component centeredtextarea.ftl[/b] [code][#if content.text?has_content] <div class="col-md-8 col-md-offset-2 div-xs-12 col--centered-textarea"> [#if content.header?has_content]<h2>${content.header}</h2>[/#if] [#if content.contenttext?has_content]${cmsfn.decode(content).text}[/#if] <!-- <p class="p--margin-top">With a single platform to manage payments across online and in-store, staff are able to treat every transaction as if it were an e-commerce transaction. Therefore, even if an item is not in stock, staff have the option to make the sale immediately and have the item delivered at a future date. This “Endless Aisle” improves the shopper experience, ensures the sale is not lost, and grows in-store revenue all at once. Your staff will never need to say no to a shopper again. Adyen offers a number of in-store payments solutions that all operate on its single platform, including tablets, a variety of Verifone payment terminals, and the Adyen Shuttle. </p> --> [#if content.linkbutton?has_content]<a href="#" class="link">${$content.linkbutton}</a>[/#if] </div> [/#if] [/code] [b]Dialog - centeredtextarea.yaml [/b] [code]form: tabs: - name: tabText label: Centered textarea fields: - name: header class: info.magnolia.ui.form.field.definition.TextFieldDefinition label: Header text - name: contenttext class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition label: Content text - name: linkbutton class: info.magnolia.ui.form.field.definition.LinkFieldDefinition label: Link Button actions: commit: class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition cancel: class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition[/code] I have some buttons set up in the same manner, which work, and I even copied those files and edited them. I must be missing something essential? Regards, Simon -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=60b1b8bd-2b36-4e43-8684-e3d9b5386519 ---------------------------------------------------------------- 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-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------