Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-04-29
8
Medium Priority
?
829 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:arnulfoespi
  • 5
  • 2
7 Comments
 
LVL 16

Expert Comment

by:raybies
ID: 24266008
This is the "CreatedModifiedInfo" rendering template in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\DefaultTemplates.
0
 
LVL 16

Expert Comment

by:raybies
ID: 24266017
Or one of the other rendering templates like CreatedModifiedVersionInfo
0
 
LVL 16

Expert Comment

by:raybies
ID: 24266046
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.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:arnulfoespi
ID: 24266157
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
0
 
LVL 16

Expert Comment

by:raybies
ID: 24266192
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.
0
 

Author Comment

by:arnulfoespi
ID: 24331775
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

0
 
LVL 16

Accepted Solution

by:
raybies earned 2000 total points
ID: 24332007
No, that's the listform... I modified CreatedModifiedInfo.

There will be no doco on MSDN for templates... but you can lookup individual controls.

Everything can be changed, it's like HTML.

If you create a new template you can just play around/experiment, no harm will come of it... cos u can deleted it.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question