Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

Blog

Favicon Generator

While not directly related to SharePoint I think “favicon.ico” is a nice tool for giving any website a stronger brand.   All modern browsers support this feature and keep the icon in your bookmarks to make the site easy to identify.   I’ve tried creating these several ways so I’ll save you the trouble and say that Dynamic Drive has the best.    http://tools.dynamicdrive.com/favicon/     Upload any common image file and it resizes, handles color palette , give you an instant download, and even a nice URL bar preview too.

How do I add this to my site?   I want my bookmark icon to be cool!

  • Add the “favicion.ico” to the root  (i.e.   http://www.spjeff.com/favicon.ico)
  • Add HTML in the page <head> that says  …  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  • Bookmark to your heart’s content

Making of the Blog – Behind the scenes

I’ve been mulling over the idea of a fresh coat of paint for this website for a while now.   I finally took a quiet Sunday to focus and get it done.     I learned a few things in the process.   So in the spirit of collaboration I’d like to share those ideas:

  • Backup everything!   Think you’re an expert?   Think you’re good at computers?   Yeah, I did too until I accidentally deleted the root folder.  Yikes.  
    Confused
  • WordPress continues to amaze me.  The import/export to XML feature is fantastic.   I simply opened the XML in Notepad2 for a search/replace on the domain name URL and then loaded up without any hiccups.   All blog URLs now point to www.spjeff.com
  • Feedburner.    Enough said, I did a poor job before not using this and regret the lack of statistics.    Thankfull my new Green Park 2 theme comes with support for Feedburner and Google Analytics for all the numbers I could want.
  • Find other good blogs.   Imitation is the sincerest form of flattery, right?   To be successful find good role models first.    Borrow ideas, build upon them, try new things, and make them yours too.
  • More picture, less words.    Information overload is the order of the day.    Be kind to visitors and keep the interface light weight.
  • Permalinks. (ex:  /?p=192)  If you switch DNS domains but stay with hosting companies point the old DNS to the new home folder.   It prevents 404 errors for prior readers.
http://www.microsoft.com/web/media/gallery/apps-screenshots/wordpress-250x250.png

SPD Best Practice: Ctrl C+V Quick Backups

To quote Asif Rehmani (@asifrehmani) from www.sharepoint-elearning.com … “SharePoint Designer is like a really sharp knife.   It’s very good at what it does.   You might cut yourself.   But you don’t stop, just act more carefully.”

 

With that lesson well learned over my years with SharePoint customization I must say my favorite trick of all is the simple quick copy/paste backup.   Any time and every time I’m about to jump off a cliff to dive into SPD coding I perform a Quick Backup:

  • Highlight the file
  • Ctrl+C    (copy)
  • Ctrl+V    (paste)
  • Breathe a sigh of relief

Storage is cheap.   Mistakes are not.   Time is one of our most scarce resources.   Buy some insurance with a Quick Backup!  

Hot

 

image
image

Why the /Forms/ folder is your friend

I’ve been working with custom views for a few years now and one thing seems to always come up … Where to put those pesky resource files?    Images, JavaScript, User Guide PDF, all of these I’ve used in one way or another.    Tweaking DispForm.aspx is a past time of many SharePoint developers but how many know of a proper place to drop their resource files?     The /images/ folder of the web is intriguing but leads to a disconnected management experience.   What if this list is deployed to another site with a duplicate file of the same name?  (naming conflicts)

 

I will submit the idea that the hidden system folder /Forms/ is a great place for these for four simple reasons:

  1. Easy to find – Yes, I get lost on my own sites.   Don’t you?   Having the resources nearby makes management a breeze.
  2. Relative URL hyperlinks – No need for server relative or hardcoded URL reference.    From DispForm.aspx (for example) just call “resource_file.ext”
  3. Protected from end users – They can’t delete what they can’t see.   Enough said.
  4. Bundled as .STP for list templates – When you save any SPList as STP it will automatically package up the entire contents of the /Forms/ folder.   How cool is that!?!    So easy to migrate, duplicate, and even control source version history by saving often.    This alone is reason to use this technique.

 

So the next time you’re adding custom files to a particular list please give the /Forms/ folder a second look. 

Hot

 

image

 

image

 

image

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲