Creating an Image Map using SharePoint Designer
Creating an Image Map using SharePoint Designer
In this blog post, I will use an image provided by the graphics department as the navigation piece for my SharePoint Deployment. The nice thing about this approach is that the image is self explanatory about where the user should click and where it will take them.
I was provided an image by a student requesting this blog which saved me a lot of time.
I will create an image map using SharePoint Designer 2010.
I will start with an out-of-the-box Team Site and end up with a home page that looks like the screen shot above. If I click the PMO part of the image, I will be taken to one location and if I click on the Process part of the image I will be taken to another location. This is done using html’s image Map functionality.
First off, I want to get the home page ready. Since the top level site of this site collection is based on the team site template, the home page is a wiki page and thus I can simply click the edit page icon to put it quickly into edit mode.
With the page in Edit Mode I will go ahead and use the ribbon to change the layout of the page and get it ready for my image map.
Using the Text Layout Ribbon Icon I choose One Column.
With my cursor in the content area, I select all the content (CTRL + A) and then I delete it.
I click Save and Close in the Ribbon which takes the page out of edit mode.
I am at the top level site of a new Site Collection. The top level site template is a Team Site. To open SharePoint Designer 2010 connected to the correct site, I go: Site Actions > Edit in SharePoint Designer
In SharePoint Designer II click the link to Edit the Home Page.
When I did this, my cursor was placed into the PlaceHolderMain and it was set to custom mode. Just in case, I like to click the little glif symbol on the right and make sure it says Default to Masters Content which indicates to me that the PlaceHolderMain is ready for custom content. If this was not the case, I would see ‘Create Custom Content’ and I would click that.
I click inside the PlaceHolderMain and I will insert my image here.
I select the Insert Tab and then in the Ribbon I click on the Picture Icon.
I browse to my image (in this case it’s named image001.png and is located on my desktop) and then I select the file and click Insert.
SharePoint Designer 2010 makes sure to remind me to insert Alternate Text. I put in Home Page Navigation Image since that’s what I’m adding. I leave out the Long Description and click OK.
I verify that my image was inserted where I wanted and that I inserted the correct image and then I click the HotSpot icon in the Ribbon (it’s in the Picture Tools > Format Tab). Because the shape of the section of the image is not a square or rectangle, I choose Polygon which in essence allows me to outline about any shape I want. I am creating an image map here. I have done this before in raw HTML and I must say that using this tool is about a billion times easier!.
I outline a section of the image by clicking the cursor at different points on the image. It will connect each section with a line and create an outline.
Once I come to a point in my shape where two points meet, I have completed a shape and SharePoint Designer gives me a pop up box where I can set the link’s href value. In other words I’m telling SharePoint where to send a user when they click that part of the image. In this case, I’ll link the shape that includes PMO to http://www.interfacett.com but if this was production I would put in the URL to the PMO Site.
When I’m done I click OK.
If you click the Advanced button you can set the target. In many cases people will set Target = _blank causing the link to open in an new browser instance or tab (depending on the browser). I’ll just hit cancel because if I was setting this up to be my ‘SharePoint Custom Navigation’ I would want it to stay in the same window.
I click OK.
I click OK and accept the default settings in the Save Embedded Files Dialog. This is where SharePoint adds a copy of the image to the SiteAssets library and then updates the HTMLt img tag to point to the SiteAssets Library as opposed to my desktop.
SharePoint Designer will do it’s best to protect me from unsafe content and strip anything crazy I added to the page as it saves the changes I made. This dialog simply asks if I’d like to see the page with those changes. I click Yes.
I set up another link around the section that contains Process and set the target url on that to go to http://www.transmissionit.com. To test all this I go back to the browser and hit refresh and see that it took my changes and then I click on the PMO section of the image.
Awesome! I’m taken to Interface Technical Training’s Web Site.
As I said earlier, I set up a link to http://www.transmissionit.com in the Process section of the image so I’ll test that as well by clicking it in the browser.
Yep, it worked, I’m taken to http://www.transmissionit.com. Awesome!
The reason I check two different locations is to verify that the image wasn’t just becoming one big link.
Image maps are very powerful and the tool-set that ships with SharePoint Designer out of the box is incredible.
You May Also Like
Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2
This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader demonstrates how to use cable testers in network environments. Let’s look at some tools that we can use to test our different cables in our environment. Cable Testers Properly Wired Connectivity … Continue reading Cable Testers and How to Use them in Network Environments
Video transcription Steve Fullmer: In our Windows training courses, we often share information about the Windows 8.1 Mobility Center. Mobility Center was introduced for mobile and laptop devices in Windows 7. It’s present and somewhat enhanced in Windows 8. Since we don’t have mobile devices in our classrooms, I decided to take a little bit … Continue reading Configuring Windows Mobility Center and How to Turn it On and Off