Ana içeriğe atla


Sharepoint Designer etiketine sahip yayınlar gösteriliyor

SharePoint Autonumber Custom List Field

Open your web site in SPD. Create a new workflow. In the File menu, select New->Workflow... In the dialog that appears, give the workflow a name, e.g. "Assign Customer Number". In the drop-down list below, choose to connect the workflow to the list you want to assign autonumbers to (In this case, this would be a list called Customers). Then check the middle option of the three check boxes below, "Start this workflow automatically when a new item is created". On the same dialog, there is a button at the bottom called "Variables...". Click it. Choose "Add", name it "mNumber" and make it of type "Number". Click OK, and OK again. Now, click "Next" in the dialog. You can leave the step name as is ("Step 1"). Leave the "Condition" empty, and click the "Actions" button. In the menu that appears, select "Set workflow variable". This will add an action to the list to the ri

Sharepoint – Lokalizasyon (LCID) Kodları

Merhaba,   Geçen günlerde ilgilendiğim bir proje ile ilgili Localizasyon kodlarına gereksinim oldu. Elimin altında olması ve gerekirse sizlere de kolaylık sağlayabilmesi amacıyla alt kısımda bu listeyi paylaşıyorum.   Listenin alındığı orjinal adres: şeklindedir. Language - Country/Region LCID Hex LCID Dec Afrikaans - South Africa 0436 1078 Albanian - Albania 041c 1052 Alsatian 0484 1156 Amharic - Ethiopia 045e 1118 Arabic - Saudi Arabia 0401 1025 Arabic - Algeria 1401 5121 Arabic - Bahrain 3c01 15361 Arabic - Egypt 0c01 3073

SharePoint 2010 Error: Cannot make a cache safe URL for "1031/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory.

I had to take backup from my client’s production site to make some analysis in my local server. So I took backup and restored the site in local server. Restored was successful. Then I changed the site collection administrator of the restored site as it was still pointing to the production server’s site collection administrator. Then I tried to browse the site and found the interesting error “Cannot make a cache safe URL for "1031/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory.” The very first thing I noticed the path contains 1031. Anyone can guess that this is language id and thought came to my mind is that my client SharePoint site not in English. The production site was in German language and when I restored the site, its looking for resources in German language ID folder. Then I download the language pack from MSND and refreshed the browser. It worked like magic….

SharePoint 2010 - Modal Pop-Up for a Unique Content Type

To continue the conversation with the modal pop up window, I was asked the following great question: “ What if your list has different content types, each having their own form? Is there a way to make this pop-up specific to the form of a certain content type?” The answer is yes it is quite easy to link the pop-up modal window to a unique content type: You would use the same approach but you would add in the Content Type ID to the end of the URL string: <a onclick="javascript:NewItem2(event, &quot;http:// sitename /_layouts/listform.aspx?PageType=8&amp;ListId={ 49E3BDCF-9C06-413D-A7B8-413F2E8F6B0D }&amp; ContentTypeId=0x01005C9243AA25668B4CAACB42C41B0D360600052ECA5C 1544864D9F9B7BF90A874A4F&amp; RootFolder=&quot;); javascript:return false;" href="/_layouts/listform.aspx?PageType=8&amp;ListId={ 49E3BDCF-9C06-413D-A7B8-413F2E8F6B0D }&amp; ContentTypeId=0x01005C9243AA25668B4CAACB42C41B0D360600052ECA5C 1544864D9F9B7BF90A874A4

SharePoint 2010 - Ways to extend the SharePoint Modal Window

So in my last post I simply wanted to show an input form in a SharePoint 2010 modal window. This got my creative juices flowing and I wanted to experiment a little. I found out that you can easily display anything in the Modal window that you wanted. Web Site: Bing <a onclick="javascript:NewItem2(event, &quot;;); javascript:return false;" href="" target="_self">Show Bing In Modal Window</a> Image <a onclick="javascript:NewItem2(event, &quot; http://sitename/Images/image.png&quot;); javascript:return false;" href="/images/image.png/" target="_self">Show Image</a> Video/Games This does not really work since most video’s open up in a separate application like Window Media Player and not within the browser. However you can use things like flash .swf files to show in the modal window. <a onclick="j

SharePoint 2010 - How To: Create Hyperlink to Modal Pop-Up Form

I was asked by a client recently if there was a way to create a hyperlink to a New Item Form anywhere within a site but still get the rich experience of the Modal pop-up window that grays out the background. (Note this is for SharePoint 2010 Only…) I basically took the code directly from the “Add new item” and the “Add Document” link within the list view. What this allows you to do is simply add in the following code to any content editor web part, Master page, or Page Layout in any site collection and display the form to be filled out. The user will get the nice experience of the modal window and not have to navigate away from their current page. This could be used for example a feedback form that is included in the master page so whenever someone wants to give feedback it is always going back to a central list. The only that is required for you to know is the List ID and the site name. Full Code For a List Item: <a onclick="javascript:NewItem2(event, &quot

SharePoint 2010 - How To: Hide Left Side Navigation on Home Page

I was recently asked: " How can I hide the side nav bar on the main homepage layout ?? I want to be able to use the side NAV with in the team site etc etc, but I don't want it on the front page.. " There are a couple of ways to do this in SharePoint 2010 . If you are using a non-publishing site you can add a Content Editor Web Part to the page and add the following to the HTML Source. <Style> body #s4-leftpanel { display: none; } .s4-ca { margin-left: 0px; } </style> Basically the CSS above hides the left navigation Div, and then sets the content area to not have a left margin. Once you are done, simply modify the web part and hide it on the page. If you are using a publishing site for your homepage simply add the same styles specified above to a custom page layout. That way if you have a need for other pages that do not need the left side navigation you can re-use the page layout.

SharePoint 2010 - Enable Small Social Buttons

To convert the large social buttons to smaller ones you simply have to modify the following: Within your custom Master Page search for: “ GlobalSiteLink3 ” Simply Add “ -mini ” to the control ID Original Large Control: <SharePoint:DelegateControl ControlId=" GlobalSiteLink3 " Scope="Farm" runat="server"/> New Small Control ID: <SharePoint:DelegateControl ControlId=" GlobalSiteLink3 -mini " Scope="Farm" runat="server"/> If you want to make the small buttons horizontal versus vertical simply add the following to your custom CSS: .ms-mini-socialNotif-Container{     white-space: nowrap; } Enjoy!

SharePoint 2010 - Issues with moving search into top ribbon bar

I was recently on a project where there was a requirement to have many items in the main navigation. There was not an option to consolidate these into smaller groups. The idea was to move the search box up into the top ribbon bar. This would allow for more horizontal space for the navigation items. However in my attempt to move the search I found a little gotcha. I selected the search control in SharePoint Designer and moved it right above the welcome navigation control code. Wrapped the control in a div tag and temporarily added an inline style of float left. <div style="float: left;">    <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">       <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/>    </asp:ContentPlaceHolder> </div> I saved the master page and then checked out what it looked like. The sea

SharePoint 2010 - Tab Web Part JQuery, Java, and CSS

I have been searching for a simple tab web part for SharePoint but mostly came up empty handed… I was looking for something that a user can easily drag and drop a web part onto a specific tab within the page. There are quite a few free tab web parts out there but most of them were not just quite what I wanted. I checked out the following Tab web part solutions. Easy Tabs : From Path To SharePoint Pro: The tabs automatically take the name of the web part. Con: There is no option to add more than one web part per tab, and the User Interface is not that intuitive. Zone Tabs : From MSDN Pro: You have a lot of options for tab customization Con: It’s a web part that you have to install on the server. From what I remember it’s not that easy to re-arrange the web parts on the page. I finally found this article from Bits Of SharePoint Site : http://www.bitsofsharep

SharePoint 2010 - Content Query for Blog Posts

I hope this post will help many of you feel comfortable with using the Content Query Web Part. In this post I will walk you through the process of creating a content query web part and configuring it to show custom field types. I will also give details on how to use XSLT to stylize and format the data being pulled. I will be using the following scenario as an example. Say that you had a site collection with a top level publishing site. This publishing site would display a the most recent blog posts from all blog sites within its own site collection. To solve this problem we will use a Content Query Web Part and a customized ItemStyle.xsl using XSLT. Please note that the “SharePoint Server Publishing Infrastructure” needs to be enabled at the site collection to display the content query web part. Step 1: Add a Content Query Web Part to Page Navigate to the site that you want the blog posts to show up and click on edit page. Under Editing Tools in the Ribb

SharePoint 2010 - SharePoint Designer 2010 Edit in Advanced Mode

In SharePoint Designer 2007 you can simply open up any type of file you wanted even if it did not reside in SharePoint. Well now things have change for 2010… Now you are forced to open up a SharePoint site before attempting to open up a file that resides outside of SharePoint. If you try before opening up a site you get the following error message: “You must first open a Web site before editing external Web pages…” Not really sure why they changed this maybe they want to ensure that you are not downloading the free SharePoint designer and simply using it as a HTML editor for non-SharePoint sites… Anyways that is not the focus of this post. I also noticed that SharePoint designer tricks you to thinking that you cannot edit pages. Say you want to modify a file that does reside in SharePoint. By Default it will open up in a read only view (HTML) and will not allow you to change the file. It will have a orange like highlight to areas that are not editable. So the trick is to righ

SharePoint 2010 - Themes

As you all know SharePoint has a new theme engine for 2010. You can do cool things such as create a theme in PowerPoint, export it and then import it into SharePoint 2010, click apply and you got a custom theme. One aspect that I could not find documented is the definition of when you choose a color for a particular element what is it really changing? If you modify the theme for a site you can use the picker to choose a OOTB or custom theme. Or you have the ability to choose your own color scheme via the following elements. My approach: Make each element white to start with and then one by one add color and document the results. Just for kicks here is what it looks like when it is completely white… (not a color scheme I would recommend…) I will be using a red color: #C12345 for testing. Here are the details for each one of the elements above: Text/Background- Dark 1 (41 Classes) Page Title Hyperlink Text Hover Text VB Body Text

SharePoint - Style Individual Navigation Items for 2007 & 2010

Here is a simple yet effective way to stylize individual top navigation items for SharePoint 2007 & 2010 just using CSS. SharePoint 2010 will need a slight modification to the master page but the same effect can be achieved. See bottom of post for 2010 implementation. To start off with lets review how this can be accomplished for 2007. SharePoint 2007 provides a unique ID for each note in the navigation. 1st Tab: Dedicated as your default Home or root node ID: zz1_TopNavigationMenun0 2nd Tab: This is the first child node from the root ID: zz1_TopNavigationMenun1 3rd Tab: This is the second child node from the root ID: zz1_TopNavigationMenun2 4th Tab: This is the third child node from the root ID: zz1_TopNavigationMenun3   See the pattern… It keeps going and going. Here is what it looks like from the IE DOM Explorer in IE8: So you might ask well what can I do with this unique ID? We