Friday, July 9, 2010

General tips

General tips
Insert webpart on NewForm, DispForm or EditForm:
Add “toolpaneview=2″ behind the URL in this format:
…NewForm.aspx?toolpaneview=2
…EditForm.aspx?ID=12&toolpaneview=2

This sets the page in edit-mode and you can add webparts as if it was any other page.

Have you broken your page by adding a faulty script?
Add “?contents=1″ behind the URL and you can delete any webpart from your page.

Find List Guid or view Guid:
In the list view – right click and view source. Then search for “ctx.Listname”.
The Guid looks like this:
{DEF643C7-CF80-4DF8-866F-C16DC017DFC0}.

The view Guid is found by searching for “ctx.view” and looks similar to the list Guid above.

Find FieldInternalName:
Open NewForm, EditForm or DispForm. Right click and view source. Then search for your field’s DisplayName and you will find the fields FieldInternalName like this:

1

The fields InternamName never changes and is therefore the safest method of identifying a field.