Displaying the right data in the Content Search web part in SharePoint 2013
http://www.sharepointnutsandbolts.com/2013/03/displaying-right-data-in-content-search.html
Sharepoint Tips, Tricks, Programming, Administration and Online Trainings
Tuesday, November 19, 2013
Best Practices for Developing Web Parts for SharePoint Products and Technologies
http://msdn.microsoft.com/en-us/library/dd583135(v=office.11).aspx
The Top 30 New Reasons to Use SharePoint Server 2013 for Public-Facing Internet Sites
http://blogs.technet.com/b/mspfe/archive/2013/01/29/public-facing-internet-sites-based-on-sharepoint-server-2013.aspx
Sharepoint web part form validation blocks saving page
Solution is:
Add the below code into the Page_load method.
// Get the current display mode of the WPM
WebPartManager wp = WebPartManager.GetCurrentWebPartManager(Page);
String mode = wp.DisplayMode.Name;
// Enable validation in BrowseDisplayMode only
if (wp.DisplayMode == WebPartManager.BrowseDisplayMode)
{
validatorID.Enabled = true;
}
else
{
validatorID.Enabled = false;
}
}
Add the below code into the Page_load method.
// Get the current display mode of the WPM
WebPartManager wp = WebPartManager.GetCurrentWebPartManager(Page);
String mode = wp.DisplayMode.Name;
// Enable validation in BrowseDisplayMode only
if (wp.DisplayMode == WebPartManager.BrowseDisplayMode)
{
validatorID.Enabled = true;
}
else
{
validatorID.Enabled = false;
}
}
Refer: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartmanager.displaymode.aspx
Tuesday, August 20, 2013
Code to send "Current page URL" in e-mail body
<html>
<head>
<META name="WebPartPageExpansion" content="full">
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Check out this article on " + document.title;
mail_str += "&body=I thought you might be interested in this article on " + document.title;
mail_str += ". You can view it at, " + location.href;
location.href = mail_str;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div style="padding-top:5px" align="center">
<input type="button" onclick="javascript:mailpage();" value="Email This Article" class="style5" style="color: #990000; font-weight: bold; font-family: 'CA Sans';"/></div>
</body>
</html>
Wednesday, December 5, 2012
Code to hide Global Navigation
Place the following code in CEWP:
#zz1_TopNavigationMenu
{
display: none;
}
</style>
#zz1_TopNavigationMenu
{
display: none;
}
</style>
Code to Custom text in IE tab and Add Favourates of page
Place the following code in CEWP:
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePointWebControls:ListItemProperty Property="Title" runat="server"/>
(or some custom text)
</asp:Content>
Subscribe to:
Posts (Atom)