0

we have to add some elements to a list view of an sharepoint 2013 app.

We've found this example on codeproject as well as on MSDN but the given code overrides the complete view structure.

How to add just a button or a hyperlink above the given allitems.aspx without loosing the view of the columns? How to change schema.xml so that we can deploy the app with the new design?

1

Use the CSR function. You can insert a script in the view, the steps are:

  1. Go in the view you want to edit.
  2. Click "Settings" which is next to the user name in the upper right corner.
  3. Click "Edit Page".

In this part you can already edit many things.

  1. In this part you can already edit many things.
  2. To insert a script in the view click "Edit Web Part" which is on the web part of your display.
  3. In the right menu you click "Miscellaneous".
  4. You will see a field called "Link JS," you insert the link that is your script.

Remember that you can only insert only one script, if you want to add more jquery, copy and paste the code to your jquery script.

I am available to help you.

  • thanks, but we'd prefer to handle it before we deploy the solution so it's out of use to edit the view. Apart from that it is an app so you can't call settings & edit page => youwould have to manage that through Manipulation of URL by toolpaneview Parameter – Celophysis Sep 12 '14 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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