Ilievski Bozidar wrote: > Hi Magnolians, > > I the last few days I was playing around with the Magnolia multi-site support, > in order to create a version of our website for mobile devices. > But so far, I was not able to make it work as I expected it should. > > My goal is to define two site configurations, which are mapped to one site > (here by 'site' I mean a level 0 page in the website repository). > These two site configuration will then use different Themes (mainly css files) > to make the website look differently when viewed in a mobile device. > > So, I have two site configurations: > 1. desktop > - mapping > - handlePrefix: /home > - repository: website > - domain: mywebsite.com > 2. mobile > - mapping > - handlePrefix: /home > - repository: website > - domain: m.mywebsite.com > > As you can see, the only difference is in the domain configuration. > They are both mapped to "/home" in the website repository. > > After setting these two site configurations, the multi-site engine > looks confused and doesn't work as expected. > Depending on the order of the site configurations, works correctly > for one of the sites, but not for the other. > From what I've noticed, Magnolia guesses the site configuration correctly > based on the domain I use to access the application, > but then when generating the links it somehow uses the domain mapped to > the other site and generates absolute links with the wrong domain. > > So, my question would be: > Is it possible to use magnolia multi site support as I'm trying to use it > (meaning, to map two site definitions to one site)?
I don't believe it's intended to work like this. It's meant to support hosting multiple separate sites AFAIK. But it may be somehow possible to do what you're trying to do, I don't know. Have you looked at openmindLAB's Magnolia Mobile module? http://www.openmindlab.com/lab/products/mgnlmobile.html Nils. ------------------------------------------------------------------------ VPRO phone: +31(0)356712911 e-mail: [email protected] web: www.vpro.nl ------------------------------------------------------------------------ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
