Hi K-J, *, On Tue, Apr 8, 2014 at 10:11 PM, K-J LibreOffice <[email protected]> wrote: > Hi Christian, > how will I get a link out from a box to a NL site? > Example: > The main page http://de.libreoffice.org/home?stage=Stage has some boxes with > links like /discover/libreoffice/
Yeah - those links are ugly part of the backend that needs fixing so it uses proper references that will update when the URLSegment is changed... > But this link will bring me to the international site > https://www.libreoffice.org/discover/libreoffice/?SubsiteID=20 Yes, this is for the preview to be able to work at all. Otherwise it would rely on DNS-names pointing to the instance (which they don't). It is not the international site though, as the german site is chosen using the SubsiteID parameter. It is the german site accessed using the www.libreoffice.org Domain. The link is not hardcoded to www.libreoffice.org - rather silverstripe use's the base-url where you're logged in at as base URL, and makes sure to select the proper subsite using the Query-parameter. so it is https://<url-used-to-access/admin>/discover/libreoffice/?SubsiteID=20 - and the /discover/libreoffice part is from the entry-box. All links use this scheme (also the navigation entries, regular links) So bottom line: When you access it outside of the cms' own preview. i.e. open http://www.libreoffice.org/?SubsiteID=20&stage=Stage directly in the browser, you have to add ?SubsiteID=20 parameter manually to all the links in the page. If you view it in the cms' preview, it is added for you, so you can click the links in the preview and get the correct page without having to manually add it. ciao Christian PS: might confuse people, so in PS :-)) The same also works in the opposite direction. For example you can browse to http://de.libreoffice.org/?SubsiteID=13 and get the content of the Finnish page. Or http://de.libreoffice.org/?SubsiteID=3 to get the old www.libreoffice.org site (with the exception that then the links in the content part don't have the ?SubsiteID parameter appended as well, so if you follow links you have to add it yourself/use a browser-extension that adds it automatically. -- To unsubscribe e-mail to: [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/website/ All messages sent to this list will be publicly archived and cannot be deleted
