Options:
10.26.2012
10.25.2012
SharePoint 2007 - Hiding Fields w/ Javascript
I actually found this solution to be a bit more elegant, and more compatible with browsers. Just use jQuery and target the ID of the field OR the attribute value.
=====================================
Making fields hidden should quite frankly be a built in feature of SharePoint. Here are two interesting tricks I found to modify the NewForm.aspx and EditForm.aspx pages, without opening up SharePoint Desinger.
1) Append this to the URL string. This will force the page edit option. &ToolPaneView=2
2) Add a Content Editor Web Part to the page.
3) Paste this javascript code into the web part.
Sources:
<script language="javascript" src="https://mysite.company.org/Code/JS/jQuery/jquery-1.8.2.min.js"></script>
<script language="javascript">
// ==================================================================
// JQUERY
// ==================================================================
$(function(){
//alert("test");
$("#ctl00_m_g_6a6807bc_96fc_43e6_bfe3_20b1971aadcc_ctl00_ctl04_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_TextField").prop("readonly",true);
$('input[title="Title"]').prop("readonly",true);
});
</script>
=====================================
Making fields hidden should quite frankly be a built in feature of SharePoint. Here are two interesting tricks I found to modify the NewForm.aspx and EditForm.aspx pages, without opening up SharePoint Desinger.
1) Append this to the URL string. This will force the page edit option. &ToolPaneView=2
2) Add a Content Editor Web Part to the page.
3) Paste this javascript code into the web part.
<script language="javascript" type="text/javascript">
_spBodyOnLoadFunctionNames.push("hideFields");
function findacontrol(FieldName) {
var arr = document.getElementsByTagName("!");
// get all comments
for (var i=0;i < arr.length; i++ )
{
// now match the field name
if (arr[i].innerHTML.indexOf(FieldName) > 0)
{ return arr[i]; }
}
}
function hideFields() {
var control = findacontrol("Title");
control.parentNode.parentNode.style.display="none";
}
</script>
Sources:
Labels:
jQuery,
SharePoint
10.10.2012
10.08.2012
9.28.2012
Google Sites - Sitemap
This just proves I can learn something new every day. I never realized that google sites automatically creates a sitemap feed.
If you created your site using Google Apps, your Sitemap URL is:
If you created your site using Google Apps, your Sitemap URL is:
http://sites.google.com/a/(your domain)/(site name)/system/feeds/sitemapIf your site is located at http://sites.google.com/yoursite, your Sitemap URL is:
http://sites.google.com/site/(site name)/system/feeds/sitemap
Labels:
Google Sites
9.26.2012
SharePoint 2010 - PowerShell ISE
Run this script to add snap-in automatically to ISE when it starts up.
Run this script to perform a quick user audit.
Run this script to dump a user audit to a file.
if (!(test-path $profile )) { new-item -type file -path $profile -force } $cmd = 'if((Get-PSSnapin | Where-Object {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) { Add-PSSnapIn "Microsoft.SharePoint.Powershell" }' out-file -FilePath $profile -InputObject $cmd -Append
Run this script to perform a quick user audit.
$site = Get-SPSite http://yourservername/sites/yoursitecollection
$groups = $site.RootWeb.sitegroups
foreach ($grp in $groups) {"Group: " + $grp.name; foreach ($user in $grp.users) {" User: " + $user.name} }
$site.Dispose()
Run this script to dump a user audit to a file.
$siteUrl = "http://yourservername/sites/yoursitecollection"
$web = Get-SPWeb $siteUrl
@(foreach ($group in $web.SiteGroups) {
foreach($user in $group.Users) {
$usergroup = New-Object System.Object
$usergroup | Add-Member -type NoteProperty -name GroupName -value $group.Name
$usergroup | Add-Member -type NoteProperty -name UserName -value $user.Name
Write-Output $usergroup
}
}) | Export-Csv c:\userlist.csv -NoTypeInformation
Labels:
SharePoint
9.14.2012
9.13.2012
SharePoint 2010 - Language Packs
A couple of articles explaining the installation process:
Labels:
SharePoint
9.11.2012
SharePoint 2010 - STSADM Shortcut
Here is an article for instructions on how to set up this shortcut:
- Create a shortcut on your desktop to cmd.exe (it's here: %SystemRoot%\system32\cmd.exe)
- Right-Click on the shortcut and select Properties so you can go edit them (our stuff is on Shortcut Tab)
- Change the Target to: %SystemRoot%\system32\cmd.exe /K stsadm.exe -help
- Change the Start in to: "C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\"
- Click Change Icon, and browse to stsadm to select it: C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\stsadm.exe
- Click OK until all of your windows are closed.
- Rename your shortcut to stsadm
Labels:
SharePoint
SharePoint 2010 - 5586 - 'proc_UpdateStatisticsNVP'.
This fix was used to attempt to correct the 5586 missing proc_UpdateStatisticsMVP
http://blog.scuzz.ca/?p=66
The two databases that need updating are:
- SharePoint_Config
- WSS_Search
This microsoft article basically says to ignore:
http://support.microsoft.com/kb/2635071
http://blog.scuzz.ca/?p=66
The two databases that need updating are:
- SharePoint_Config
- WSS_Search
This microsoft article basically says to ignore:
http://support.microsoft.com/kb/2635071
Labels:
SharePoint
9.07.2012
SharePoint Colored Calendars
Some great resources for color coding calendars in sharepoint.
- https://store.bamboosolutions.com/p-31-calendar-plus-web-part.aspx
- http://www.kwizcom.com/sharepoint-add-ons/sharepoint-calendar-plus-web-part/overview/
- http://techtrainingnotes.blogspot.com/2008/11/sharepoint-color-coded-calendars.html
- http://www.orbitone.com/en/blog/archive/2010/10/25/calendar-colour-coding-in-sharepoint.aspx
- http://techtrainingnotes.blogspot.com/2008/11/sharepoint-color-coded-calendars.html
- http://www.w3schools.com/html/html_colornames.asp
Labels:
SharePoint
9.05.2012
SharePoint 2010 Install Errors
Great article documented the common errors I have seen with SharePoint 2010 installation.
http://globaljosh.wordpress.com/
http://globaljosh.wordpress.com/
Labels:
SharePoint
3.31.2006
GJumper Navigation Service Launched
I was finding it increasingly more difficult to keep track of Google's products and services. So I figured there had to be a better way to navigate around their site. That was the idea behind GJumper. GJumper was developed as a means to better navigate around Google™. It is intended to be a cross-platform, cross-browser interface to "jump" to the more popular searches, services and information. With respect to the content being referenced, this application also "does no evil". GJumper does not install adware, viruses nor track or monitor any personal information.
11.05.2005
Yahoo Maps Integration
I'm enjoying the ongoing rivalry between Google and Yahoo. Some great ideas are being implimented from the competition. One such idea, is an extremely impressive service called Yahoo Maps. Yahoo has released a variety of different APIs including a Flash interface. This feature was just too cool not to integrate into my site. Check out my contact section.
9.09.2005
'Yahoo 360 CFC' & 'Flickr CFC' Published to Macromedia
I decided to rework my original Blogger CFC so it would also work with Yahoo 360 blog feeds and Flickr photo streams. Suprisingly, it didn't take me very long to modify. I published my new applications to Macromedia as freeware for others to use. Examples can be found at: http://www.cftags.net
8.14.2005
'Blogger CFC' Published to Macromedia
There wasn't an existing application to pull information from blogger and render it on a standard Web site or Flash, so I had to build my own. I published my application to Macromedia as freeware for others to use. An example can be found at: http://www.cftags.net
5.22.2005
Blogger Feed
My blog integration has been added. I wanted to see if I could consume the information from Blogger and feed it to Flash. Works very nicely.
4.25.2005
Opera 8
I just tried Opera 8 out and I have to say I am extremely impressed with this browser. Without a doubt it's the fastest browser. I ran some comparitive tests loading and reloading the same pages vs. Firefox and Avant and Opera won. Using the forward and back buttons on Opera as well was a lot faster than the other browsers.
Aside from a few minor things on how it displays objects on the page it works VERY well. They've tightened up the UI. It looks very FireFoxish. The thing I like most about this is that it comes packaged with a LOT of the functionality you would have to search for and install manually with firefox. Such as dragable tabs, mouse gestures, the bookmarks auto sort corretly and can be imported from just about any other browser, even Konquerer. It also has an autoreload, an email client if you should chose to use it, and voice recognition. I haven't tested the voice recognition yet but it sounds very interesting.
Aside from a few minor things on how it displays objects on the page it works VERY well. They've tightened up the UI. It looks very FireFoxish. The thing I like most about this is that it comes packaged with a LOT of the functionality you would have to search for and install manually with firefox. Such as dragable tabs, mouse gestures, the bookmarks auto sort corretly and can be imported from just about any other browser, even Konquerer. It also has an autoreload, an email client if you should chose to use it, and voice recognition. I haven't tested the voice recognition yet but it sounds very interesting.
Subscribe to:
Posts (Atom)