Forum Discussion

Mike Jansen's avatar
Mike Jansen
Iron Contributor
Jan 05, 2017
Solved

Sharepoint custom display template - Error with some users

I've created my own display template in the folder ../Content web parts/custom

This display template is working fine when I use it (site collection admin). But when a normal user (contribute on the specific site) wants to use it the get the error: "The display template had an error Templates/../custom/blabla.js' not found or has syntax errors"

 

Must be some permission problem but I cannot figure is out.

 

Thanks, Mike

  • Hi Mike Jansen,

     

    Did you publish the display template? As you are an admin you will not need the display template to be published but normal users will need the temlates to be published.

2 Replies

  • Hi Mike Jansen,

     

    Did you publish the display template? As you are an admin you will not need the display template to be published but normal users will need the temlates to be published.

    • Mike Jansen's avatar
      Mike Jansen
      Iron Contributor

      Hi Pieter Veenstra. I checked it in as major version. Looks like it does the trick. Have to verify tomorrow by some users.

       

      Thanks.

Resources