Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <ViewFields>
  2. <FieldRef Name="Edit"/>
  3. <FieldRef Name="CONTRIBUTION" LinkToItem="TRUE"/>
  4.  
  5. {$FORM_EDIT}&ID={$ID}&ContentTypeID={$thisNode/@ContentTypeId}
  6.  
  7. <script type="text/javascript">
  8. $(document).ready(function () {
  9. // Change all display form links to edit form links
  10. $('.ms-vb2 a[href*="listform.aspx"]').each(function () {
  11. var link = $(this).attr('href');
  12. link = link.replace("PageType=4", "PageType=6");
  13. $(this).attr('href', link);
  14. });
  15. });
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement