Posts

Create Images Search Result in SharePoint - Part 3

Image
Edit Search WebPart In this articles I'll explain how to create the formatted image search results There are three steps to perform this operation at MOSS 1. Create an Image scope at the SharePoint Search. 2. Create New Rules for SharePoint Search. 3. Edit Search Web part. Edit Search WebPart Now at your page that you create (picturesResults.aspx) Go to Edit page-> Core Results WebPart -> Modify Shared Web Part -> Xsl Editor And add this source: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:param name="ResultsBy" /> <xsl:param name="ViewByUrl" /> <xsl:param name="ViewByValue" /> <xsl:param name="IsNoKeyword" /> <xsl:param name="IsFixedQuery" /> <xsl:param name="ShowActionLinks" /> <xsl:param name="MoreResultsText" /> <xsl:param name="MoreResultsLink" /> <xsl:pa...

Create Images Search Result in SharePoint - Part 2

Image
Create New Rules for SharePoint Search In this articles I'll explain how to create the formatted image search results 1. Create an Image scope at the SharePoint Search. 2. Create New Rules for SharePoint Search. 3. Edit Search Web part.   Create New Rules for SharePoint Search. Go to "SharePoint 3.0 Central Administration". Afther, go to Shared Services Administration- > Your SSP -> Search -> Search administration -> Queries and Results - > Scopes -> Your Scope And create your rules, like FileExtension = JPG FileExtension = GIF FileExtension = PNG   Now go to Crawling -> Content sources -> at your source run full crawl see more at Create Images Search Result in SharePoint - Part 1 Create Images Search Result in SharePoint - Part 3 There are three steps to perform this operation at MOSS

Create Images Search Result in SharePoint - Part 1

Image
Create an Image scope at the SharePoint Search In this articles I'll explain how to create the formatted image search results There are three steps to perform this operation at MOSS 1. Create an Image scope at the SharePoint Search. 2. Create New Rules for SharePoint Search. 3. Edit Search Web part.   Create an Image Scope at the SharePoint Search Go to "SharePoint 3.0 Central Administration". Now go to Shared Services Administration- > Your SSP -> Search -> Search administration -> Queries and Results - > Scopes -> New Scope Fill in the details of the form And click OK. (Create Scope See also the following article: Create a new scope in SharePoint search ) see more at Create Images Search Result in SharePoint - Part 2 Create Images Search Result in SharePoint - Part 3

Tabs, Ribbons and Notification Bar in SharePoint 2010

Image
This time, we will show how to create a Ribbon with Visual Studio 2010 for SharePoint 2010 without writing server side. Easily seen how to create a new Tab (1), how to build xml of Ribbon (2) and how to create a simple code of Notification Bar  (3). We will open an empty project in SharePoint 2010 and tied him to the site. After this, we will add to item-Empty Elements.. Elements.xml file, we add the following code: <? xml version = " 1.0 " encoding = " utf-8 " ?> < Elements xmlns = " http://schemas.microsoft.com/sharepoint/%22&gt ; " >   < CustomAction    Id = " Roi.SharePoint.Ribbon.CustomTab "    Location = " CommandUI.Ribbon " RegistrationType = " List " RegistrationId = " 101 " >     < CommandUIExtension >       < CommandUIDefinitions >         < CommandUIDefinition Location = " Ribbon.Tabs._ch...

Export SharePoint 2010 List to Excel with PowerShell

Image
In the previous article I explained how to create a list item, This time I will demonstrate how to export SharePoint List to Excel using PowerShell. All we need to do, is to open the Site, the List and the Items, and then to export it to Excel. Code: $MyWeb = WebUrl $ MyList = MyWeb. Lists [ " ListName " ] $ MyItems = $MyList. Items $ MyItems | Select Fields.. | Export-Csv FilePath $ MyWeb. Dispose() The list looks like this The Excel sheet looks like this

The Type could not be found or is not registered as safe

Image
Programmer's best friend is the " copy - paste ". This is the case, I was asked to create a Webpart in SharePoint, which is similar to Webpart that I developed in the past. The way I did this was: I copied (and pasted) the project, changed the Name, the Namespace , the Assembly and of course I modified the code requested. Everything worked fine. I moved it to my test server and then I got the following error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. This time, the programmer's best friend failed I checked in web.config that - Webpart is defined as safe - indeed it was. Weird ?!?!? Again I returned to code, I checked if there is any residue of the previous Webpart code. I found that there was nothing there. What is this? Am I rookie? It's not my first Webpart. Then came the Enlightenment I added to the code, ToolboxData and Guid properties, and it solved th...

This page allows a limit of ... controls, and that limit has been exceeded

Image
הפעם משהו קטן שסביר להניח שנתקלתם ואם לא תתקלו במהלך העבודה בSharePoint, במיוחד שניסיתם להוסיף Control בMasterPage. השגיאה הנחמדה הבאה: This page allows a limit of  ... controls, and that limit has been exceeded אני לא יודע למה מיקרוסופט מגבילים את מספר ה control 'ים לערך נמוך בכל מקרה, אני מגדיר את ההגדרה ב Web.Config ל500 control 'ים (MaxControls="500")– זה מספיק ויותר. כל מה שצריך לעשות, זה להכנס לשרת/ים ולתת בהגדרה MaxControls ערך גבוה  ב Web.Config . < SharePoint >     < SafeMode MaxControls = " 500 " CallStack = " true " DirectFileDependencies = " 10 " otalFileDependencies = " 50 " AllowPageLevelTrace = " false " >       < PageParserPaths >       </ PageParserPaths >     </ SafeMode > ... נשתמע, רועי