Hi Sing, [quote]I'm also playing with the templating samples. How can I modify the ftl templates in admincentral?[/quote]
The Freemarker examples that ship with the Templating Samples module are inside the module JAR. You can't edit them in AdminCentral out of the box but you can create the same script in the repository, make it override the script in the JAR, then edit the script in AdminCentral. Here's how: 1. Find the name and location of the Freemarker script you want to edit. The scripts are also in Git. http://git.magnolia-cms.com/gitweb/?p=modules/templating-samples.git;a=tree;f=src/main/resources/samples 2. Go to STK > Templates and create the same folder hierarchy and script in the repository. For example, if you want to edit the /samples/pages/main.ftl script, create the folders /samples/pages and create a main.ftl script inside the last folder. 3. Check the "Enable template" box in the script dialog. Checking the box forces Magnolia to use your script instead of the one in the JAR. The process is documented here. http://documentation.magnolia-cms.com/display/DOCS/Loading+and+editing+template+scripts#Loadingandeditingtemplatescripts-Editingscriptsintherepository --Antti -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=811c1013-ec5a-45c0-b8dd-f70b6e35d38e ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
