by spjeff

List all ASPX pages in a Site Collection

September 10, 2014 by spjeff

SharePoint Explorer View can be used for great client side file management.  Recently someone asked me if it was possible to list all the ASPX pages in a given site collection.   Normally I’d run over to server side PowerShell for this.  However, we can use Explorer View to map a drive letter too.   Steps and screenshots below.   Enjoy!   shades_smile

 

Steps

  1. Navigate to site homepage
  2. Open Site Assets
  3. Open Explorer View
  4. Navigate “up” one level to site root folder
  5. Copy URL address
  6. Open CMD window
  7. NET USE * {{URL HERE}}
  8. Z:\
  9. DIR *.ASPX /S /A /B > FILES.CSV
  10. Open FILES.CSV with Excel

 

NOTE – Step #7 above can accept multiple URL formats like:

 

Screenshots

 

image

image

image

9-10-2014 2-22-47 PM

image

image

by spjeff

Estimated Arrival Time (ETA) for PowerShell

August 20, 2014 by spjeff

Ever had a script that takes a long time to run?    Would it be nice to see an estimated time for completion?   Well, the code below is for you.   shades_smile

 

Percentage complete is an easy calculation for any loop operation.  Deriving time from that requires us to hold ($start) with the time our loop began.  From there we can multiply out and calculate total seconds.   When total seconds remaining is added to the current time .. then … you have ETA.  Example below.

 

image

 

by spjeff

VSIX for SharePoint 2013

August 12, 2014 by spjeff

Recently while configuring a new developer lab VM I searched http://visualstudiogallery.msdn.microsoft.com/ for plug-ins to help speed up coding.   I found a few good ones and wanted to share links here in case you might find these helpful too.   Cheers!   shades_smile

 


 

  1. CKS – Dev for Visual Studio 2013  is a collection of Visual Studio templates, Server Explorer extensions and tools providing accelerated SharePoint 2010/2013 development based on Microsoft’s SharePoint 2010/2013 development tools.

    image

     

  2. SPCop CE (Community Edition) Essential tool to ensure SharePoint code quality. SPCop analyses SharePoint code from .wsp and .app files and checks all contained code incl. XML, ASPX, JS, CSS for correctness, best practices, memory disposal etc. SPCop is the free component of SPCAF.

    image

     

  3. SharePoint 2013 Ribbon API provides you to use Ribbon UI elements such as Button, DropDown, SplitButton, Gallery, Tab, Group and others for building your own Ribbon and/or modification standart one.

    Screenshot

  4. Mavention SharePoint Assets Minifier for Visual Studio 2013  automates the process of minifying CSS and JavaScript files. Upon installation it introduces three custom tools that you can use for minifying CSS and JavaScript files.

    Mavention

  5. Office 365 API Tools – Preview  your app can access email, calendar, contacts, files, and profile information on behalf of the user. This extension will help register your app to consume Office 365 APIs, and will add the necessary NuGet libraries and sample code to get you up and running.

    Screenshot

  6. SPRemoteAPIExplorer provides the ability to explore, discover and generate SharePoint 2013 remote API code in REST and CSOM(Javascript, .Net and Silverlight). Useful when developing SharePoint REST applications

      Screenshot

       

    1. Ribbon Designer for SharePoint and Office 365 – true RAD tool for customizing the Server Ribbon UI of your SharePoint and Office 365 solutions. Specialized components allow you to quickly build custom ribbons and add a new ribbon to your existing projects without learning the Ribbon XML schema.

        Use the in-place visual designer to customize your SharePoint Ribbon components

      Return to Top ▲Return to Top ▲