So the syntax is as follows:
I have written the code above on the examples from Scripting Guy! Blog.
In his article published in January 2012, Flavors of Peru Recast, Mr. Dave Cook published an interesting article about peruvian food in New York:
“LET’S go out for Peruvian!” doesn’t quite have the ring of a dinner invitation for Chinese or Italian. But as is increasingly clear, Peruvian cuisine — whose indigenous potatoes, chili peppers and seafood have been supplemented by ingredients and transformed by culinary techniques from many countries, China and Italy included — has much to offer beyond rotisserie chicken.
For long time I wanted to dive a bit deeper into PowerShell. Hopefully I will be able to post few of the sharepoint powershell tricks here.
First one is about getting list items from a sharepoint list: visit my homepage.
This is a simple sample how to swap div content on mouse hover. Actually I first stumbled upon this web article: http://spoonfedproject.com/jquery/jquery-image-slide-on-hover-effect/. After making few changes I was able to swap actual content of a div instead of background.
You can find the whole article here: http://www.robertkuzma.com/2011/01/jquery-animated-swap-div-content-on-hover-effect/.
Today I was updating a web site for a customer. They needed new web part in SharePoint do display random content. As i eventually figured out this was quite easy to do:
<xsl:variable name=”highlight” select=”ddwrt:Random(1,count($Rows))” />
(I googled the code in: http://blog.allyis.com/blog/bid/29519/Randomly-Displayed-Content-in-SharePoint)
There are just few simple steps:
List in SharePoint:
For the source code go to www.robertkuzma.com.
Add stsadm.exe to paths, in other words, make Windows able to execute stsadm no matter what folder you are in.
Click Start > Control panel > System > Advanced system settings
Under “System Variables” click Path (You will need to scroll down a bit - see the image attached). Click edit.
At the end of the line add:
;C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN
I created a new SharePoint Site Colletction www.domain.com but I could not sign-in. The most weird was I could sing in from my other machine. Than I figured out there might be an issue on local machine where the Site Collection was residing.
I googled a bit and found the solution quite soon: http://www.sharepointdev.net/sharepoint–setup-upgrade-administration-operation/login-prompt-for-site-collection-1135.shtml
I had to disable the loopbackcheck. Here is how Chris Caravajal is describing it: