顯示具有 MOSS 標籤的文章。 顯示所有文章
顯示具有 MOSS 標籤的文章。 顯示所有文章

2009年7月17日 星期五

sharepoint 2010 相關文件

office在這星期開放TP測試,包含sharepoint 也在內,相關文件也開始陸續放出來了,不過看了幾個預覽抓圖sharepoint 外觀上沒有很大改變,就期待功能可以更好用了~

此篇稍微介紹了一下:SharePoint 2010 Technical Preview “半公开”发布

以下是文件參考

SharePoint Products and Technologies: 2010 (Technical Preview) Developer Documentation 一份Ribbon開發文件及WSS SDK

2009年7月15日 星期三

sharepoint AllUserData 找出目前的清單項目

最近這幾天因為要改寫前人幾隻SPS2003的程式至MOSS2007,得進去Content DB找資料,紀錄一下欄位的相關判斷

Webs:記錄所有網站

AllLists:記錄所有清單

AllUserData:紀錄所有清單項目

AllLists.tp_DeleteTransactionId = 0x 清單未被刪除(刪除進了垃圾桶的資料也會存在這個資料表裡)

AllUserData.tp_DeleteTransactionId = 0x 項目未被刪除的

AllUserData.tp_CheckoutUserId is NULL 項目未被簽出

參考網站:

揪出未完成的SharePoint Server 2007调查答复

SharePoint v3: tp_DeleteTransactionID

SharePoint List Template Id

sharepoint 2007 清單範本對應的ID,每次寫都要找一次,特此記錄下來
資料來源:SharePoint List Template Id’s

Value

Description

中文名稱

1200

Administrator tasks list

 

104

Announcements list

宣告

303

Blog Categories list

部落格分類清單

302

Blog Comments list

部落格回應清單

301

Blog Posts list

部落格文章清單

105

Contacts list

連絡人

120

Custom grid for a list

 

118

Custom Workflow Process

 

130

Data Connection library

 

110

Data sources

 

108

Discussion board

討論區

101

Document library

文件庫

106

Events list

事件

150

Gantt Tasks list

 

100

Generic list

 

1100

Issue tracking

議題追蹤

103

Links list

連結

114

List template gallery

 

116

Master pages gallery

 

201

Meeting Agenda list

 

202

Meeting Attendees list

 

204

Meeting Decisions list

 

207

Meeting Objectives list

 

200

Meeting Series list

 

210

Meeting text box

 

211

Meeting Things To Bring list

 

212

Meeting Workspace Pages list

 

117

No-Code Workflows

 

2002

Personal document library

 

109

Picture library

圖片庫

300

Portal Sites list

 

2003

Private document library

 

111

Site template gallery

 

102

Survey

問卷

107

Tasks list

工作

112

User Information list

 

113

Web Part gallery

 

119

Wiki Page library

Wiki頁面庫

140

Workflow History

 

115

XML Form library

 
Technorati 的標籤:,

2009年3月10日 星期二

moss 子網站備份還原

通常我們排程備份都是備份完整的site collection,備份還原指令如下

//備份
stsadm -o backup -url <網址> -filename <備份檔案存放位置>
//還原 overwrite參數可不加,此參數代表強制複寫網站
stsadm -o restore -url <還原可以存取網址> -filename <備份檔案存放位置> -overwrite



本來我的認知是,如果要備份子網站(就是非site collection),只能透過存成網站範本或是透過sharepoint designer備份,但是這兩種方式都有限制,



  • 存成網站範本:預設只能存10M大小,可以透過指令調整範本大小,但是好像最大只能到500M

  • sharepoint designer備份:備份檔案的相依性非常高,若是環境稍有不同(window 及 moss 更新版本)很容易還原失敗。

今天找資料時發現原來也可以用指令方式達成(export/import),指令如下:

//備份
stsadm -o export -url <網址,可以非頂層網站> -filename <備份檔案存放位置>
//還原
stsadm -o import -url <網址,可以非頂層網站> -filename <備份檔案存放位置>



注意,備份時請用有權限訪問網站身份的使用者進行備份,否則stsadm還是會提示備份還原成功,但是是備份不出東西的。(我就遇到這問題~)


另外操作的網站是升級的網站的話,請先建立一個相同名稱的空白網站後再進行匯入。(這我就沒遇過了,詳細請看下面連結網誌說明。)


感謝此篇網誌說明:MOSS 2007 - Import/Export Lessons Learnt。


Technorati 的標籤:,,,

2009年3月6日 星期五

MOSS 上傳檔案 檔名限制

使用文件庫儲存文件資料時,發現有些資料會上傳失敗,找了一下原因,發現MOSS對檔案名稱有些限制,整理如下:

  • 不允許的字元:~ " # % & * : < > ? \ / { | } .
  • 檔名長度不得超過128字元

Joel 的blog上有一篇很詳細的文章可以參考: File Name, Length, Size and Invalid Character Restrictions and Recommendations

KB:Information about the characters that you cannot use in sites, folders, and files in SharePoint Portal Server 2003 or in SharePoint Server 2007

2009年1月10日 星期六

MOSS 登入網站不需輸入網域名稱

登入MOSS預設是需要輸入「網域名稱\使用者帳號」,但是明明在網域內還要多打一次感覺有點多餘,所以決定更改驗證方式,從整合式驗證改為基本驗證,但是改為後還是需要去IIS裡設定預設網域名稱才行。

2008年8月8日 星期五

sharepoint 跳脫字元對應表

看sharepoint 的網址常會看到%阿的有的沒有的字元,有時候要解譯換成正常的網址以抓取清單id或是網站id時都要猜半天,Drew寫了一個簡單的對應表覺得還蠻有用的,網址如下,請參考:

Escape Characters in SharePoint

 

MOSS 重大更新

team blog上出現這篇文章--「Announcing: Availability of Infrastructure Updates」,關於介面的三個重大更新已經發佈出來了,詳細資料如下:

The Infrastructure Update for Microsoft Office Servers (KB951297) applies to:

  • Microsoft Office SharePoint Server 2007
  • Microsoft Office Project Server 2007
  • Microsoft Search Server 2008
  • Microsoft Search Server 2008 Express

The Infrastructure Update for Windows SharePoint Services 3.0 (KB951695) applies to:

  • Windows SharePoint Services 3.0

The Infrastructure Update for Microsoft Office Project 2007 (KB951547) applies to:

  • Microsoft Office Project Professional 2007

安裝順序如下,若是單純只有WSS的環境,請省略MOSS更新的部份

1.安裝WSS SP1

2.安裝MOSS SP1

3.安裝WSS KB951695 更新

4.安裝MOSS KB951297 更新

5.執行SharePoint 3.0 Products and Technologies Configuration Wizard設定精靈(在程式集中MOSS管理中心下面那個選項)

 

Technorati 的標籤:,,

2008年7月4日 星期五

限制MOSS標題長度

在拉清單的webpart時,總會發現標題換行造成畫面不美觀,我之前的作法是設一個內容篩選webpart,今天發現了有人提供更簡單的作法,

,用XSLT加上判斷來決定字數長度,整理如下:

針對標題字數作設定,判斷標題長度是否小於12,若是正常顯示;若是大於12則取前9個字加上「...」,作法如下:

1. 先在畫面上將要設定的清單wepart拉出來。

2. 用SPD打開此頁,點選右鍵,選擇轉換成XSLT

3. 找到標題的欄位代碼

<xsl:value-of disable-output-escaping="no" select="@Title" />
將此行替換成下面代碼

      <xsl:if test="string-length(@Title)<=12"> 
<xsl:value-of disable-output-escaping="no" select="@Title" />
</xsl:if>
<xsl:if test="string-length(@Title)>12">
<xsl:value-of select="substring(string(@Title),1,9)" />...
</xsl:if>



若是針對文件庫的清單,則需找文件的名稱作處理,找到下面代碼
<xsl:value-of select="ddwrt:UrlBaseName(string(@LinkFilename))" />
取代成

       <xsl:if test="string-length(@LinkFilename)<=12">
<xsl:value-of select="ddwrt:UrlBaseName(string(@LinkFilename))" />
</xsl:if>
<xsl:if test="string-length(@LinkFilename)>12">
<xsl:value-of select="substring(ddwrt:UrlBaseName(string(@LinkFilename)),1,9)" />...
</xsl:if>



需注意,在XSLT中好像沒有全形半形之分,英文和中文字都算一個字元。

[轉錄] 整理 MOSS 2007 Whitepapers, tools, trials, tips and starter kits

收集了網路上的文章連結:Joel Oleson's Blog - SharePoint Land

Office SharePoint Server 2007 Starter Guide pdf

  • 2007 Office System: ECM Starter Kit (6/06)
  • MultiLingual Solutions on MOSS WP (11/06)
  • ForeFront Security for SharePoint (Antivirus) Eval Download (12/06)
  • WSS 3.0 MOM MP (12/06)
  • WSS 3.0 Application - Site Templates (Fantastic 40) (1/07)
  • SharePoint Server "Help & How To's"
  • Web 2.0 WP includes MOSS 2007 (12/06)
  • 2007 Office System Compliance WP includes MOSS 2007
  • Upgrade Toolkit for Site Templates and Customizations (1/07)
  • SharePoint Data Load Tool (1/07)
  • Visual Studio Extensions for WSS 3.0
  • Role Based My Sites (Templates) (1/07)
  • Taxonomy Starter Kit (1/07)
  • MOSS 2007 MOM MP (1/07)
  • SharePoint Learning Kit (Classroom Template for WSS 3.0) 1/07
  • ViewPoint SharePoint Security and Compliance Overview (4/07)
  • MS IT Site Delete Capture
  • Fair, Good, Better, Best Office Client and SharePoint Server WP
  • Office Client and Server Compatibility (GBB) WP
  • Upgrade and Migration TechNet LP
  • SharePoint Governance TechNet LP
  • Steps to a Successful Deployment
  • Governance Checklist (6/07)
  • SharePoint Site Life Cycle Manager (6/07)
  • SharePoint Spy
  • TechNet Virtual Labs: SharePoint Server 2007 and WSS 3.0
  • Solutions and Features (8/07)
  • Sample Master Pages (4/07)
  • 2008年6月27日 星期五

    該不該動MOSS 資料庫的設定??

    在做MOSS的開發時,其實很多開發人員常常想直接對資料庫下手,但是微軟是不建議這麼做的,找資料時剛好找到此篇KB,特此紀錄一下。

     

    我之前也有過慘痛的經驗,在SPS2003的資料庫上掛上Trigger,結果行事曆檢視就出現問題了,資料顯示部完全,其實很難說到底是我上了trigger造成不正常還是這是系統bug只是剛好這個時間點發作??

     

    所以強烈建議,若真的需要對資料庫作修改及設定,強烈建議在修改前將資料庫完整備份一份起來,在做修改,並詳細紀錄所有修改的內容,因為未來在上 Hofix 或是 ServicePack 時,更新可能會完全覆蓋掉你原有的設定,需要重新設定一次。

    不建議對資料庫做的設定:

    Unless Microsoft protocol documentation is followed precisely, Microsoft cannot reliably predict the effect to the typical operation of these products when parties other than Microsoft support change the database or run stored procedures.

    Support for changes to the databases that are used by Office server products and by Windows SharePoint Services

    下面動作都是微軟不建議對資料庫做的動作:

    • Adding database triggers
    • Adding new indexes or changing existing indexes within tables
    • Adding, changing, or deleting any primary or foreign key relationships
    • Changing or deleting existing stored procedures
    • Adding new stored procedures
    • Adding, changing, or deleting any data in any table of any of the databases for the products that are listed in the "Applies to" section unless Microsoft protocol documentation is followed exactly
    • Adding, changing, or deleting any columns in any table of any of the databases for the products that are listed in the "Applies to" section
    • Making any modification to the database schema
    • Adding tables to any of the databases for the products that are listed in the "Applies to" section

     

    可以對資料庫做的設定:

    if you use the Maintenance Plan Wizard to perform the tasks that are listed in the table as "safe to perform," you are likely to experience increased performance in SQL Server 2005.

    所以如果你的資料庫環境為SQL 2005 SP2以上的環境,可以定期對資料庫作「維護計畫精靈」,以提高資料庫效能。

    Information about the Maintenance Plan Wizard in SQL Server 2005 and about tasks that administrators can perform against SharePoint databases

    • Check database integrity
    • Reduce a database
    • Reorganize an index
    • Clean up the history
    • Update statistics(其實MOSS Timer已經有排程了,不需額外設定)
    • Rebuild an index(此動作需要在SQL 2005 sp2的環境上執行才會沒問題,請注意)

    2008年6月26日 星期四

    在MOSS 上播放影片

    在網站上播放影片是很常見的事,但是在sharepoint上撥影片感覺就有點困難,稍微找的點資料,發現需要自己動手寫個webpart才行,找了幾個網站,大家很好心的提供他們的心血給大家參考,不用在寫個半死,請參考下面的連接摟,找個時間來試試

    MediaPlayer Webpart

    Media Player Web Part using SharePoint 2007 and Silverlight

    Media Player Web Part: Updated

    2008年5月29日 星期四

    CMS Assessment Tool

    微軟說明文件

    The Microsoft CMS Assessment tool is an application that collects data for a site created with Microsoft Content Management Server (MCMS) 2002. Use the CMS Assessment Tool to assess your MCMS 2002 site to determine the level of work required to migrate the site to Microsoft Office SharePoint Server 2007. To assist you, read the accompanying article, Assessing and Analyzing Your MCMS 2002 Application for Migration.

     

    下載網址

    Assessing and Analyzing Your MCMS 2002 Application for Migration

     

    安裝完成後預設路徑

    C:\2007 Office System Developer Resources\SharePoint Server 2007 SDK\Tools\CMS Assessment Tool.