Forum Discussion
Mike Jansen
Jan 19, 2017Iron Contributor
Use JSLink to edit layout of Document library webpart
This is the first time I try to develop something using JSLink so I struggle a bit ;-) I have a standard document library web-part on my page with a few fields. For my test I want to change the cust...
- DeletedJan 20, 2017
Yes! Just change "DisplayForm" to "View" and make sure to configure the jslink file on the all documents webpart.
Deleted
Jan 20, 2017Tested your code and it works! Just make sure that you are using the right internal name of the field and you are actually looking at the display form (view properties page).
Try using Cisar chrome plugin! Makes it a lot easier to create and test jslink script.
- Mike JansenJan 20, 2017Iron Contributor
Ah, my code is fine ;-) Happy to hear.
However, seems I'm making another misstake.
I guess it is the display form.
What I want to change is the appearance of the items in an web-part on a team site. So I need to change the "All documents" view. Is this my missake? Instead changing the display form I need to change a view?
Thanks, Mike
- DeletedJan 20, 2017
Yes! Just change "DisplayForm" to "View" and make sure to configure the jslink file on the all documents webpart.
- Mike JansenJan 20, 2017Iron Contributor
Deleted Thanks a lot.
This did the trick.
My misstake was to have the JSLink on the teamssite webpart. Not on the all documents view.