Hi Stephane, Teresa went off...You can still continue with old school templating even at 4.x, we never stopped to support this. What stk basically is that it offers you an uniform templating framework which can speed up your development as it provides comparable benefits and is based on a foundation that carries Magnolia into the future. You would consider a migration to STK to gain access to the host of functionality it provides, like a solid maintainable and extensible framework, accessibility and SEO but of course you don't have to.
@ img x images - see modules/stk/virtualURIMapping/theme-img-to-dms -- Best regards, Zdenek Skodik Magnolia International Ltd. Magnolia® - Simple Open-Source Content Management On Fri, 2010-03-05 at 14:33 +0100, Gauthier, Stephane (CH) wrote: > ok, thanks for this I will try ... You know, I'm coming from the < 3.6 > v. magnolia templating old school ;-) > My and my team are about to migrate to 4.x and have a huge amount of > templates to be used and, using the STK for that, sounds like massive > work to adapt everything to that new way of doing things with > magnolia. > > Thx > > > ______________________________________________________________________ > From: [email protected] > [mailto:[email protected]] On Behalf Of Teresa Miyar > Sent: Friday, March 05, 2010 2:05 PM > To: Magnolia User-List > Subject: Re: [magnolia-user] Theme resources > > > > Some useful links: > > > http://wiki.magnolia-cms.com/display/DEV/STK+Book > http://wiki.magnolia-cms.com/display/DEV/Standard+Templating+Kit > > On Mar 5, 2010, at 1:51 PM, Teresa Miyar wrote: > > > Hi, > > > > > > It sure makes sense to use STK, for any new project you usually have > > to have you own site and templates, using STK you take advantage of > > STK features like the models in the templates/paragraphs, the > > rendering... > > The documentation is under way, i can explain quickly how the theme > > works: > > files: > > in jar: /templating-kit/themes/<name> (subfolder imgs and css) > > in Magnolia: Images: in the dms > > --> /templating-kit/themes/<name>/img > > Css files: in the > > resources /templating-kit/thems/<name>/css > > custom theme: For this purpose we will create a new module (Copy > > theme-pop structure or follow the steps > > in http://wiki.magnolia.info/display/WIKI/Module+QuickStart). > > In the module descriptor META-INF/magnolia/nameoftheme.xml you must > > define the theme version handler: > > < > > versionHandler>info.magnolia.module.templatingkit.setup.ThemeVersionHandler</versionHandler> > > Note: your theme requires a config bootstrap file in order to get > > bootstrapped correctly. It's important to use the following location > > and filename within your module JAR for this > > file: > > /mgnl-bootstrap/theme-<themeName>/config.modules.standard-templating-kit.config.themes.<themeName>.xml > > (especially note the theme- prefix for the folder name in mgnl-bootstrap). > > > > On Mar 5, 2010, at 1:24 PM, Gauthier, Stephane (CH) wrote: > > > > > Probably, I should ask things different way. > > > Does it make sense to use the standard templating kit if I have to > > > develop my own set of templates and site organisation? > > > > > > Thx > > > > > > > > > __________________________________________________________________ > > > From: [email protected] > > > [mailto:[email protected]] On Behalf Of Gauthier, > > > Stephane (CH) > > > Sent: Friday, March 05, 2010 12:46 PM > > > To: Magnolia User-List > > > Subject: RE: [magnolia-user] Theme resources > > > > > > > > > > > > Ok, I think my problem is that they can't be accessed from the > > > filesystem. I have checked in the stk configuration, it's right > > > there and I selceted the right Site Definition from the page info. > > > Thx, I think that it will help me investigate any further. > > > > > > That would be great to get a tutorial from magnolia on "Create > > > your own theme from scratch" > > > Cheers > > > > > > > > > __________________________________________________________________ > > > From: [email protected] > > > [mailto:[email protected]] On Behalf Of Teresa > > > Miyar > > > Sent: Friday, March 05, 2010 11:49 AM > > > To: Magnolia User-List > > > Subject: Re: [magnolia-user] Theme resources > > > > > > > > > > > > > > > On Mar 5, 2010, at 11:19 AM, Gauthier, Stephane (CH) wrote: > > > > > > > Yes, > > > > > > > > I understand that but, is it just a matter of creating nodes? > > > > > > > > > well, yes, the resources is a different workspace, you need to > > > create the new nodes there although is not necessary, they can be > > > accessed from the file system. If your theme is not loaded could > > > be that is missing form the stk configuration, or you didnt select > > > it in the page info of the home page. > > > > Waht's the difference between CSS and Processed CSS etc. ? > > > > > > > > > processed js and css means that you can use freemarker in this > > > files, also define model class and access the methods there from > > > inside css or js. > > > > > > > > > > > Anyway thx for the update > > > > > > > > > > > > ________________________________________________________________ > > > > From: [email protected] > > > > [mailto:[email protected]] On Behalf Of Teresa > > > > Miyar > > > > Sent: Friday, March 05, 2010 10:56 AM > > > > To: Magnolia User-List > > > > Subject: Re: [magnolia-user] Theme resources > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > The way we recommend to develop new themes is to create a new > > > > module, inside the module descriptor you need to specify the > > > > version > > > > handler: > > > > <versionHandler>info.magnolia.module.templatingkit.setup.ThemeVersionHandler</versionHandler> > > > > > > > > > > > > The version handler calls InstallThemeTask that you could > > > > probalby call directly from your version handler if you are not > > > > using a separate module for the theme. > > > > > > > > On Mar 5, 2010, at 10:20 AM, Gauthier, Stephane (CH) wrote: > > > > > > > > > Hi Magnolians, > > > > > > > > > > I'm about to develop my brand new theme from scratch to > > > > > understand the hassles of getting that working. > > > > > When I deploy my module magnolia doesn't install the css files > > > > > as resources despite that it is present in the bundle under > > > > > path: > > > > > > > > > > /templating-kit/themes/myTheme/css/mycss.css > > > > > I mean I can't see them in the Resources section of the > > > > > Templating Kit menu (Admin Central) and when rendering the > > > > > page they're not there. > > > > > > > > > > Shall I do something specific to get them installed? > > > > > Thx in advance for help > > > > > > > > > > Cheers > > > > > > > > > > Stéphane GAUTHIER > > > > > Intranet, Internet, Magnolia projects, Webmaster > > > > > IPB IT, W&I IT, Lloyds Banking Group > > > > > > > > > > ********************************************************************** > > > > > > > > > > This e-mail and any files transmitted with it are confidential > > > > > and intended solely for the use of the individual or entity to > > > > > whom they are addressed. If you have received this e-mail by > > > > > error please delete it immediately. Please remember that > > > > > e-mail transmission cannot be guaranteed to be secure or > > > > > error-free as information could be read, intercepted, altered > > > > > or corrupted by simple technical means. No liability or > > > > > responsibility is accepted if information or data is, for > > > > > whatever reason, corrupted or does not reach its intended > > > > > recipient. > > > > > > > > > > ********************************************************************** > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________________ > > > > > ---------------------------------------------------------------- > > > > > For list details see > > > > > http://www.magnolia-cms.com/home/community/mailing-lists.html > > > > > To unsubscribe, E-mail to: <[email protected]> > > > > > ---------------------------------------------------------------- > > > > > > > > > > > > > Best regards, > > > > > > > > Teresa Miyar > > > > Magnolia International Ltd. > > > > > > > > Magnolia® - Simple Open Source Content Management > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________________________________________ > > > > ---------------------------------------------------------------- > > > > 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]> > > > > ---------------------------------------------------------------- > > > > > > > > > > Best regards, > > > > > > Teresa Miyar > > > Magnolia International Ltd. > > > > > > Magnolia® - Simple Open Source Content Management > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________________________ > > > ---------------------------------------------------------------- > > > 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]> > > > ---------------------------------------------------------------- > > > > > > > > > > > > __________________________________________________________________ > > > ---------------------------------------------------------------- > > > For list details see > > > http://www.magnolia-cms.com/home/community/mailing-lists.html > > > To unsubscribe, E-mail to: <[email protected]> > > > ---------------------------------------------------------------- > > > > > > > Best regards, > > > > Teresa Miyar > > Magnolia International Ltd. > > > > Magnolia® - Simple Open Source Content Management > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________ > > ---------------------------------------------------------------- > > For list details see > > http://www.magnolia-cms.com/home/community/mailing-lists.html > > To unsubscribe, E-mail to: <[email protected]> > > ---------------------------------------------------------------- > > > > Best regards, > > Teresa Miyar > Magnolia International Ltd. > > Magnolia® - Simple Open Source Content Management > > > > > > > > > > > > > > > > > ______________________________________________________________________ > ---------------------------------------------------------------- > 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]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
