> Reposting this as there was no response to the initial post, please > help. Even links to documents that answer these questions would be > useful.Thanks.
Please avoid re-posting, or at least wait more then barely a day. If no one responds, it is usually that everybody is busy and resending mail doesn't really help. > I am a Magnolia newbie and had some questions. I was able to > successfully install the Magnolia+Tomcat bundle and STK, and view the > demo site. congrats, you made the first step. > 1. I have now started creating my own site using the STK and was > wondering how I go about changing the HTML code generated by the > templates ie. where are the template definitions and how do I edit > them? Magnolia supports two kinds of templating languages - JSP and Freemarker. In general, when you package module, templates are always stored within the module jar file. JSP templates (you can see some if you install magnolia-module-samples) are then extracted to the webapp during installation so they can be compiled by JSP compiler of the app server you are running Magnolia on. Freemarker templates do not require compilation step so they are normally served directly from the module jars. In case of the STK, they are all also loaded to the "templates" repository so they can be accessed and modified and executed (if enabled) directly via AdminCentral. To see them go to the Templating Kit/Templates menu in AdminCentral. Of course there is nothing stopping you from storing freemarker templates in file system as well. > 2. In a similar vein, where are the CSS files for the templates > located and can they be edited? No veins, just repositories. ;) Similarly to templates all other resources such as CSS or JS can be served directly from the module jar files, from the file system and from the repository (called "resources" this time). The STK loads also this kind of resources to the repository and you can access it via AdminCentral, just go to the Templating Kit/Resources menu. You will find out that there are 2 different kinds of resources CSS (or JS) and "Processed CSS" (or "Processed JS"), the only difference between those types of templates is that in "processed" ones you can use Freemarker to manipulate how the outgoing CSS/JS will look like. > 3. Is there any documentation on creating a new CSS "theme" like the > bundled "POP" theme? Themes were discussed on the list just few days ago, please search the list archives for this topic. > 4. Currently I am able to access the public instance using > http://localhost:8080/magnoliaPublic. How do I remap this such that it > appears at http://my.domain.com/? Is this a Tomcat setting or a > Magnolia setting? This is app server setting. The only thing you need to take care of in Magnolia is to make sure that the intended server configuration is used. Magnolia normally resolve the configuration to use from the context name. More on this is at http://documentation.magnolia-cms.com/reference/configuration.html If you plan to develop on STK I would also suggest you read the STK Book on the wiki http://wiki.magnolia-cms.com/display/DEV/STK+Book HTH, Jan > > Many thanks in advance, > > Vikram > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
