Hi Jan!

The site definition is assigned to the website-nodes via the "mappings" and 
"domains" configuration in the site definition.
In the "domains", configure a URL for your site, eg "site2.mydomain.com". After 
that, requests for site2.mydomain.com will be associated with your site2 site 
definition.
To determine which content is served, edit the "mappings". Set the "website" 
mapping ("handlePrefix" property) to point to your website root in the website 
repository, e.g. handlePrefix=/site2

Hope that helps,

Regards from Vienna,

Richard



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Jan-Hendrik Lendholt
Gesendet: Freitag, 26. August 2011 11:41
An: Magnolia User-List
Betreff: Re: [magnolia-user] Re: Extending Magnolia Standard Template / 
Magnolia EE


Matteo,

Thanks for your response.

I just cloned the default entry under "Site Definitions", changed the template 
of the "main area" to another template with slightly different template scripts.

But I have no clue how to assign this site definition to my website site2.

Thanks for any help,

Jan


Am 25.08.11 09:38 schrieb "Matteo Pelucco" unter
<[email protected]>:

> 
> Il 24.08.2011 16:20, Jan-Hendrik Lendholt ha scritto:
>> 
>> Okay,
>> 
>> New to the list and really overwhelmed by the complexity, I am trying 
>> to find an entry to the multi-site feature with different layouts / 
>> templates.
> 
> Hi Jan, let's see..
> 
>> Some things I don't understand:
>> 
>> - I couldn't find the template files in the file system; But the 
>> files of the samples-addon were in /templates
> 
> Templates are served directly from STK Template repository, you can 
> find them in AdminCentral, on the left menu, under "Templating Kit" > 
> "Templates". Resources (JS / CSS) are under "Resources" repo.
> 
>> - How do I apply a template to a website? Neither could I assign it 
>> on the "Website" tab nor in the page info dialog.
> 
> In a site definition you need to assign a template to a site.
> Then, be careful about template "category". For instance, at first 
> time of a site tree, you can only assign template with "home" for category..
> Read official docs about this..
> 
> http://documentation.magnolia-cms.com/templating/stk/configuration.htm
> l#Templa
> teCategoriesandSubcategories
> 
>> - How do I distinguish the stylesheets from page1 and page2?
> 
> Each site def can have its own theme, with different css / js.
> Duplicate a theme, change css and assign it in site definition to your 
> second site.
> 
>> I know my questions are quite general but I hope you can give me some 
>> help or orientation.
> 
> Ask and it will be give to you ;-)
> HTH!
> Matteo
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 
> 
> 



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to