Linking in Sharepoint
What is the proper way of linking a page within SharePoint to another page?
At the moment I am putting in http://servername/location/name_of_page.aspx
My concern is that at some point in the future I may rename the server to something else, which would cause links to break.
I've seen somewhere some people would use /_layouts/images/picture.jpg to change the default logo of SharePoint to suit their own rather than putting in http://servername/images/picture.jpg.
I've tried various ways but getting nowhere with it. Any pointers?
Depends where you want to store the file. In the case of a page I would suggest you continue with http://servername/location/name_of_page.aspx as this will link to a page within your SharePoint site.
Originally Posted by Chuckster
You will find that if you specify the path as http://servername/location/name_of_page.aspx, the 'http://servername' is known to the system, and it will create a relative path for you. Thus renaming the server at a later date should not pose a problem.
/_layouts/images/picture.jpg points to a file on the server itself - so the site images for example could be stored centrally there away from the site, if you prefer.
I like "Pages/Home.aspx" and "Images/smile.jpg", really good if you like creating templates.
Why can't you link without the servername part? it "/location/name_of_page.aspx"?
I do link with the servername in them but my NM is going through a phase whereby he wants to standardise on server name conventions. Currently the servername is 'Sharepoint' but I think he would prefer to prefix them with the school's initials followed by whether it's a dc or member et al. E.g. ABC-MB-01 (I think).
If the rename does go ahead then I'm pretty certain links will break and it would mean spending x amount of hours combing through SharePoint to put things right again.
So, you think it's "/location/name_of_page.aspx" ?
I'll give this a whizz later when I get to work.
you can setup an internal DNS name point to the ip address of the sharepoint server. You can then use alternate access mappings to configure the new internal name to the sharepoint web application. The following link provides more info on this Configure alternate access mapping
this means that the sharepoint site is not dependant on the servername.
hope this helps