我下面在這裏給出的例子覆蓋默認DocumentLibraryForm呈現模板重寫默認控件模板 - ListTitleViewSelectorMenu
MSDN - Override a Default Control Template
<SharePoint:RenderingTemplate ID="DocumentLibraryForm" runat="server">
... Custom stuff here ..
</SharePoint:RenderingTemplate>
(那是2007年的版本中,2010 version是相同的,但不完全,它不顯示指令)
而且所有的工作都很好。在覆蓋控制渲染模板的t'internet上還有很多其他示例。
但是我想重寫像ListTitleViewSelectorMenu這樣的東西,並且不起作用。
<!-- Definition from allitems.aspx -->
<SharePoint:ListTitleViewSelectorMenu AlignToParent="true" id="LTViewSelectorMenu" runat="server" />
乾杯 - 所以要取代它你正在尋找編輯listitems.aspx或東西在主列表架構? –
Ryan
2011-01-21 10:11:30