Module 6Extending Web Content Management.docx

上传人:b****7 文档编号:15756113 上传时间:2023-07-07 格式:DOCX 页数:20 大小:43.50KB
下载 相关 举报
Module 6Extending Web Content Management.docx_第1页
第1页 / 共20页
Module 6Extending Web Content Management.docx_第2页
第2页 / 共20页
Module 6Extending Web Content Management.docx_第3页
第3页 / 共20页
Module 6Extending Web Content Management.docx_第4页
第4页 / 共20页
Module 6Extending Web Content Management.docx_第5页
第5页 / 共20页
Module 6Extending Web Content Management.docx_第6页
第6页 / 共20页
Module 6Extending Web Content Management.docx_第7页
第7页 / 共20页
Module 6Extending Web Content Management.docx_第8页
第8页 / 共20页
Module 6Extending Web Content Management.docx_第9页
第9页 / 共20页
Module 6Extending Web Content Management.docx_第10页
第10页 / 共20页
Module 6Extending Web Content Management.docx_第11页
第11页 / 共20页
Module 6Extending Web Content Management.docx_第12页
第12页 / 共20页
Module 6Extending Web Content Management.docx_第13页
第13页 / 共20页
Module 6Extending Web Content Management.docx_第14页
第14页 / 共20页
Module 6Extending Web Content Management.docx_第15页
第15页 / 共20页
Module 6Extending Web Content Management.docx_第16页
第16页 / 共20页
Module 6Extending Web Content Management.docx_第17页
第17页 / 共20页
Module 6Extending Web Content Management.docx_第18页
第18页 / 共20页
Module 6Extending Web Content Management.docx_第19页
第19页 / 共20页
Module 6Extending Web Content Management.docx_第20页
第20页 / 共20页
亲,该文档总共20页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

Module 6Extending Web Content Management.docx

《Module 6Extending Web Content Management.docx》由会员分享,可在线阅读,更多相关《Module 6Extending Web Content Management.docx(20页珍藏版)》请在冰点文库上搜索。

Module 6Extending Web Content Management.docx

Module6ExtendingWebContentManagement

Module6:

ExtendingWebContentManagement

Datepublished:

February2009

Summary:

ThismoduledescribeshowtocustomizeMicrosoft®OfficeSharePoint®WebContentManagementsothatyoucanincludecustomizationsinsolutionarchitectures.

SeeWebContentManagementTrainingModules(foracompletelistoftheavailabledownloads.

TheinformationcontainedinthisdocumentrepresentsthecurrentviewofMicrosoftCorporationontheissuesdiscussedasofthedateofpublication.BecauseMicrosoftmustrespondtochangingmarketconditions,itshouldnotbeinterpretedtobeacommitmentonthepartofMicrosoft,andMicrosoftcannotguaranteetheaccuracyofanyinformationpresentedafterthedateofpublication.

ThisWhitePaperisforinformationalpurposesonly.MICROSOFTMAKESNOWARRANTIES,EXPRESS,IMPLIEDORSTATUTORY,ASTOTHEINFORMATIONINTHISDOCUMENT.

Complyingwithallapplicablecopyrightlawsistheresponsibilityoftheuser.Withoutlimitingtherightsundercopyright,nopartofthisdocumentmaybereproduced,storedinorintroducedintoaretrievalsystem,ortransmittedinanyformorbyanymeans(electronic,mechanical,photocopying,recording,orotherwise),orforanypurpose,withouttheexpresswrittenpermissionofMicrosoftCorporation.

Microsoftmayhavepatents,patentapplications,trademarks,copyrights,orotherintellectualpropertyrightscoveringsubjectmatterinthisdocument.ExceptasexpresslyprovidedinanywrittenlicenseagreementfromMicrosoft,thefurnishingofthisdocumentdoesnotgiveyouanylicensetothesepatents,trademarks,copyrights,orotherintellectualproperty.

©2009MicrosoftCorporation.Allrightsreserved.

Microsoft,SharePoint,VisualStudio,andWindowsaretrademarksoftheMicrosoftgroupofcompanies.

Allothertrademarksarepropertyoftheirrespectiveowners.

TableofContents

Module6:

ExtendingWebContentManagement1

Module6Overview1

Objectives1

Lesson1:

CustomizingContentPresentation1

Objectives1

CreatingaCustomFieldControl1

FieldTypesandFieldControls2

CreatingaCustomFieldControl2

DeployingCustomFieldControls2

CustomizingNavigation3

Built-inNavigationControls3

NavigationModel4

CreatingaCustomNavigationControl4

WhentoConsideraCustomNavigationControl4

WorkingwithSiteMapProviders5

ConsiderationsforDevelopers5

CustomizingtheSiteVariationRedirectionLogic5

DefaultSiteVariationLogic6

HowDevelopersModifytheSiteVariationRedirectionLogic6

UsingtheVariationNavigationControl7

Lesson2:

CustomizingContentEditing7

Objectives7

CustomizingthePageEditingToolbar7

FacilitiesonthePageEditingToolbar8

HowtoCustomizethePageEditingToolbar8

CustomizingtheHTMLEditorFieldControl8

ControllingEditorActions9

ControllingTableFormats9

AddingExtraButtons10

Lesson3:

CustomizingContentDeployment10

Objectives10

CapabilitiesoftheContentDeploymentandMigrationAPI11

ExportingOfficeSharePointContent11

SpecialFeatures11

ImportingContent12

CustomContentDeploymentScenarios13

ReviewofModule613

Module6Overview

Asthearchitect,youmightfindthatyourorganizationhasunusualoruniqueWebContentManagement(WCM)requirementsthatrequirecustomizationofMicrosoft®OfficeSharePoint®ProductsandTechnologies.YoucancustomizemanyaspectsofOfficeSharePointWCMtosuityoursituation.Forexample,youcancreatecustomcontrolsforpresentingandeditingitemsonyourpages.

ThismoduledescribesthewaysinwhichyoucancustomizeOfficeSharePointWCMsothatyoucanincludecustomizationsinsolutionarchitectures.

Objectives

Aftercompletingthismodule,youwillbeableto:

∙DescribehowdeveloperscancustomizethewayOfficeSharePointProductsandTechnologiespresentcontenttositevisitors(Lesson1)

∙DescribehowdeveloperscanchangethewaythatuserseditcontentinOfficeSharePointsites(Lesson2)

∙IncludecustomcontentpresentationinWCMsolutionarchitecture(Lesson3)

Lesson1:

CustomizingContentPresentation

OfficeSharePointProductsandTechnologiesincludeversatilefacilitiesthatpresentdatatositevisitors.Youcanoftencreatethesitethatyouwantbyusingthesefacilitieswithoutanycustomization.However,forthosewithunusualoruniquerequirements,OfficeSharePointprovidesseveralopportunitiestocustomizecontentpresentation.

Objectives

Aftercompletingthislesson,youwillbeableto:

∙Describecustomfieldcontrolsandsituationsinwhichyoushouldconsidercreatingthem

∙ListthealternativenavigationcontrolsandprovidersthatOfficeSharePointProductsandTechnologiesinclude

∙Understandhowdeveloperscreatecustomnavigationcontrols

∙Describesituationsinwhichyoushouldconsidercustomizingthesitevariationredirectionlogic

CreatingaCustomFieldControl

YoucanstoremanytypesofdatainOfficeSharePointProductsandTechnologiesWCMsolutionsbyselectingappropriatefieldtypes.EachfieldtypeisrenderedonaWebpagebyafieldcontrol.Occasionally,youmightrequireacustomfieldtypeinyoursiteandinthatcaseyoushouldplanacustomfieldcontroltodisplayyourdatatousers.

Thissectioncontainsthefollowingtopics:

∙FieldTypesandFieldControls

∙CreatingaCustomFieldControl

∙DeployingCustomFieldControls

FieldTypesandFieldControls

Developerscreatecustomfieldtypesandcustomfieldcontrolsbywritingmanagedcode.Customfieldtypesandcontrolscanextendthefunctionalityofbuilt-infieldsandcontrols.

Beforeyouplanforacustomfieldtypeandacustomfieldcontrolinyourarchitecture,considerfirstwhetheryoucansatisfyyourrequirementsbyusingabuilt-infieldtype.Forexample,tostoreapostaladdressyoumightuseamultilinetextfield.

Considerusingacustomfieldtypeinthefollowingcircumstances:

∙Similardataappearsmanytimesthroughoutyoursite,oracrossmultiplesites.Youcanreusecustomfieldtypestomaximizethereturnoninvestmentincustomcode.

∙Yourequirecustomdatavalidation.Youcanbuilddatavalidationintoyourcustomfieldtypetoensurethatusersentersensible,validdata.

∙Thebuilt-incontrolsdonotdisplaydatatoyoursatisfaction.Youhaveprecisecontroloverthedisplayofdatawhenyoucreateacustomfieldcontrol.

CreatingaCustomFieldControl

Whenadevelopercreatesacustomfieldtypeandacustomfieldcontrol,theymust:

∙CreateaclasslibraryprojectintheMicrosoft®VisualStudio®2005orMicrosoft®VisualStudio®2008developmentsystem.Thiskindofprojectcompilesintoa.dllfile.

∙Addacustomfieldtypetotheproject.Thecustomfieldtypeisaclassthatextendsoneofthebuilt-infieldtypes.Thedevelopercanextendthebuilt-infieldtypebyoverridingmethods.Forexample,toaddcustomdatavalidation,thedevelopercouldoverridetheGetValidatedStringmethod.

∙Addacustomfieldcontroltotheproject.Thecustomfieldcontrolisaclassthatextendsoneofthebuilt-infieldcontrols.Thedevelopercancustomizethedisplayofinformationbyoverridingmethods.

∙Createafieldtypedefinitionfile.ThefieldtypedefinitionfileisanXMLfilethatcontainsinformationthattheOfficeSharePointserverusestoinstantiateandrunthefieldtype.

DeployingCustomFieldControls

Whenthedeveloperhascompletedandcompiledthefieldcontrolandfieldtype,youmustcompletethefollowingstepstodeploythem(ideallythoroughanOfficeSharePointsolution):

►Deploythecustomfieldcontrols

1.Installthe.dllfileintotheGlobalAssemblyCache(GAC)onallthefront-endWebserversinyourserverfarm.

2.Copythefieldtypedefinitionfiletothefollowinglocation:

C:

\ProgramFiles\CommonFiles\MicrosoftShared\webserverextensions\12\TEMPLATE\XML

3.AddatagtotheWeb.configfilesfortheappropriateWebapplicationsforthecustomfieldcontrol.

CustomizingNavigation

AclearnavigationdesigniscrucialtoallWebsitesbecauseitenablesuserstolocateinformationrapidlyandintuitively.Forthisreason,youmightwanttocustomizethewaythatOfficeSharePointProductsandTechnologiesformulateandpresentnavigationinformation.Thefollowingtableshowsaspectsofnavigationcustomization.

Aspect

Details

Built-innavigationcontrols

Global

Current

Breadcrumb

Summarylinks

Treeview

Contentbyquery

Navigationmodel

Datasources

Sitemapproviders

Navigationcontrols

Built-inNavigationControls

ThenavigationcontrolsbuiltintoOfficeSharePointProductsandTechnologiesprovideadvancedfunctionalityandagreatdealofflexibility.Theyshouldbecarefullyconsideredbeforeyouconsiderincludingacustomnavigationsolutioninyourarchitecture.Thecontrolsareasfollows:

∙Globalnavigationcontrol:

  Appearsastoplinkbarsortabsindefaultsitetemplates.Administratorscanspecifywhatisdisplayedhere.Bydefault,thecontroldisplaysallsubsitesonelevelbelowthetop-levelsite.ThisnavigationisimplementedwiththeOfficeSharePointmenucontrolthatyoucanusetocreateothernavigationelements.

∙Currentnavigationcontrol:

AlsoknownastheQuickLaunchanddisplayedontheleftindefaultsitetemplates.Administratorscanextensivelycontrolitscontent.Forexample,theycanselectwhetherthenavigationdisplaysamenuoratreeviewofthesite.

∙Breadcrumbnavigationcontrol:

Displaystheuser’scurrentpositioninthesitehierarchy,withlinkstoallhigherlevels.

∙Treeviewcontrol:

Displaysahierarchyofthesite.Youcanconfigurethenumberoflevelstoshowandmakeotheradjustments.

∙ContentQueryWebPart:

Displaysad

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2