Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want the URL to be a hyperlink when In the SharePoint Library Settings page. It would be much nicer than copy paste all the time. Is there anyway to do this?Part circled in red is what I would like a Hyperlink

share|improve this question
1  
This page is a template page available in layout folder. I have done changing in some pages. But not in the list settings page. –  Malin De Silva Aug 13 at 15:15
    
Okay I will look. Any ideas as for the code for always making this link clickable? –  Jake Aug 13 at 15:18
    
There will be a string literal. Add that to an anchor tag with href property set to it. Simple HTML. :) –  Malin De Silva Aug 13 at 15:19
1  
I would definitely suggest against changing anything in the layouts folder, writing an alternative solution now –  Christoffel de Gruyter Aug 13 at 15:21
    
Okay im ready whenever! –  Jake Aug 13 at 15:31

2 Answers 2

This is a file that's located on the server's file system. Microsoft definitely doesn't recommend changing this file for the following reasons:

  1. Having multiple web front ends means you will have to change the page layout on each of these servers. If the different servers are using different files on their file system, different users will get different results depending on which web front end server they're connecting to.

  2. Changes will get overwritten in SharePoint patches

My solution would be to edit the site's masterpage instead. Create a copy of your masterpage called "Seattle_customized" and add the following piece of code anywhere in either body or header tag.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type='text/javascript'>
    _spBodyOnLoadFunctionNames.push("MakeListEditUrlClickable");

    function MakeListEditUrlClickable()
    {
        if(location.href.indexOf('_layouts/15/listedit.aspx') != -1)
        {
            var ele = jQuery("th:contains('Web Address')").next()
            var text = ele.text().trim();
            ele.html('<a href="' + text + '">' + text + '</a>');
        }

    }
<script>

Edit: I edited the listedit.aspx page and added the java function. The fix is working! I had no luck when adding to the master page so decided to take this route. I will be looking into why it is not working when added to the master page for future proofing when sharepoint updates are released.

share|improve this answer
    
I wrote it very fast so you might have to tweak it. Also, this will only work if the language of SP is set to English. Otherwise some additional coding is required. –  Christoffel de Gruyter Aug 13 at 15:39
    
English is the primary language. I am trying this now, Ill keep posted. Thank you, I appreciate it –  Jake Aug 13 at 15:42

Can't you just click the actual link instead? enter image description here

share|improve this answer
    
KISS at it's best –  Christoffel de Gruyter Aug 13 at 15:43
    
I do not have that link.......The photo I attached cuts off right before my nav bar. –  Jake Aug 13 at 15:48
1  
then the real question is, why do you not have that link, and how do you get it back. –  Derek Gusoff Aug 13 at 16:06
    
Is there a custom masterpage? If that's why the link is not available to you and you don't want to risk breaking this customized masterpage, my solution is still viable. –  Christoffel de Gruyter Aug 13 at 16:07
    
I do indeed have a custom masterpage. I have added the solution but got this error, I am trying to insert it in another location in the masterpage file. –  Jake Aug 13 at 16:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.