Link to home
Start Free TrialLog in
Avatar of arnulfoespi
arnulfoespi

asked on

How to configure the footer on the display form of a list item Sharepoint

Hello,
I'm looking for a way to configure the footer information on a list item in sharepoint on:
DispForm.aspx
EditForm.aspx
I would like to remove the content type and add the item ID.

See screeshot attached.

Please advise.

Thanks!
dispform.JPG
Avatar of raybies
raybies
Flag of Australia image

This is the "CreatedModifiedInfo" rendering template in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\DefaultTemplates.
Or one of the other rendering templates like CreatedModifiedVersionInfo
Too change a template you can:

  • Modify the DefaultTemplate.ascx (not recommended)
  • Create a new MyTemplates.ascx with the same ID as the one you want to change
Just copy the code from DefaultTemplate.ascx  to your new MyTemplates.ascx make changes save in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\

It's real easy.
Avatar of arnulfoespi
arnulfoespi

ASKER

How is the list associated with the template?

Once you create a new template does it automatically associates it with the list?

I'm assuming this can be done thru SharePoint Designer?

Please advise
Sharepoint parses all templates in the directory... your template has preferrence over the default.

You have to restart IIS after you make the change.

People who use SharePoint Designer (SPD) really scare me.  SPD is such a pile of junk I ban/prevent it's use on all sites.

You can use it, but just as a file editor... notepad++ would be better.
I took a look at the DefaultTemplate.ascx
Is the listform section the one you need to modify?
If so is there a reference as to what you can change, it looks a bit complicated
Please advise

<SharePoint:RenderingTemplate ID="ListForm" runat="server">
	<Template>
		<SPAN id='part1'>
			<SharePoint:InformationBar runat="server"/>
			<wssuc:ToolBar CssClass="ms-formtoolbar" id="toolBarTbltop" RightButtonSeparator="&nbsp;" runat="server">
					<Template_RightButtons>
						<SharePoint:NextPageButton runat="server"/>
						<SharePoint:SaveButton runat="server"/>
						<SharePoint:GoBackButton runat="server"/>
					</Template_RightButtons>
			</wssuc:ToolBar>
			<SharePoint:FormToolBar runat="server"/>
			<TABLE class="ms-formtable" style="margin-top: 8px;" border=0 cellpadding=0 cellspacing=0 width=100%>
			<SharePoint:ChangeContentType runat="server"/>
			<SharePoint:FolderFormFields runat="server"/>
			<Bewise:ListDisplaySettingIterator runat="server"/>
			<SharePoint:ApprovalStatus runat="server"/>
			<SharePoint:FormComponent TemplateName="AttachmentRows" runat="server"/>
			</TABLE>
			<table cellpadding=0 cellspacing=0 width=100%><tr><td class="ms-formline"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td></tr></table>
			<TABLE cellpadding=0 cellspacing=0 width=100% style="padding-top: 7px"><tr><td width=100%>
			<SharePoint:ItemHiddenVersion runat="server"/>
			<SharePoint:ParentInformationField runat="server"/>
			<SharePoint:InitContentType runat="server"/>
			<wssuc:ToolBar CssClass="ms-formtoolbar" id="toolBarTbl" RightButtonSeparator="&nbsp;" runat="server">
					<Template_Buttons>
						<SharePoint:CreatedModifiedInfo runat="server"/>
					</Template_Buttons>
					<Template_RightButtons>
						<SharePoint:SaveButton runat="server"/>
						<SharePoint:GoBackButton runat="server"/>
					</Template_RightButtons>
			</wssuc:ToolBar>
			</td></tr></TABLE>
		</SPAN>
		<SharePoint:AttachmentUpload runat="server"/>
	</Template>
</SharePoint:RenderingTemplate>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of raybies
raybies
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial