If you ever needed to add a web part above a "New Item", "Edit", or "View" form in SharePoint, you will find that it is impossible using the "Site Actions" tab.
A way around this is to add:
&ToolPaneView=2 to the end of the page's URL. This will display the page in Edit mode and allow you to add web parts.
Reference: http://techtrainingnotes.blogspot.com/2013/02/add-content-editor-web-part-cewp-to.html
Monday, April 7, 2014
Thursday, October 10, 2013
Remove Recently Modified from Quick Launch
If you are working in SharePoint 2010, you may find that your quick launch creates a section called 'Recently Modified'. This section is great for showing what recently changed on the site. However, it is not always needed.
To remove this section from the quick launch:
To remove this section from the quick launch:
- Add a Content Editor Web Part (CEWP) to the page
- Edit the web part's source code
- Add the following code:
<style> .s4-recentchanges{ display:none; } </style>
The recently modified section will be removed.
Source: http://thechriskent.com/2012/07/05/hiding-the-recently-modified-section-in-sharepoint-2010/
Friday, September 27, 2013
How to Hide the Edit Tab in a Ribbon
In SharePoint 2010, add the following code to a CEWP.
and the tab will disappear :)
Source: http://sharepoint247.wordpress.com/2013/05/24/javascript-to-hide-or-select-specific-tabs-in-sharepoint-ribbon/
<script type="text/javascript">// <![CDATA[function ResetRibbon() {try {var ribbon = SP.Ribbon.PageManager.get_instance().get_ribbon();SelectRibbonTab("Ribbon.Read", true);ribbon.removeChild('Ribbon.ListForm.Display');ribbon.removeChild('Ribbon.ListForm.Edit');} catch (e){ }}SP.SOD.executeOrDelayUntilScriptLoaded(function () {try{var pm = SP.Ribbon.PageManager.get_instance();pm.add_ribbonInited(function () {ResetRibbon();});var ribbon = null;try {ribbon = pm.get_ribbon();}catch (e) { }if (!ribbon) {if (typeof (_ribbonStartInit) == "function")_ribbonStartInit(_ribbon.initialTabId, false, null);}else {ResetRibbon();}},"sp.ribbon.js");}catch(e){}// ]]></script><script type="text/javascript">function ResetRibbon() {try {var ribbon = SP.Ribbon.PageManager.get_instance().get_ribbon();SelectRibbonTab("Ribbon.Read", true);ribbon.removeChild("Ribbon.ListForm.Display");ribbon.removeChild("Ribbon.ListForm.Edit");} catch (e){ }}SP.SOD.executeOrDelayUntilScriptLoaded(function () {try {var pm = SP.Ribbon.PageManager.get_instance();pm.add_ribbonInited(function () {ResetRibbon();});var ribbon = null;try {ribbon = pm.get_ribbon();}catch (e) { }if (!ribbon) {if (typeof (_ribbonStartInit) == "function")_ribbonStartInit(_ribbon.initialTabId, false, null);}else {ResetRibbon();}} catch (e){ }}, "sp.ribbon.js");</script>Source: http://sharepoint247.wordpress.com/2013/05/24/javascript-to-hide-or-select-specific-tabs-in-sharepoint-ribbon/
Remove Content Approval Message from Forms.
Whenever a SharePoint list requires content approval for submitted items, you will find the following message on your new item forms:
"'Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights.'"
I find this message very confusing to my users so I often remove it.
To remove the message,
- Go to 'List settings' and then 'Advanced settings'
- Scroll down to 'Dialogs'
- Select 'No' under 'Launch forms in a dialog?' then select 'OK'
- Go back to your list and select 'Add new item'. Your new item form will open as a page.
- Go to 'Site Actions ' and select 'Edit Page'
- Add a CEWP (Content Editor Web Part)
- Edit the web part's html source code
- Enter the following CSS:
<style>
.ms-informationbar{visibility:hidden;}</style>
10. Click save
The message will be removed from the form.
If you want your forms to open as dialogues again, simply follow steps 1-3. However, in step 3 select 'Yes' instead.
Friday, August 30, 2013
Show only the time in your sharepoint column
I hate that SharePoint does not provide a time only column. So, what should one do if they have a form in which their users need to record the time only?
In my example, I had to use a time/date column, called "Departure time" in which users needed to provide the time in which they departed a location. However, I did not need a date.
Problem:
In InfoPath, I could delete the date portion of the form and leave only the time field. However, when I went to the list view I would still see a date with their recorded time proceeding.
To get around this I used the steps below:
Source: http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8035f07-8320-48b5-98d7-f48dde2eaf2f/sharepoint-2010-insert-only-time-in-list-column
In my example, I had to use a time/date column, called "Departure time" in which users needed to provide the time in which they departed a location. However, I did not need a date.
Problem:
In InfoPath, I could delete the date portion of the form and leave only the time field. However, when I went to the list view I would still see a date with their recorded time proceeding.
To get around this I used the steps below:
- Created a calculated column called 'Recorded Departure Time'
- Inserted the following formula: =Text (Departure Time,"HH:MM:SS")
- Edited my view to only show only my 'Recorded Departure Time' and hide my original 'Departure time'
Source: http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8035f07-8320-48b5-98d7-f48dde2eaf2f/sharepoint-2010-insert-only-time-in-list-column
Change Link - "Add new item"
At the bottom of your sharepoint list, there is usually a link that say's "Add new item". This link bascially allows users to create new items in a list. However, what if you wanted it to say something different? In my case, I had a contact list and wanted it to say "Add new contact".
Using the steps below, I was able to sucessfully do so.
Source: http://dishasharepointworld.blogspot.com/2011/08/sharepoint-2010-change-add-new-item-and.html
Using the steps below, I was able to sucessfully do so.
- Add a Content Editor webpart to the view you would like the link changed on. Please note: if you have more then one view for this list, you will need to repat these steps for each view.
- Add the javascript below, replacing "your message here" with the message prefer:
<script> document.getElementById("idHomePageNewItem").innerHTML="Your message here"</script>
Source: http://dishasharepointworld.blogspot.com/2011/08/sharepoint-2010-change-add-new-item-and.html
Tuesday, July 2, 2013
Create Calculated Columns Using [Me] or [Today]
As many may know, when creating custom list fields, SharePoint does not allow you to use [Me] or [Today] in a calculated field type.
Here's a workaround, using [Me] as the example. However, you can also use these same steps for [Today] also.
- In your list, create a "single line of text" field titled Me
- Now create a "calculated" field titled CalcMe with the following formula =[Me]
- Now go back and delete the first text field you created titled Me
By doing this you trick SharePoint into using the Me field. Hope this helps :)
Subscribe to:
Posts (Atom)