SharePoint changes CSR JS links

Hello,
I'd like to use CSR js to modify my list view. I did everything as posted
here, but the script is not working. I also disabled the Minimal Download Strategy Feature. It doesn't matter if i put the link in a relative or absolute form. I also tried to place the js file in master page gallery and site assets library. Still nothing..
Google Chrome dev tools says that the script isn't loaded. Here is the error: 
GET
https://.sharepoint.com/personal/123/test/Lists/JS%20Link%20test/~123/test/siteassets/csr_overridable_demo2.js?ctag=12$$16.0.2930.1220
404 (NOT FOUND)AllItems.aspx:16
Of course the link is not the same link I pasted in the "JS Link" field.
Any workaround for this?
Thanks in advance :)

I used the same script to change the color of the item.
For me it is working fine.
Make sure that master page is published or checkin the master page and script file
http://www.learningsharepoint.com/2013/03/31/uploading-javascript-js-files-as-javascript-display-template-in-sharepoint-2013/
Once the check the js link reference in listview webpart
~site – reference to
the current SharePoint site (or “Web”)
~sitecollection – reference
to the current SharePoint site collection (or “Site”)
~layouts – version
specific reference to the web application Layouts folder (so it will automatically swap out /_layouts/14 or /_layouts/15 for you)
~sitecollectionlayouts –
reference to the layouts folder in the current site collection (e.g. /sites/team/_layouts/15)
~sitelayouts – reference
to the layouts folder in the current site (e.g. /sites/teams/subsite/_layouts/15)

Similar Messages

  • SharePoint 2010 document broken link due to unrecognized File protocol: ms-word

    Please help point me in the right direction.  I checked the File association on Internet settings and document type docx is associated with Word, but it won't open.  What do I need to change?
    I received the following information when I clicked on the troubleshoot link:
    Windows has the following information about this Protocol. This page will help
    you find software needed to open your file.
    Protocol Type: ms-word
    Description: UnKnown
    Windows does not recognize this Protocol.

    Title:  SharePoint 2010 document broken link due to unrecognized File protocol: ms-word
    Please help point me in the right direction.  I checked the File association on Internet settings and document type docx is associated with Word, but it won't open.
    Try refining this symptom description.  What exactly do you mean by "it won't open"?  Answering that might explain why you are posting this in an IE forum.  E.g. right-click, Copy Shortcut whatever it is that you are calling
    a "broken link" and Paste it here.
    Otherwise, try right-click, Save target as... to put the file into your Downloads (Ctrl-j) and then use right-click, Properties to find its
    full path and name.  Note that that would be quite different from what the Copy Shortcut step would have shown.
    Next I suspect that the Set Associations GUI tool may not be showing you the correct information.  FWIW it certainly doesn't show me the correct information in W8.1.  So, I would try checking if you have an explicit association and file type combination
    by using the assoc and ftype commands in a cmd window.  In fact, instead of just showing the ftype for the current association I would use this:
        ftype  |  find  /i  "word"
    Then you could take the most appropriate template (not necessarily the one pointed to by the assoc command) and fill it in on a Run... dialog (or a cmd window command line if you also went back to ensure that the implied program
    would be found by your PathExt shell variable.)  Etc.
    Doing that would make your symptom description independent of IE.  All it would have done for you is download the file.  If you couldn't open it then it would be because either the file was saved incorrectly (in which case you could rename it)
    or it was bad.
    HTH
    Robert Aldwinckle

  • How to Change Spry Menu Links

    I have a Spry Horizontal Menu on my page, and have a few
    questions on creating customized Links:
    - I know how to add a Link to my Reports, Pages, etc using
    the Link Properties box
    - I also know how to open the Link in a _blank page using the
    Target property box
    But
    - How do I change the Menu Link in code to open my new page
    in a smaller, new window?
    (Right now, the TicketSummaryAcct.cfm page opens up fine, in
    a new "full-sized" window)
    Here is the code currently listed under that Menu button:
    <li><a href ="reports/TicketSummaryAcct.cfm"
    title="Click here to print the report by Account Number to PDF"
    target=>_blank">by Acct# Prompt</a></li>
    Thanks,
    jlig

    In the header of the webpage:
    <script type="text/javascript">
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "',
    'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=300 ');");
    </script>
    in the link section:
    javascript:popUp('reports/TicketSummaryAcct.cfm')
    don't use a target attribute, as it will break the javascript
    in my experience. If you are using the pop-ups in more than 1
    webpage, or even for good programming practices, make a function
    page.
    Webpage name: newWindow.js
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "',
    'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=300 ');");
    And then in the header of the webpage(s) that you need the
    popup for, add this:
    <script src="newWindow.js"
    type="text/javascript"></script>

  • How can I change an embedded link to a website in a pdf in Pro XI

    How can I change an embedded link to a website in a pdf in Pro XI for Mac?

    Hi leee4227078,
    Please refer this blog post as this could help you on how to remove embedded hyperlinks:
    Removing Hyperlinks from a PDF and Feature/Gotcha
    Let me know.
    Regards,
    Anubha

  • How can I change an embedded link to a website in a pdf

    How can I change an embedded link to a website in a pdf in Pro XI for Mac?

    You can use the Select Object tool to select the link object and then right-click it and edit it via Properties.

  • How to Change text of link in SRM

    Hi All,
    How to Change text of link in SRM . The Link is in leftside of the screen in webportal.
    I needs to change the text of link ' Shop' , 'Check Status'  and 'Confirm Goods / Services.
    Kindly helpout me.

    Hi Rob,
    Thanks a lot for reply.
    You are right i am suppose to change in BBPGLOBAL.
    But i am not getting where should i change.I am unable to find the parameter in BPGLOBAL.
    Kindly advise me.
    Regards,
    Vasu

  • How to change the Hyper links color in the XML form

    HI SDNs
    Do u have any idea how to change the hyperlink color in the xml form. My requirement is as follows.I have created xml form by using xml template and i displayed this xml form by using Km document iview.  I need tochange the hyper link color in the xml form content. I dont want to go for manual process by editing the xml form. because i have several hundreds of xml forms.
    Appreciate if you give suggestion.
    Thanks
    Ramana

    Hi Ramana,
    The most convenient way to change the hyper links is by using the Theme Editor. Go to System Administration --> Portal Display --> Select Theme --> Component-Specific Styles --> Links --> Function/Result Link.
    Hope this helps.
    Kind regards,
    Joost

  • Can I alter the properties of an individual link on a HTML page without changing the other links?

    Hi there,
    I have a contact page created in Dreamweaver and have created an email link to launch Outlook when clicked on. However, all the links in my design have been set a certain way, i.e. white text knocked out of darker background. My email link however, is on white background so you can't see it against the white. I want to go in and simply change the color property of the email link without changing the other link colours on the page. I've tried but without luck. Is this possible to do?
    Thanks in advance for any help!

    Hello and thank you for your answer. I'm still a little confuse though.
    My existing HTML looks like this:
    <p><a href="[email protected]">[email protected]</a><br />
    My link preferences are for the who page and are at the top and look like this:
    a:link {
        color: #FFFFFF;
        text-decoration: none;
    a:visited {
        text-decoration: none;
        color: #FFFFFF;
    a:hover {
        text-decoration: none;
        color: #CCCCCC;
    a:active {
        text-decoration: none;
        color: #CCCCCC;
    .style2 {font-size: 14.5px}
    .style3 {color: #FFFFFF}
    Where exactly should I insert the new link ID that you suggested <a id="special_colors" href="url...">link text</a>
    Also, where exactly should I place the following in relation to the CSS document
    a#special_colors:link {color: red;}
    > a#special_colors:hover {color: green;}
    Sorry but this is all quite new to me. Thank you for your patience and help.

  • Find/Change for internet links?

    Is it possible to do a Find/Change for internet links?
    That is, if I have URLs that do not appear in the text of the AppleWorks document, but in the links window, and I want to change all the links beginning with http://us.imdb.com to http://pro.imdb.com
    It seems this is not possible through the Find/Change function under the Edit menu, but perhaps I just don't know the right way. Otherwise, the only way to do it would seem to be to change each one individually in the links window with the edit function.

    Hello
    Alas, the last formula is the right one.
    The URLs are not stored in the body of the document so the Find/Change tool is unable to find them.
    Yvan KOENIG (from FRANCE 17 octobre 2005 21:51:08)

  • Is It Possible To Change A Visited Link Back To Its Original Color???

    Hi,
    I am trying to figure out if there is a way in Dreamweaver to change a visited link back to the orignal color it was before you visited it?
    Another words, I have some links on the webpage I am creating.  I set the "link colors" to brown.  Then I set them to blue once they become "visited links".  This is indeed exactly what I want my webpage to do.  HOWEVER, when working on my page in Dreamweaver and having to constantly preview it in a browser, I don't want the links to remain blue.  Every time I preview my page in a browser the links are all blue because I have already clicked on them before while previewing them.  I am wondering if there is a way to like refresh the page you are building so that the links go back to the original brown color, so that each time I preview my page the links will be brown and not blue?
    Anyone know if there is a way?
    Thanks.

    Ha, I found out what to do.  It had nothing to do with Dreamweaver.  It was simply my browser remembering I had already previewed that page.  All I did was simply clear my private data out my browser, and voila, the links were back to brown!

  • ESS Who's Who removing Change Own Data Link

    Hi,
    Set-up ESS who's who with no issue on EP7 with ECC6.  However I wish to remove the "Change Own Data" link from the page.
    I have reviewed the IMG but cannot find where to change the details.  Also I cannot find Personnel Management >> Employee Self Service, so I'm unsure if we have loaded up our business package correctly.  Thanks

    HI Brian,
    Do the following steps:
    TCode: spro
      SAP Reference Img
        --Cross Application Components
          --Home page Framework
            --Services
              --Assign serives to subAreas
                --Execute - Choose (find entries)  and mark the "EMPLOYEE_SEARCH_CHANGEOWNDATA" field Position as ‘0’ (zero).
    Log off and login portal and see the effect taken place.
    Hope you can do it easily now..
    If your problem gets solved, close the thread and confirm the same
    Regards,
    Mahesh.M.R

  • What is the proper way to change a url link?

    I need to tell DW to change all url links (on all pages) going to an old url to a new url. What is the proper way to do this? thanks.

    Did you even read my reply properly?
    'Defining a site' in DW has everything to do leveraging most functionality with FUNDAMENTALS of DW usage.
    'Change links sitewide' is an option within DW that will change links across sites by replacing an old link with a new - for DW to do this for more than just ONE FILE in your site, DW has to know what other files make up your site. This is why 'Defining a site' is critical.
    If you do feel otherwise, please go ahead and wait for somebody else (an expert) to post his views on this. Let's see what they have to say.
    Either which way, I really think you should change your attitude while posting on this forum. That will not only help you, but all of us here.
    Good luck.

  • HT5576 E-mail to Kdnci Alveamcunnina change their security questions with Apple Can I change the email link Barsaalh change the email to the main email with Apple

      E-mail to Kdnci Alveamcunnina change their security questions with Apple Can I change the email link Barsaalh change the email to the main email with Apple

    Contact Apple and ask the account security team for assistance: http://support.apple.com/kb/HT5699.

  • Power view in SharePoint - Changing the default save location?

    Is it possible to change the default location when saving Power view back into SharePoint?
    Our users are creating their own power view reports by clicking a power view shared data source in SharePoint document library.
    When saving their reports, the default location is always the same location where the data source is. This is described here also:
    https://support.office.microsoft.com/en-us/article/Power-View-in-SharePoint-Server-Create-save-and-print-reports-f616575e-02bf-46cd-b94a-b744245ef9d1?CorrelationId=a852221e-b063-4020-a20a-53d8e8fb8b8b&ui=en-US&rs=en-US&ad=US
    Quote from the link: "The first time you save the
    report, the default location will be the folder where the model is located."
    Ok, understood. But is it possible to change this???

    Hi again
    Ouch! Not the network!
    One of the hard learned issues that folks are unaware of until they encounter problems is that Captivate does not do well when a project is stored on a network. It's fine to keep projects there in order to back them up or as a transfer pivot location to allow others to edit, but you never want to open Captivate, click File > Open and browse to a network location to open a project for editing.
    Best practice at this point is to keep projects on your local C drive when you make edits.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Sharepoint 2013 Wiki Page - Links in content rewritten to relative urls

    We have an issue where on all SharePoint 2013 wiki pages any URL to items within the site containing the wiki page are rewritten to be relative URLs. This causes a huge problem when we surface these pages and a snippet of their content through a search web
    part because the links fail being relative to the wiki page itself. To further illustrated with an example.
    A site collection root page http://www.sp2013.com/default.aspx contains a search results web part returning all wiki pages in the site collection. There is a custom display template that renders
    the linked title of the wiki page and the first 500 characters of formatted text (html) of the wiki page.
    A wiki page is created in a sub site (sub1) called wiki1 (http://www.sp2013.com/sub1/pages/wiki1.aspx) the text of the page contains:
    "Check out our new library: Document Library"
    Document Library is a hyperlink to (http://www.sp2013.com/sub1/Document%20Library/Forms/AllItems.aspx)
    Upon saving the wiki page the link is reformatted to be /Document%20Library/Forms/AllItems.aspx
    From the rollup web part at http://www.sp2013.com/default.aspx the relative url in the snippet text of the display template evaluates to
    http://www.sp2013.com/Document%20Library/Forms/AllItems.aspx which does not exist.
    I have attempted modifying the source of the wiki page as well as the link in the ribbon however upon save of the changes the link is always modified to be relative. Any assistance is appreciated as this is extremely frustrating. Thank you.

    Hi JonesEJ,
    According to your description, my understanding is that SharePoint converts a absolute URL to
     a relative URL when you save the wiki pages containing the URL.
    This is actually the preferred behavior in SharePoint and on the web in general. SharePoint saves all absolute URLs for the wiki content as relative. It only does this if the URL matches the URL for the web application for that current wiki
    site.
    There is no OOB way to change the relative URL back to the absolute URL. For your issue, you can try to use
    SPSite.MakeFullUrl() to convert it back.
    There is a similar post for your reference:
    http://sharepoint.stackexchange.com/questions/62887/absolute-urls-converted-to-relative-urls-when-saving-item
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How to find classes in a java package

    i am writing a java IDE. i want to extract all class names from a java package eg. java.lang (through coding). how can i do that. Thanks in advance

  • Need a Livecycle expert

    I am in the process of developing a dynamic livecycle document and am realizing that my time is short. Is anyone available in the SF Bay Area for hire? The project is interesting and can be either short or long term. Thanks Caesar

  • 3D Force vector plot

    Hi This might be a very easy thing to do but i can't seem to manage it. I am currently using Labview 8.5 and attempting to represent data acquired from a 3-axis force sensor as a single vector. The vector should begin at the origin with its magnitude

  • Unable to update my macbook air version 10.5.8

    unable to update my macbook air version 10.5.8 , pl advise higher version for . already using maven purchased for imac / pro

  • Unable to send my mails

    Hi, Could anyone help solve the following problem? All of a sudden, my outgoing mails are stuck in the "out-going box". It worked perfectly well early this morning. The in-coming mails are coming in fine. Thanks for your help. Claire