Wiki Library Link Bug

October 10th, 2007 by mosslover

I was working on converting a manual table of contents into a wiki library, so that the articles can be entered at a later date.  I shelled out all the sections, however when I got to about 100/110 the bracketed ([[ ]]) links no longer had a dash underneath them.  When I click on the links I get redirected to a 403 site that says it does not exist, rather than a new wiki article with the link name.  So far I have done a bit of googling and found no one else with this issue.  If anyone has any insight on a workaround I would be eternally grateful.  If not, then I'm going to exhaust google until it bends to my will. 

Kansas City Office Developer User Group

October 9th, 2007 by mosslover

Jeff Julian has started a new Office Developer User Group in Kansas City that focuses solely on Sharepoint.  If you guys are looking for a different environment than the current Sharepoint User Group hosted by Daniel Webster or a second monthly fix of Sharepoint this is for you.  The group meets the first Thursday of the month (so November 1st is the next meeting).  I am not sure if people just don't know about these meetings or if there is just not that much of an interest in Sharepoint in Kansas City.  When I went last week there were about 15 people at most in the room.  I offered to try and present in a few months far after my next braces tightening.  I will keep you guys posted on what topic I choose.  I have to sit down and figure out a topic for this event and a topic for the Sharepoint Beagle (http://www.sharepointbeagle.com/).  It would probably help a ton if I didn't login to WoW the second I got home from work:)
Anyway, for more information on the KC Office Developer User Group go to http://kcoffice.org and sign up for the mailing list.
 

Changing Document Library Menus for One Library

October 8th, 2007 by mosslover

A lot of people have information on how to change the menus for the entire site collection.  If you want to actually change the menus for a document library on a single library this is what you would do.

  1. Create a new javascript file in notepad and copy "AddDocLibMenuItems"
  2. If you want to remove items, then you erase the functions in the new file (for example if you want to get rid of the workflow option on the menu erase this function call: "AddWorkflowsMenuItem(m, ctx);"
  3. Now save the file under something like "CustomMenu.js" in "C:program filescommon filesmicrosoft sharedweb server extensions12TEMPLATELAYOUTS1033"
  4. Open up Sharepoint Designer and copy the "Default.Master" page for the Document Library and paste it into the same directory as something like "Default2.Master"
  5. Now paste in this code:<SharePoint:ScriptLink language="javascript" name="YourFileName.js" Defer="true" runat="server"/>
    Under this line of code: <SharePoint:ScriptLink language="javascript" name="core.js" Defer="true" runat="server"/>
  6. Save the file and open up the document libraries "AllItems.aspx"
  7. Go to "Format"–>"Master Page"–>"Attach Master Page" and click on the radio button "Specific Master Page" and click on "Browse"
  8. Choose the master page that you created with the custom script and click on "OK" and save the file
    If you open up your document library and click on a menu, then you should have a condensed version of the menu.  This is the same if you add a function with the same name to this file and follow the same processes.  It should add another item to the menu. 

    There are a ton of tutorials out there for adding to the menu and removing items overall, but I figured it might be a good idea to post a tutorial related to changing just one library.   If anyone has a questions or comments feel free to post:)

 

Ipod Nano Catches Pants on Fire

October 8th, 2007 by mosslover

I rarely post much outside of Sharepoint, so here is a really bizarre article link: http://www.networkworld.com/news/2007/100807-ipod-nano-fire-pocket.html.
I have owned an Ipod since version 4 came out with the first click wheel.  I am not sure if this is something to look at as a good laugh or a shocker.

Picking the RIGHT Sharepoint Conference

October 5th, 2007 by mosslover

I posted this comment on Andrew Connell's Blog Today:
"
I am starting at a new job in a couple of weeks. They said that I might
be able to go to a couple conferences, but they said something about
having an allowance of $2,000. I am looking at some of the prices and
it looks like maybe I could go to one. I wish that I could go to all of
them. I was wondering what would you suggest is the best one out of the
entire year: Sharepoint Connections, MS Office System Developer
Conference, or the MS Sharepoint Conference of 2008?"

I am looking for more feedback.  From what I gather he said Sharepoint Connections is the best one to attend and the most diverse.  I actually talked to Jeff Julian (http://geekswithblogs.net/jjulian/Default.aspx) at our KC Office Developer's meeting last night and he pretty much said the same thing about Sharepoint Connections.  I wanted to open this subject up to everyone else out there.  Keep in mind I am primarily the admin here, but I would really love to dig deeper into the object model and become a better developer.  I looked at the Sharepoint Connections line up in Vegas and I was really interested in presentations (big surprise I am a huge pack rat when it comes to Sharepoint Topics).  Also, after attending the last Sharepoint Live Session I would really love to see Andrew Connell present something on WCM.  I have been reading his blog and Sahil Malik's for at least the past 6 or 7 months.  If I had a choice to meet two MVPs ever I would put them on my top 10.  So I guess I am done ranting…Talk amongst yourselves:)

Script Error in Document Libraries

October 1st, 2007 by mosslover

My client just recently installed http://support.microsoft.com/kb/937038 due to an Inherited Permissions problem in Document Libraries.  Basically, on Thursday I hit "Inherited Permissions" in a specific document library after noticing it was not inheriting the proper permissions from a sub web.  All of a sudden Sharepoint crashed with a 500 internal error.  I spent several hours trying to figure out the problem and figured out what had gone wrong.  I shoved up a restored copy from Wednesdays backup and came in Friday morning to find the hotfix listed above.  After installing the hotfix we started to notice an issue with the document libraries.  If you check out a document, then you get a script error as described below:
Internet Explorer Script Error
Line:  11659
Char:  12
Error:   'length' is null or not an object
URL:  http:// ……………

So far all I have found is this MSDN Forum Post: http://207.46.236.188/MSDN/ShowPost.aspx?PostID=2105089&SiteID=1.
I am seeing if I can get some type of ticket open with Microsoft at the client site.  If anyone has any comments concerning this specific error message please let me know.   If not and I find a solution I will definitely post on my blog and let you guys know what exactly needs to be done to correct the error.

 

***Update***
The problem is definitely related to adding multiple content types.  You need to make sure that you delete all the content types from the document library and then disable multiple content types on that document library.  They have this information in the post, however it does not say that you need to delete the content types first.
 

 

Writing a Batch File to Run Back Ups

September 26th, 2007 by mosslover

Someone left a comment today on an old post asking about writing batch file scripts to backup Sharepoint 2007.  Here is an example of one that I have written:

 @echo off
echo ====================================================
echo Backup Script For Office SharePoint Server 2007
echo ====================================================
@echo off
stsadm.exe -o backup -url http://youresite -filename c:whereyouwanttosavethebackupforyoursitecollection -overwrite
@echo off
echo completed

 I run this off of the built in Scheduler on Server 2003 every Monday, Wednesday, and Friday.  I have three batch files.  I usually have two lines of stsadm.exe command lines, so that I can backup the SSP also.  I put the batch files in "C:program filescommon filesMicrosoft Sharedweb server extensions12BIN", so that the files have easy access to Stsadm.exe.  I have tested the products before when me or a colleague mess up a page in Sharepoint.  We have actually used the restore command in a vpc brought back the sites and gone into Sharepoint Designer to get a single site to port back to the client site.  I think that if you are running a Sharepoint Site used by multiple people that you should at least back up your files twice a week.  If anyone has any questions please post comments and I will try to get back to you as soon as possible.
 

Error Messages 6398, 6482, and 7076

September 26th, 2007 by mosslover

For weeks I have been dealing with google and researching MS hotfixes to get rid of the above errors in the event log.  Everyday it drove me completely insane that I could not find a fix.  Then one day I find this .Net 2.0 hotfix for remote servers.  I asked the client to obtain the hotfix for me and I tried testing it in a VPC.  It would not install the hotfix, because it stated that the component needed did not exist.  I was back to square one, so I started poking around Central Administration yesterday.  I looked in the "Timer Job Definitions".  For some reason every single content deployment job and backup job for one time use that was ever created in Sharepoint still existed in this area.  I went through and deleted each job and all my error messages disappeared.  For anyone having this same problem look in your timer job definitions and see if Sharepoint is still running one time use jobs.  It will help you out a bunch in the long run.  There is probably another hotfix for this problem, but I have requested at least 3 to 4 hotfixes in the past two weeks and need a hotfix break for now.  I am still holding out that we will get a service pack in the near future to fix any issues anyone has run across in MOSS.

Where I've Been…

September 24th, 2007 by mosslover

Two Weeks ago was Rosh Hashanah, which is the Jewish New Year for anyone who does not know.  Basically, I went to synagogue on Wednesday and Thursday night of that week, so I was incomunicato for that period of time.  Then the preceding day I went under and had six teeth removed, so that I can get my rubberbands on October 2nd and my teeth can start to move.  In the past week I've had a lot of pain due to the removal and do to the changes of space after the removal.  I am noticing that my teeth are actually moving somewhat.  I am going to try and post a little bit more if I have the time in between work and World of Warcraft playing.

I am working on a really cool project right now that deals with CAML Queries and list filtering and searching with a colleague of mine.  I wrote a piece that started out searching the list and posting it into SPGridView.  In the past week he tied all this information into his webpart that searches a list of specific names and then filters the list down based on what name is chosen.  I might write up an example in the upcoming weeks using this example: http://blogs.msdn.com/powlo/archive/2007/02/25/displaying-custom-data-through-sharepoint-lists-using-spgridview-and-spmenufield.aspx and showing you guys how it would pertain to a list search.  I will keep you posted on the progress.  For those that just celebrated Rosh Hashanah and Yom Kippur: Shanah Tova U'Mitukah!  For those who are celebrating Ramadan have a good fast.  For those celebrating anything else that I am missing happy (insert holiday)!

 

Upcoming WCM Book

September 5th, 2007 by mosslover

I was messing around with Content Deployment a month ago and having all types of issues.  I noticed that Spencer Harbar and Andrew Connell are writing a book as eluded in this blog post by Spencer Harbar: http://www.harbar.net/archive/2007/09/05/Yup-were-doing-a-SharePoint-WCM-book.aspx.  I looked at there Amazon Website and noticed that they are going to cover Content Deployment in the book.  I wonder if there will be extensive details on how to use it without bugging out like I did.  I am researching hotfix packages for the many content deployment errors as I wait for my meeting.  I will post any detailed information if I find something that fixes any content deployment issues.