Hi Lewis!

Yes, AFAIK this should work independantly of the template type (STK or other). 
It only works in the Enterprise Edition of Magnolia though, Community Edition 
can't do multi-site.

Using the hosts file is also how I do my tests for the url shortening and 
multi-site.

One more thing I forgot to mention: in addition to the "domains" node in your 
site definition, you also need to configure a "mappings" node. The mappings 
node tells magnolia how the path can be shortened.
Again, look at the demo-project site definition for an example of this.

Regards from Vienna & merry Christmas,

Richard

Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Lewis Leighton
Gesendet: Montag, 20. Dezember 2010 17:53
An: Magnolia User-List
Betreff: Re: [magnolia-user] Magnolia site root/context path?

HI Richard,

Thanks for the reply, sounds like this will sort it's self out if I alter my 
hosts file... Will it work for sites not created via STK?

Cheers!

Lewis


On 20 December 2010 15:48, Unger, Richard 
<[email protected]<mailto:[email protected]>> wrote:
Hi Lewis!
Magnolia should automatically shorten your URL when you access the site by it's 
domain name.

Configure Tomcat to accept any hostname for the virtual host. (Not needed if 
you are using the default host).
Configure your domain name in your site definition under the "domain" node (see 
demo-project for example).

Now access your site using your chosen domain-name. Magnolia should shorten the 
URL by removing the site-name from the beginning of the URLs.

So, if you are accessing using a "generic" hostname (like "localhost" for 
example), you need the site-name in the URL so magnolia knows which site you 
want.
When accessing the site using the specific domain-name, the URL can be 
shortened.

Hope that helps.

Regards from Vienna,

Richard


Von: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 Im Auftrag von Lewis Leighton
Gesendet: Montag, 20. Dezember 2010 15:11
An: Magnolia User-List
Betreff: [magnolia-user] Magnolia site root/context path?

Hi list,

I have set up a site on EE 4.3.2 that lives at "my-site-name".

Underneath my-site-name I have a series of pages set up like the tree below e.g:


-my-site-name
            -section-1
                        -sub-section-1
                        -sub-section-2
            -section-2
                        -sub-section-1
            -section-3
                        -sub-section-1


This is great and all pretty much works as expected with sub sections 
inheriting content from parent templates where necessary.

The only thing I would like to find out is how to configure Magnolia to remove 
the my-site-name context path from the urls of the public instance? For example 
"my-site-name" is the homepage so a link from "section-1" to "section-2" should 
appear as

<a href="/section-2">Section 2 Title</a>

but instead links that are selected via the CMS interface using the default 
config appear lie so

<a href="/my-site-name/section-2">Section 2 Title</a>

Hope the above makes sense and look forward to hearing about any solutions. The 
first example is the desired result :)

Thanks in advice for any help,

-Lewis

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



----------------------------------------------------------------------------------



The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee.  Access to this email by anyone else 
is unauthorised.  If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in reliance on 
it, is prohibited and may be unlawful.



QMetric Group Limited company number 07151701 the registered office of which is 
at 3 More Riverside, London, United Kingdom, SE1 2AQ.



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



--
[http://www.qmetric.co.uk/logo_email.gif]





----------------------------------------------------------------------------------



The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee.  Access to this email by anyone else 
is unauthorised.  If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in reliance on 
it, is prohibited and may be unlawful.



QMetric Group Limited company number 07151701 the registered office of which is 
at 3 More Riverside, London, United Kingdom, SE1 2AQ.




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

Reply via email to