Chuckster Posted August 18, 2010 Posted August 18, 2010 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?
mleighton Posted August 18, 2010 Posted August 18, 2010 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. 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. Mark
tom_uk Posted August 18, 2010 Posted August 18, 2010 I like "Pages/Home.aspx" and "Images/smile.jpg", really good if you like creating templates.
localzuk Posted August 18, 2010 Posted August 18, 2010 Why can't you link without the servername part? it "/location/name_of_page.aspx"?
Chuckster Posted August 19, 2010 Author Posted August 19, 2010 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.
LPPLUS_Support Posted August 20, 2010 Posted August 20, 2010 Hi 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 San LP+ Limited
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now