Sharepoint项目周记二

最近负责一个项目,需要结合MOSS + TFS + Project Server,有的技术以前也没接触过,肯定会遇到很多问题,在此列出项目中的问题和自己的一些感悟。
以下是第二周发现的一些问题和解决方法,采用QA的方式列出:
由于项目比较紧张,写的不够详细,有不明白的或者有更好的解决方案的请在下面提出。
1、Q:在不能使用Sharepoint Designer的情况下如何修改一个页面:
   A:最极端的方法可以直接修改数据库中字段的值。
    select b.* from alldocs t, alldocstreams b where t.leafname='default.aspx' 
     and dirname='project' and t.id=b.id;
     直接修改对应的Content,size字段就可以了
     alldocstreams表中有所有页面的文件

2、Q:建立Sharepoint网站时最好不要使用哪些端口
   A:以下端口最好不要使用,是其他程序的默认端口的
    88 TFS Server
    8080 TFS admin
    8090 TFS web access
    80 Report Server

3、Q:主页对应的url在哪里配置
   A:WelcomeNames表定义了首页的链接,可以加入新的首页名称,但只能是根目录下的
   NavNodes表有菜单的url定义,但不能改主页的,页面自动生成菜单就是从这里取得的

4、Q:如何将Project web access中的webpart加入自己的页面
   A:在网上看到的资料:
      1.     Chose the Web Part (e.g. TimesheetPart) from the PWA homepage or the web parts gallery (Project Web Access > Site Settings > Galleries > Web Parts) and Export and Save to your preferred desktop location:
      2.     Edit the Web Part in Notepad. Find the following property PSIURL (or add if it does not exist) and change it accordingly for instance:
  <property name="PsiUrl" type="string"> http://server/PWA</property>
      3.     Save Web Part update
      4.     From http://server/sites/project  - Site Collection EPM > Web Part Gallery > Upload Document, select TimesheetPart modified earlier.
      5.     Add Web Part to the page you like (Site Action -> Edit Page)
注意的就是需要把PsiUrl属性配置成第一个属性,同时项目详细信息webpart是不能加入的,可以参照Project SDK自己来写,也比较简单的

5、Q:sharepoint 的Ghost Page保存在什么位置
 保存在对应的目录里,分离之后会保存到数据库的alldocstreams表中
 Ghost Page位置定义在alldocs表中(相对路径 --SiteTemplates\PWA\ProjectDrillDown.aspx),如ProjectDrillDown.aspx保存在:
  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\PWA

6、Q:如何配置发送邮件
   A:这个比较简单,在管理中心中设置传出电子邮件设置 ,在自己的列表,比如在问题的高级设置中设置是否在分配所有权后发送电子邮件
     问题-〉操作-〉通知我


7、Q:在管理中心从”操作“页面中,进入”服务器上的服务“,然后点击 services 搜索服务的“停止”按钮,发现会自动删除 管理中心的网站
   A:的确是的,不过可以运行“管理工具”中的“sharepoint 产品和技术配置向导”,一路“下一步”就可以了
     配置工具还是比较好的,重新配置后不会清掉原来的网站,而且ssp中配置的pwa还是存在的-_-

8、Q:如何共享子网站中的列表
   A:在Project Designer中操作:
   数据源库-〉连接到其它库(子网站的博客)
   -〉新建链接源
   -〉右键 显示数据
      -〉将选择的域插入为....
      数据视图来调整
      关键就是链接到其它库,然后通过数据源来调整
     数据源的操作时比较有用的,还可以合并多个列表等

9、Q:如何直接使用asp.net的自定义控件
   A:把写好的控件放入c:\Program Files\Common Files\Microsoft Shared\web server extensions\12  \TEMPLATE\CONTROLTEMPLATES 和
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\Layouts等目录就可以了

10、Q:如何允许在页面加入代码
    A:在web.config中加入配置:
    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
      <PageParserPaths>
        <PageParserPath VirtualPath="/project/library/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
      </PageParserPaths>
    </SafeMode>
    加入代码后,就不能再Project Designer中编辑了

11、Q:sharepoint中有哪些属性可以用
    A:使用方法:<SharePoint:ProjectProperty Property="BlogCategoryTitle" runat="server"/>   

Name

Description

BlogCategoryTitle

Category of the current post item.

BlogPostTitle

Title of the current post item.

Description

Description of the current Web site.

RecycleBinEnabled

1 if the recycle bin is enabled; otherwise, 0.

SiteOwnerName

User name of the owner for the current site collection.

SiteUrl

Full URL of the current site collection.

Title

Title of the current Web site.

Url

Full URL of the current Web site.


12、Q:为什么我查找不到人员?
    A:爬网之后才可以查询人员和列表信息等

13、Q:如何显示和定制一个人员的列表?
    A:在网站的所有人员的一览的列表上启用RSS,然后把这个RSS在Designer中作为数据源,建立自己的数据视图就可以了

14、Q:数据视图中如何操作xsl进行格式控制?
    A:和普通的xsl是差不多的,参见如下语句:
    <a href="/blog/Lists/Categories/Person.aspx?Name={title}"><xsl:value-of select="title"/></a>
posted @ 2007-12-15 14:52  永春  阅读(3426)  评论(0编辑  收藏  举报