Summary Link Web Part: Is it worth the code bloat?

Sometimes as a SharePoint front-end developer you have to sacrifice the desire for the leanest code possible in order to create a better authoring experience. Take for example the common requirement for authors to add Quick Links to a page. The Summary Link Web Part is perfect for this task but I would often overlook it because it generates unnecessary HTML. Instead, if a stylized list was required, I would create a Reusable Content snippet or a custom style that would appear in the Styles drop down. It kept my code nice and clean and I thought both options were relatively easy to use.

Well, I was not entirely correct on that last assumption. Sure they might be easy if the author has a basic understanding of HTML, but without that knowledge these methods can become frustrating. At some point the author will perform an unexpected keystroke in the rich text editor, causing something to go awry. Maybe it’s an odd line break or a tag that will not seem to close. At that point they can delete what they have done and start again, or look at the HTML and see if they can track down the issue. For an author that only wants to have the page published as soon as possible, both options could be time consuming and less than desirable.

This is where the Summary Link Web Part comes into play. I find myself leveraging this particular web part much more often, spending the time to ensure that all the built in styles work with the overall design of the site.  This gives the author many more options to add stylized links to the page without having to fiddle with any code. They simply fill out the fields in the add new link dialog and click OK. They can also easily group and reorder links without having to deal with the mess that can happen when you copy and paste in a rich text editor.

Does the bloated mark-up still bother me? Sure it does, but when I train authors and see how much easier it is for them to use this web part compared to watching them struggle with code snippets, I feel the trade off is acceptable.

Interested in seeing what the Summary Link Web Part can do? Check out Microsoft’s “Use and configure a Summary Link Web Part or a Summary Link field control” article for a step by step explanation on how to use its functions.

Google Analytics: Mobile Screen Resolutions

I mentioned in my previous post that I had a plan to work on a mobile site for Brain Lava. Well, the next day I created some alternate CSS using the CSS3 media queries. It was working fine both in portrait and landscape mode for my iPhone but when I tested it against a friend’s Android I was surprised that it was not picking up the mobile view of the site when in landscape mode. To troubleshoot the issue, and potentially avoid the same issue with other devices, I wanted to know the screen resolutions for the mobile devices that were visiting my site so I headed over to Google Analytics.

After a bit of time wading through the Google Analytics interface, I was abashed to admit that I could not find the stats for screen resolutions anywhere. So, the next day I asked my workmates for some help and after a bit of time clicking around Pete was able to help me track down how to display the screen resolutions for mobile. I thought I would share it in case someone else found locating this information a bit frustrating.

Step 1

In the left hand panel of the Google Analytics Dashboard select the “Devices” section located under “AUDIENCE > Mobile

 

Step 2

Click on the “Select” drop down beside the Secondary dimension label. Expand the “Technology” heading and select “Screen Resolution”


Step 3

Well there is no Step 3 to be honest except to maybe go and treat yourself to something nice for working so hard.

Welcome to Brain Lava!

I will admit it, this site has been a very long time coming. Brain Lava is a domain that I registered many moons ago with the idea that I wanted it to be a place where I could share my technical thoughts. Over the years, however, I never seemed to find the time to create a design for the site and, so it sat, collecting virtual dust with an incredibly lame “Coming Soon” page. I did have a great logo though, created by my talented husband, and artist, Gary Pullin.

Well last weekend I decided to do something about it. I gave myself a deadline last Saturday to design and implement a site by this Sunday. Well it’s Sunday night and I am pretty excited to say that I met my goal! Despite the holiday parties, decorating the apartment, christmas shopping and several get together’s with friends, I was able to carve out enough time to complete the mini project.

I have a few things that I am still hoping to iron out, images I want to combine, and a mobile site to create. Overall though I am happy to finally have Brain Lava up and running. A friend once said it’s OK if the beginning is not perfect…at least it is a beginning.