I’ve often been asked to get almost any kind of report about SharePoint’s content. This time the customer asked me to get the list of all publishing pages and their page layout in a site collection. This is quite an easy task, of course using PowerShell! It’s just a matter of looping through all SPWebs in the site collections, get the page library content and print some item properties in a text file. Let’s see how to do that.
Since this is just a quick tip take a look to the comments in the script, they should be self explaining :)
In a new project I’m working on I had to create a new Content Type and make it available on all the document libraries in the site collection. I had to choices: browse each document library’s settings page and enable the content type via the UI or let PowerShell do it for me. Since I’m really lazy I chose the scripting way.
A few days ago I published the script on TechNet Gallery, “Enabling content type on multiple lists with PowerShell“. As you can imagine the script enables a content type on each document library in a site collection. It takes three parameters: site, name and list.
The Content Query Web Part is still one of the coolest things in SharePoint for site builders (IMHO). There’s a lot of literature about it and I’m not going to write about what CQWP is nor how to configure it.
So, what am I writing about? I just want to add my two cents about how to extend the Content Query Web Part with QueryOverride. (more…)
La scorsa settimana, durante l’ultima (meritata) birra che ha seguito la chiusura di SPOC2014 Francesco Sodano (@aresmarte1) mi ha accennato al fatto che era stato appena stato segnalato dalla community un possibile problema con un Security Update di sistema. A distanza di qualche giorno (scusate, cura disintossicante da informatica) ho approfondito un pò la questione. (more…)