navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

SharePoint Designer 2007: Branding SharePoint Sites
Richard Downs

SharePoint Designer 2007: Branding SharePoint Sites

with Simon Allardice

 


In SharePoint Designer 2007: Branding SharePoint Sites, Simon Allardice explores using SharePoint Designer 2007 to alter the default appearance of SharePoint web sites. This course covers topics from creating themes and making simple CSS changes to fully re-styling a site with master pages and Page Layout templates. Learn how a custom design aids usability and adoption by providing improved navigation, better visual cues in complex site hierarchies, and individual page layouts for site-specific content.
Topics include:
  • Setting site permissions
  • Customizing existing CSS files
  • Implementing the WCM (Web Content Management) features in SharePoint
  • Using master pages
  • Designing accessible pages
  • Creating a Page Layout template
  • Editing and copying themes
  • Building out the Publishing Portal
  • Customizing navigation

show more

author
Simon Allardice
subject
Business, Collaboration, Web, CMS
software
SharePoint 2007
level
Intermediate
duration
5h 43m
released
May 06, 2010

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:04Hi! I'm Simon Allardice, and welcome to SharePoint Designer 2007:
00:08Branding SharePoint Sites.
00:10If you've used SharePoint, you probably have the same thought many of us have
00:13had: that a SharePoint Web site default layout can look dull and standardized.
00:18In this course, we'll explore using SharePoint Designer 2007 to alter the
00:22appearance of these Web sites, but here is the issue:
00:25Customizing SharePoint is not conventional Web design, and to do it
00:29successfully, you must know how SharePoint works.
00:32So in this course, we'll explore the architecture of SharePoint from a
00:34designer's perspective, and see different options for styling Intranet and
00:38Internet sites, from creating themes and simple CSS changes to a full
00:43replacement with master pages and page layouts.
00:46SharePoint is one of the fastest growing products in Microsoft's history, and
00:49it's just getting bigger.
00:51But very few people know how to change the way it looks.
00:53You're going to be one of those people.
00:55So let's get started with SharePoint Designer 2007:
00:58Branding SharePoint Sites.
Collapse this transcript
Prerequisites
00:00This course is all about Web design in SharePoint, but it's not an
00:04introduction to Web design.
00:06I expect you're already creating Web sites, that you know HTML and CSS very well,
00:11and that you're familiar with all the core skills of modern Web design, like
00:15working with image editors and working with databases.
00:19This course is designed to let you take those existing Web skills and
00:23successfully apply them to SharePoint.
00:25In one sense, this course isn't about design, at least not from the sense of
00:29what's right and wrong.
00:30It's just about the application of the design.
00:33Sure, we're going to talk about things like layout, fonts, and colors.
00:36How do you take whatever it is you want to do, and bring it into SharePoint?
00:40Now to do this, we're going to work with core SharePoint concepts and core
00:44SharePoint knowledge.
00:45Terms like site collections, master pages, page layouts, features, Web parts,
00:51these all need to become very familiar and they will.
00:54So the more time you've already spent using SharePoint the better.
00:58If you are brand-new to SharePoint, you might think you don't need to know it,
01:01that you can just develop your great design, drop it into SharePoint and walk
01:05away, but as you might guess from my tone, that that's not going to work.
01:09You need to know SharePoint to customize it successfully.
01:12You won't need to become an expert in every area of SharePoint, but you
01:15will need to know it.
01:17So in the first section of this course, I'll go through some core
01:20SharePoint concepts.
01:21If you've already spent a lot of time in SharePoint, you might be tempted
01:24to skip that section.
01:25I understand that temptation, but let me suggest you complete it anyway.
01:29I'll be going through SharePoint from a different perspective than you may be used to.
01:33I can pretty much guarantee you'll see something new, or something will have
01:36new meaning for you.
Collapse this transcript
Using a SharePoint virtual image
00:00One of your first questions should be this:
00:03What are you going to use when learning how to do this?
00:06What I'm fully expecting is that you already have an existing SharePoint Server
00:10installation to work with, someone else has already installed.
00:13You're just going to need perhaps a test site or two that you can play around with.
00:18But I'm expecting that right now, you can open a browser and go to an
00:22existing SharePoint site.
00:23It might look like this, which would be a Collaboration Portal.
00:27It might look like this, which is a Team Site.
00:30But you can open a browser, type in the address of a SharePoint site you have
00:35access to, and go there.
00:36If you have that, great! But what if you don't? Well, you need a SharePoint Server.
00:43This is going to be a pretty pointless course if you don't have one, because you
00:46won't be able to create or customize a SharePoint site.
00:50Now, if you think you can just quickly install SharePoint, you're
00:53unfortunately mistaken.
00:54This is a very complex product you could ever dream of installing.
00:58It requires a database.
00:59It's usually integrated with IIS, with DNS, with Active Directory.
01:04It can't even be installed on a typical client operating system like Windows XP
01:09or Windows 7, which is what I'm using here.
01:11It requires a Server Operating System, Windows Server 2003 or Windows Server 2008.
01:18I'm not going to go into SharePoint installation at all in this course.
01:22Installing SharePoint is a completely separate thing all in itself.
01:25Now what I'm often asked by designers is if they can just get a quick offline
01:30copy of the SharePoint site.
01:32Unfortunately, there is no such thing as having an offline copy of
01:35the SharePoint site.
01:36SharePoint doesn't work that way, as we'll shortly explore.
01:39Now, if you do need your own SharePoint Server, a common method to do it is to
01:44have a Virtual Server, a virtualized machine.
01:46You can create one yourself or you can use someone else's.
01:50If I go out and search the Web for the phrase 'SharePoint virtual image,' what
01:56I'm going to find is this first link here, which is actually a link on the
02:00Microsoft site for a preconfigured virtual hard drive.
02:04This is actually a free download.
02:06It's time bombed, so it'll run out, I believe, it's 2011.
02:10Now if I actually come down a little bit on here, we see that this is a huge download.
02:15It's multiple gigabytes that you can do.
02:17But if you do need to have your own copy of a SharePoint Server, you can
02:21actually download this one, which is preconfigured from Microsoft.
02:25If you've never worked with virtual server images, do be prepared to take some
02:29time getting to grips with this.
02:31But happy to see you back here, once you've gotten a SharePoint site that you
02:34can actually navigate to.
Collapse this transcript
1. Getting to Know SharePoint
Using SharePoint core components
00:00A lot of people find it hard to wrap their head around SharePoint, and you might
00:04be one of those people.
00:05Perhaps you've been playing with this thing called SharePoint for a while, and
00:08you don't really get it yet.
00:10You're waiting for that one simple description, that one simple sentence that
00:14will suddenly make it all make sense.
00:17Well, unfortunately, you won't get that one sentence from me.
00:21The reason that it's hard to have a simple description is that SharePoint is not
00:25a simple thing to explain.
00:27The main reason for that is that SharePoint isn't one thing.
00:31SharePoint isn't a program. It's a platform.
00:34It's 100 different products and technologies, all wrapped up and given a name.
00:39From one perspective, working with it is a bit like learning the Microsoft
00:42Office or Adobe Suites.
00:45You can't really learn Office.
00:47You can learn Word, and Excel, and OneNote and so on, or with the Adobe Suites,
00:52you don't really learn the Master Collection.
00:55You'll learn Photoshop, then After Effects and then Premiere.
00:59You might buy Master Collection and never use InDesign.
01:03You might buy Office and never use Excel.
01:05You're interested in your own combination of solutions.
01:09In the same way, you can't really learn SharePoint, because SharePoint is a
01:14massive, massive set of features and technologies.
01:19It's really grouped into six main areas.
01:21You have a whole entry here about collaboration.
01:24It's got office integration.
01:26There is a way of creating Web sites that allow people to work together.
01:29You have business intelligence, being able to analyze the numbers that you have
01:33in your organization to really understand your business.
01:36You have business forms, integrating the kind of things that you do every day:
01:40expense forms, requisitions, and making electronic versions of those.
01:44You have a full enterprise search engine inside SharePoint.
01:48You have content management, not just for Web sites, but for your own documents.
01:52You have a portal idea, creating one place where everyone can go for all their
01:57company information.
01:58This is what SharePoint is really made of.
02:01You could spend years working on just one little part of this part of SharePoint.
02:07Now for us, we're in the enviable position where that's kind of okay.
02:11We really are interested in one part of SharePoint, primarily the part
02:15that makes Web sites.
02:16We're also interested, in this course, in the part that allows us to manage that
02:21content, and work with navigation and audiences.
02:25But it's worth always keeping in mind that the sites we're going to develop are
02:28just the tip of the SharePoint iceberg, and that at some point, they may need to
02:33integrate with the rest of SharePoint.
Collapse this transcript
Exploring the SharePoint product line
00:01Before we talk about SharePoint Designer, we have to talk about SharePoint.
00:06That's a problem, because there is no such thing as SharePoint.
00:10You'll actually can't go and buy SharePoint.
00:12It's just a useful phrase that describes several different products and technologies.
00:17So, what do you actually install when you install SharePoint?
00:20Well, there is a product called WSS or Windows SharePoint Services 3.0.
00:27This is actually free.
00:29You can just download it from Microsoft if you own a copy of Windows Server 2003
00:33or Windows Server 2008.
00:34You can think of WSS as being the engine of SharePoint.
00:40It's the foundation of SharePoint, and what SharePoint provides.
00:44It's really the core of the platform.
00:46Now one of the things WSS does is make Web sites.
00:49It makes a special kind of Web site called a collaboration Web site, and we're
00:53going to be exploring that a little later.
00:56But on top of WSS, you can get a product called MOSS or Microsoft Office
01:01SharePoint Server, MOSS 2007. This is not free.
01:05It can range from expensive to very expensive, indeed.
01:09It gives you a whole great deal of functionality on top of WSS, but what we're
01:14looking at here is the idea that MOSS includes WSS.
01:17Everything you get in WSS is also in MOSS.
01:22Now there is one more version of MOSS called MOSS Enterprise Edition, which
01:27actually adds more functionality on top of the MOSS Standard Edition.
01:31In this particular course, we don't really care about any of that extra stuff.
01:35So it's not too relevant.
01:37One thing to understand, however, about all of these products, is they are
01:41installed on a server.
01:42They're not installed on your Desktop.
01:44They're installed on a server, or a series of servers, and shared across hundreds,
01:48or thousands, of people.
01:50One of the questions you might have if you're new to SharePoint is well, how do
01:53you know which one you have? Do I have WSS?
01:56Do I have MOSS?
01:57Well, the easiest way is to ask the people who installed it.
02:00However, in this course, you'll soon be able to recognize the difference,
02:04because we're going to cover customization of both WSS and MOSS sites.
Collapse this transcript
Understanding SharePoint and SharePoint Designer
00:00So you have SharePoint, the server product, and then you have
00:04SharePoint Designer.
00:06Now, SharePoint Designer is installed on your desktop or your laptop.
00:10It's like having a copy of Word or Photoshop installed.
00:12You're going to open SharePoint Designer and use it to connect to a SharePoint
00:17Server to do customization of a SharePoint site.
00:19So, if you don't have it installed already, here is the way to find it.
00:23I'm just going to search for SharePoint Designer 2007, and I want to be
00:31very specific here.
00:32I am using the 2007 version of the product.
00:37When you search for this, you are likely to find a link for SharePoint
00:39Designer 2010 as well.
00:42Now, unfortunately, you can't use SharePoint Designer 2010 to customize
00:46SharePoint Server 2007 Web sites.
00:49The version numbers go along with each other, so SharePoint Server 2007,
00:53SharePoint Designer 2007.
00:55Now, you can download this product for free, as you'll see on the
00:59Microsoft Office site.
01:01It was made free in mid-2009 and Microsoft has said that every subsequent
01:06version will be free as well.
01:08If you take a little look around the Microsoft Office SharePoint Designer page,
01:12you can find a lot of information about this.
01:14And you'll find that SharePoint Designer actually has come from the FrontPage
01:18product, but don't let that put you off.
01:19It's a pretty good tool.
01:21It is very closely related to Expression Web, Microsoft's Web design tool.
01:25Now, one of the things I am often asked is can I use another Web design tool
01:30to affect SharePoint?
01:31Can I use something like Dreamweaver, for example?
01:33Well, if you want to use those programs, there are things you can do, but you'll
01:37be making life hard for yourself.
01:39SharePoint Designer is built to understand SharePoint, and it is the simplest
01:43way to do customization of SharePoint sites.
01:46And certainly, the couple of hours you'll spend learning it will be more than
01:49safe than even a very simple customization.
01:52And on the flip side of that, SharePoint Designer itself is not really all that
01:56useful without SharePoint.
01:58Sure, there are a couple of things that you can do, but there is no reason to
02:01have SharePoint Designer if you don't have a SharePoint Server you can connect to.
02:04So, if you haven't already installed it, now is the time to download and install
02:09it from the Microsoft Office site.
02:11It will then appear under your Microsoft Office part of your programs.
Collapse this transcript
Understanding collaboration sites and portal sites
00:00So you already know that SharePoint generates Web sites, and you know you want
00:04to change the way they look, but you might not know is that SharePoint can make
00:08very, very different kinds of Web sites, and that you really need to know what
00:12kind of SharePoint Web site it is you need to change.
00:15Not surprisingly, the primary question here is whether you only have WSS, in
00:21which you have one kind of site, or if you have MOSS, which adds another kind.
00:25Now, if you have just WSS, the Web sites you can create can be categorized
00:30as collaboration sites, like a team site that I'm looking at here, or a
00:34document workspace.
00:36These sites are always about a few people working together on something.
00:40Most people who use these sites are collaborators.
00:43They get to change these sites as well as use them.
00:45They get to edit items and upload documents.
00:48They are simple and quick to create, and they're very simple to customize.
00:52Now, you probably don't want to go crazy customizing the visual appearance of
00:56these collaboration sites.
00:58The idea here is that people get very used to working with them, and it might
01:01be considered counterproductive to have them substantially different from the base model.
01:05Now, if you have MOSS, however, you of course have those collaboration sites,
01:09but you also have portal sites targeted at a much wider audience, perhaps the
01:15entire company, or even out on the public Internet.
01:18These sites tend to be bigger and need much tighter control over the content.
01:23Now, the idea with most of these sites is that most people who use them don't
01:28get to collaborate on them.
01:29They are designed for publishing information to a wide audience, and that's why
01:34the main split between the kind of sites you'll customize are between sites
01:38targeted at collaboration and sites targeted at publishing.
01:43Publishing sites allow much more control over navigation and allow different
01:47kinds of pages to be created based on your content.
01:48Now just as I'm making the assumption that you're probably going to be
01:53working with MOSS, I'm making the assumption that you'll need to do both
01:56basic customization of WSS collaboration sites and complex customization of
02:03MOSS publishing sites.
Collapse this transcript
Introducing site collections
00:00Here's another piece of SharePoint jargon: Site Collections.
00:04Site Collections can make your life easier.
00:07They can let you work on your designs without affecting others.
00:10They can stop your life becoming a constant stream of requests.
00:13They can allow your designs to be reused, and many people don't even really
00:17know what they are.
00:19The concept is actually not all that complex.
00:21It simply means a collection of SharePoint Web sites, because regardless of
00:26whether you have WSS or MOSS, you're using SharePoint as a Web site creation engine.
00:32When SharePoint is used to make a Web site, that site is always contained in a Site Collection.
00:38Now, in a typical SharePoint installation in a large organization, you can have,
00:43and should have, multiple site collections.
00:46Each Site Collection can contain one site, or five site, or 1,000 sites. In fact,
00:51the official limit is 250,000 sites in one Site Collection.
00:55These are created for a variety of reasons,
00:58many technical, things like security, scalability, administration, but in
01:02essence they are created when a group of SharePoint sites belong together,
01:07because they all belong to the same department or location or they're being
01:10used for similar tasks.
01:11I'm a fan of kind of liberal use of Site Collections, but at this point, you
01:16might be thinking: what's in it for you?
01:18Well, when doing visual customization, you need to know that assets in one Site
01:23Collection aren't available in another Site Collection unless you copy them.
01:28So, things like images, resources, stylesheets actually belong inside each Site
01:34Collection, and if you need them to cross Site Collections, you'll have to take
01:37care of copying them yourself.
01:39Now, one thing you may be wondering is, okay, how do I make one?
01:43How do I get one of these Site Collections?
01:45Well, they are actually created in a special Web site called SharePoint
01:49Central Administration.
01:51This is a site that you can use to manage SharePoint.
01:54And Site Collection isn't abstract hand-wavy term.
01:57You can actually create a Site Collection. There's options in SharePoint Central Admin to do this.
02:03We're not getting into this site in this particular course, but if you are
02:07wondering how you make one, you do typically need access to this site, and that's usually
02:11limited, but you do need to know what it is because you may need to ask for a
02:16Site Collection, because one thing they are very good for, you can create a
02:20sandbox for you to do your experimentation in, because it is detached from every
02:26other SharePoint Site Collection.
02:27And if you want to go crazy experimental on your own site design, having your
02:31own Site Collection can be very useful, because you can wreck it without
02:35affecting anybody else's.
02:37Now, at the very least, you need to understand the idea of SharePoint Site
02:41Collections, as they're going to impact how you'll deploy your customizations.
Collapse this transcript
Introducing WCM and the Publishing feature
00:01If you have MOSS, one of the pieces of functionality you have that's not in WSS
00:06is something called the Publishing feature, and this is also referred to as Web
00:10Content Management, or WCM.
00:13But what does this all mean?
00:15Content Management is rather vague as a phrase, and Publishing is a word used all
00:20over the place in SharePoint.
00:22There is something called the Publishing feature.
00:24There is something called the Publishing portal.
00:26There is something called the Publishing site.
00:29Let's face it. That doesn't really tell you what Publishing actually means in SharePoint.
00:34To understand it, let's step back a bit - super-quick history lesson.
00:38Go back a few years
00:40and there is a product called Microsoft Content Management Server.
00:44This was the Microsoft technology people used to manage large-scale, complex Web sites.
00:49If you wanted to have a bunch of content creators and moderators, templates and
00:54workflow, this was the product that you chose.
00:57Now, what happened was when MOSS 2007 came along, Microsoft Content Management
01:02Server was rolled into it as the Publishing feature.
01:07Now, when we talk about features of a product, we usually just mean something
01:11the product does, but in SharePoint, features mean something special.
01:16There is something called a SharePoint Feature, and it's a chunk of
01:19functionality that can be turned on or off at the flick of a switch.
01:23There are several places in SharePoint where you may have a series of buttons to
01:27activate or deactivate features.
01:29Now, what happens is Publishing is one of those features that can be turned on or off.
01:35If you turn it on, the first, most obvious visual difference is the dropdown menu
01:40has many new options.
01:41If Publishing is off, you typically only have two or three options here.
01:46But behind the scenes, there is a lot more going on.
01:49The Publishing feature adds workflow and versioning, and the idea of having
01:54multiple layout templates for your site, and it adds multiple libraries to the
01:58Site Collection and for a designer, that's great, because it gives you places to
02:03put your stylesheets and your images and resources to share across multiple
02:08sites in a Site Collection.
02:10Now, in SharePoint, some sites have this feature enabled by default, and if you
02:15see the big menu, you know it's one of those.
02:17Again, you'll often hear a site with the Publishing feature turned on as using
02:21WCM, or Web content management.
02:24It's the same thing.
02:26And essentially, the main difference you're likely to be concerned about when
02:30customizing SharePoint sites is not whether you're customizing a WSS site or a MOSS site;
02:36it's whether you're customizing a site with the Publishing feature or a site
02:40without the Publishing feature.
Collapse this transcript
2. Working with SharePoint
Exploring a basic SharePoint site
00:01So I expect that you've already made your way around a few SharePoint sites, but
00:04in this lesson, I'm going to show you how to look at one from a designer's
00:07perspective - what are the things you should be paying attention to? Because
00:11there are some parts that will be easy for you to change and some that
00:14won't. Now, as a designer, you're probably a little annoyed that most of the
00:17SharePoint sites that you see kind of look the same, but really that's a blessing.
00:22Once should know how to work with one,
00:23you know how to work with the others.
00:25So I'm going to show you two very typical SharePoint sites.
00:28Neither have been customized, and they are as they'd appeared immediately after creation.
00:32What I'm looking at right now is a Team Site, available in WSS and by definition
00:39also available in MOSS, one of the classic built-in collaboration sites.
00:44This is a Web site that gives you this homepage that we're looking at.
00:48It gives you a place to put Documents, called Shared Documents.
00:52It gives you a Calendar.
00:54It gives you a List of Tasks.
00:56There's also a Discussion Board.
00:58Now, if you're clicking around a Team Site and you don't see this menu over
01:05here on the top right, the Site Actions menu, the Power menu here, you're going
01:09to be unable to do anything significant with customization, because that's
01:13where we get to create new parts of the site and change the Settings of the
01:16site. But although we're looking here at a Team Site, this site really could be
01:22a Document Workspace.
01:24It could be a Blog Site.
01:25It could be a Blank Site.
01:27It could be any Classic WSS Collaboration Site.
01:31They all share a lot of the same features.
01:33For example, they have got a section down the left-hand side, which is often
01:38referred to as the Quick Launch bar, and there's no particular magic about
01:43that name. In older versions of SharePoint, there used to be a graphic along
01:47the side of it that said Quick Launch, and that's why it's still called the Quick Launch bar.
01:52We also have the Top Link bar, which not surprisingly, is across the top of the page.
01:58Now right now, there isn't a lot on my Top Link bar.
02:00You would normally see several tabs here representing links to different sites.
02:06So the Top Link bar on the top, the Quick Launch bar on the left.
02:09They're both navigation.
02:11And navigation in SharePoint is flexible, just like being on a regular
02:15Website out there on the Web, the Navigation doesn't have to tell you
02:19everything that exists.
02:21As a general rule, what you'll find is the top-level navigation takes you
02:25between different SharePoint sites, and the Navigation on the left, in the Quick
02:29Launch bar, shows you what's in this particular site that you're looking at.
02:33But there's one key link here, if you really want to know what exists in a
02:38particular site, you're going to click the link that says View All Site
02:42Content, at the top of the navigation bar.
02:45This will actually tell you, better than anything, what exists in
02:48this particular site.
02:51You'll find this link, this View all Site Content Page, on every single
02:57SharePoint site that exists.
02:58Sometimes you may have to click around to find it. Sometimes it won't be
03:02there on the left, but it will exist, for every SharePoint site in your
03:06SharePoint Installation.
03:07Now I'm going to come down a little bit in this All Site Content and actually
03:12see that there's a section down here that says Sites and Workspaces, and what
03:16this really means is are there any other SharePoint sites underneath this one?
03:20Now sometimes, if there was, you'd actually see a Link to it on the Top Link bar.
03:25We didn't have one, but I'm actually saying that there is one called Annual
03:29Report and if I click on that, I'm being taken to another SharePoint site.
03:33This is actually called a Document Workspace, and you might say well, is it a
03:37workspace, or is it a site?
03:38Well, a workspace is a site.
03:41Microsoft decided to call some of their SharePoint Site Templates Workspaces,
03:46if the idea was that they wouldn't necessarily live for all that long.
03:51So if you are creating a site to work on a Document or site to work on a
03:54meeting, those are called Document Workspaces and Meeting Workspaces.
03:59But there's really no difference between them and other SharePoint sites.
04:04Well, also notice here is that we have got a bit of a breadcrumb going on.
04:09Now these breadcrumbs are basically telling us what exists in this Site Collection.
04:13In fact, as we get more into navigation, and you'll see that the breadcrumbs
04:17can look very different, but this is trying to tell me where am I and what's above me?
04:22In this case, that Team Site is above me. I'm currently in the Annual Report.
04:26Breadcrumbs, very much like anything else out there on the Web, can be very
04:30useful, but you have to know how they work in SharePoint.
04:33Now what I'm going to jump into now is a slightly more complex SharePoint Web site.
04:38This one is a Collaboration Portal.
04:40This is only available in MOSS and has the Publishing Feature activated, which I
04:45can tell just by coming over here to the menu and seeing that I've got multiple
04:50Options and not just two or three.
04:53But even though there are a whole bunch of options over here, if I come over to
04:57the Quick Launch bar on the left, I see that I've still got a View All Site
05:02Content link, that if I click that, it can actually tell me all the lists and
05:06libraries that exist inside this site, so we can see the regardless of if we
05:11have WSS or MOSS, we're still having the same kind of structure, the same
05:16building blocks of SharePoint that exist.
05:18Now I am not trying to make you an expert on using these sites. What I'm trying
05:23to show you is that regardless of whether it's a classic WSS Collaboration Web
05:27site or a MOSS Publishing Website, their internal structure is similar.
05:32All SharePoint Web sites are made of a collection of lists and libraries, and
05:37what you see in the View All Site Content page is really telling what the Site is made of.
05:42And that's the key thought when customizing SharePoint sites,
05:45to be able to change how they look, you need to understand what they are and
05:49in the next module, we're actually going to talk about the Building Blocks of
05:52all SharePoint Sites.
Collapse this transcript
Understanding lists and libraries in SharePoint
00:00When you've seen a few of the most common SharePoint sites, you've probably
00:04realized that many of them seem to reuse the same components:
00:08things like Calendars, Document Libraries and the Task List.
00:12And that's because SharePoint sites are really created almost like a bunch of
00:16interchangeable wooden blocks.
00:17If the Red ones are Document Libraries and the Green ones are Calendars, and if
00:22the Yellow ones are Task Lists, then if I decide to try and arrange these blocks
00:27in one way, I will end up with the Team Site.
00:31If I decide to arrange these blocks in a different way, I'm going to end up with
00:36a Document Workspace, or a Meeting Workspace, or a Training Portal.
00:43Once you learn the available List and Libraries, you can make some very powerful
00:47sites, as easy as putting a few blocks together.
00:49In a basic SharePoint site, you select the building blocks, the List and
00:52Libraries, and the Website, and it's Pages are generated around these
00:57building blocks, but what this means, as a designer, is that you don't have
01:00as much control over individual pages as you might first think, because many are generated.
01:06Now adding List and Libraries is all done through the browser.
01:09I add a Task List to a site and SharePoint will generate the page to actually
01:14add a new entry to that list.
01:16It'll generate the page to view that list.
01:18It will generate the page to edit settings of that list, all done automatically.
01:23If I, instead, add a Document Library, SharePoint will generate the page to view
01:27that library, to upload a new Font to the library, to edit the library
01:31settings and so on.
01:33Now if you're new to SharePoint, and you're wondering, I hear about Lists and Libraries.
01:37Is there a big difference between a List and a Library? The answer is no.
01:41There isn't.
01:41Everything in SharePoint is a List.
01:44Everything in SharePoint is a List.
01:46A Library is just a List of Documents, or a List of Images, or List of Web pages.
01:52Now, if you're wondering, can I just ignore this, can I just ignore all this
01:56stuff and just create a Web page using SharePoint?
01:59Well yes, but even then, you're still using Lists and Libraries.
02:03If you use the screen to add a page to a basic SharePoint site, the first thing
02:08SharePoint will ask is what Library does this go in. Now the built-in Site
02:13Templates are really nothing more than a pre-written arrangement of Lists and
02:17Libraries, and there is a real great benefit from this.
02:20You don't have to worry about how to work with all the different SharePoint sites.
02:24You just have to know how to work with SharePoint.
Collapse this transcript
Exploring automatic navigation
00:01Every site created by SharePoint has Navigation, whether it's a Collaboration
00:05Site or a Publishing Site.
00:07SharePoint attempts to generate useful Navigation itself, but sometimes you'll
00:11need to change, or extend, what SharePoint has done.
00:15And the Navigation that you'll see is usually along the top and down
00:18the left-hand side.
00:20The Navigation along the top is typically referred to as the Top Link bar, and
00:23the Navigation down the left-hand side is not referred to as the Left-hand
00:27Sidebar, but as the Quick Launch bar, and there is nothing remarkable that makes
00:32it called Quick Launch bar.
00:33It's just that in previous versions of SharePoint,
00:36it actually used to have a graphic that said the words, Quick Launch, running up and down.
00:42So what are we looking at? Well, with the Top Link bar, by default, what you see
00:46is a Home tab, linking to the top- level site in the site collection and other
00:52tabs representing first level subsets, meaning sites created directly beneath
00:58the top-level sites, but not any further down than that.
01:02This Top Link bar can be shared across multiple sites in the Site Collection.
01:06On the left-hand side, in the Quick Launch bar, you'll see the contents of this
01:10particular site, things like Lists and Libraries and again, any subsites here.
01:17However, none of these authoritative, they can't be trusted as a description of
01:21what actually exists.
01:23If I'm looking at a Portal, I might have six sites existing here, but there
01:28could be more, and I wouldn't necessarily know.
01:30If I'm looking at the Quick Launch bar, there may be more things going on
01:33than I'm seeing here.
01:35Navigation in SharePoint is like Navigation on any Web site.
01:38It's useful, but it's not authoritative.
01:41If you really want to understand what a SharePoint site is made of, you need to
01:45go to it's View All Site Content window, which will take you through the Lists
01:50and the Libraries that make up this site.
01:53Changing Navigation is different whether you're in WSS or in a MOSS Publishing Site.
01:59They're both done through the Site Settings Window, so if I'm in a WSS site, I
02:03go to my Site Actions, Site Settings and I have links for both the Top Link bar
02:09and the Quick Launch bar.
02:11In the Top Link bar, you'll see examples of what sites are added right now.
02:15You can change links yourself, and this is what I mean by it not
02:18being authoritative. You can change it.
02:20You can add your own links.
02:21You can delete links.
02:23Changing Navigation in a WSS site is a very manual process, if you don't want to
02:28accept what SharePoint offers.
02:29When you're working with a MOSS Publishing Site, you also get to this through
02:34the Site Settings > Modify All Site Settings Window, but instead of having Quick
02:39Launch and Top Link bar, you have one Link called Navigation
02:42that gives you a slightly different window.
02:44Now we're going to cover a lot about Manipulating Navigation toward the end
02:49of the course, but knowing the basics of the Navigation that's automatically
02:52added by SharePoint, we can move forward without either the Top bar or the
02:56Left bar surprising us.
Collapse this transcript
Understanding the SharePoint content database
00:01If your background includes conventional Web Design and Development, at some
00:04point, you're probably going to ask, okay where are my Web pages?
00:08And you may even go looking on the Web server machine to try and find something.
00:12You'll be looking for a folder structure with folders and subfolders, places to
00:17put images and styles and Web pages.
00:19You're never going to find this on the SharePoint Web Server.
00:23That's because everything in a SharePoint site is stored in a database called a
00:28Content Database and those files that you might expect to find, even if you
00:34could get access to that machine, you'll never find those Files because they're
00:38existing inside a database.
00:40SharePoint can't even run without a database to store its content in.
00:45When you create a Site, or Page, or a List or Library, or you upload a Document, or
00:50an Image, it may feel like you're creating a File on the Web server, but you're
00:54really making an entry in a SQL Server Database.
00:58Now really, what actually happens is SharePoint is built on two databases: a
01:04Configuration, or Config Database and a Content database.
01:08What's stored in the Configuration Database is a list of what sites exist, what
01:13are they called, who can use them - all that configuration information, and then
01:18in the Content Database, is all your stuff:
01:21your Pages, your Documents, your Images.
01:24If you're worried that you need to become a database expert, we'll you don't.
01:28You never need to open the database directly, and in fact, even if you could, you
01:32shouldn't. You're going to be effectively interacting with the databases either
01:36through the browser or through SharePoint Designer.
01:39However, that doesn't mean you can ignore the fact that everything is in the database.
01:44As your SharePoint Sites start to grow, you'll understand that your Content
01:49Database starts to grow and in fact, in larger SharePoint installations,
01:53it's very, very common that you won't just have one Content Database.
01:56You'll have two, or three, or four, or five, or 10.
02:01You'll always just have one Configuration Database, because there needs to be
02:05one place to go to say, okay does this Site exist? Does this Webpage exist?
02:11What's it called? And then all the stuff can be stored in different databases,
02:15even on completely different machines.
02:17But as a designer, you need to understand the impacts of things like this,
02:21because you don't ever, for example, need to FTP your Pages up to the SharePoint Box.
02:27It doesn't work that way.
02:28SharePoint doesn't have a File structure for you to put your stuff. It's
02:31going in the database.
02:33So consequently, you can't just shift Files around on the Web Server to make
02:37them more or less accessible.
02:38It doesn't really work that way.
02:40However, in this course, the reason why we are really interested is one is
02:43this role of SharePoint Designer or when this program is installed on your
02:49machine, what it can do is act as a middleman, as a go-between, between the
02:54database, the Config and Content Databases, and being able to read those
02:58databases and present the details to you as if these files and folders existed
03:04on the Web server, and one of the primary benefits is that it understands the
03:08SharePoint Content Database and can show its content to us in a way that
03:13makes sense as Web designers.
Collapse this transcript
Creating a new site in SharePoint
00:01I made my first Web site in 1995, and I have been a Web guy ever since.
00:05Now as Web developers, we tend to get very attached to the Web sites that we make.
00:09We view them, hopefully, as impeccably crafted pieces of genius, that we've
00:14shed blood, sweat and tears over, little unique things that are very valuable in themselves.
00:20SharePoint has, shall we say, a bit more of a production line mentality to the
00:25idea of creating Web sites.
00:27It's very much a work-a-day, boring tasks.
00:31These are casual, almost throw-away things.
00:34You can make one. Use it. Delete it.
00:36Make another one. Use it. Delete it; a very repeatable task that, as a Web
00:42designer, is kind of a new mindset to get into.
00:45But it's a useful thing when it comes to customizing them, the idea that you can
00:50quickly create a Web site, work with it, delete it.
00:53SharePoint very much has the idea of this rubber stamp thing.
00:57We can just repeat this again and again and again and again, based on one
01:02template for a Web site.
01:03Now remember that when you create a SharePoint site, that site must be inside
01:08a Site Collection.
01:09There is no such thing as a SharePoint site that's not in a Site Collection.
01:13If it was the first site created, when that Site Collection was made it would be
01:18what's called a Top-Level site.
01:20If it's been created after that Top- Level Site, it's referred to as a subsite.
01:25Now there is no inherent difference about whether it's the Top-Level or beneath it.
01:31All SharePoint sites really are created the same kind of way.
01:35But the important thing is to know where you are when you create a SharePoint site.
01:41If you have your Farm Administrator create a new Site Collection, the first
01:46thing he is going to ask is what's the site at the Top-Level of the Site
01:50Collection, because you have to have one.
01:52Beyond that point, you can create sites underneath it.
01:55And I'm going to go ahead and do that.
01:58So right now I'm looking at an existing Team Site.
02:01This is actually a Top-Level Site of a Site Collection, and there's no
02:05other sites underneath it.
02:07And what I'm going to do is use my Site Actions menu,
02:11Come down and click Create. I'm going to say this is where you add a new list,
02:15library, or discussion board, or survey page, or site.
02:19Site almost seems to be pushed to the background here, as if it is unimportant.
02:23And in fact, it's the last option of the last column here, is the idea of adding
02:28a site or workspace to this particular site.
02:32So we are in the Team Site right now. I'm going to click this option.
02:35And it's going to say okay create a new SharePoint site.
02:37What do you want to call it?
02:38Again, this should be something that you almost get used to creating as a work a
02:42day, very repeatable task.
02:45So in here I could just say this is Demo.
02:47And I give it a Title.
02:48The Title can be changed later.
02:49The important thing is what comes next.
02:51You don't have to give it a description, but you do have to give it a URL.
02:56And really, the URL that it's selecting here is going to be what's the address
03:01of the parent site?
03:03In our case, it was the Team Site that existed at ldcsharepoint.com/sites/team.
03:10We will be underneath that.
03:12And SharePoint is going to enforce that URL.
03:15We can then call it anything underneath that.
03:17Again, I could say Demo.
03:19That'll be the address of this site.
03:21And then it will ask, what is the site template?
03:25What, of the predefined sites that exist, do we want to use?
03:29Do we want to make a Team Site, or a Blank Site, or a Document Workspace, or a Wiki Site, or a Blog.
03:35These are all previewed over on the left when you select one.
03:39The other temps have other SharePoint sites.
03:41Again, in this particular course, we are not really going through what all
03:45of these exactly are, what they mean.
03:46In fact, I'm going to create the simplest kind here, which is a Blank Site.
03:51Going down a little further, the couple of things it's going to ask are, what
03:55permissions do you want to use?
03:57Well I'm going to leave the default, use the same permissions as the parent site.
04:01So if I could see the parent, I will see the child.
04:03If I am a reader of the parent, I'll be a reader of the child or subsite.
04:07If I was a contributor of the parent site, I'll be a contributor on the subsite and so on.
04:12And then there's a few Navigation options.
04:14Do you want to display this site on the Quick Launch bar of the parent site?
04:18And it has giving me a little highlight, that it's the left-hand side.
04:21Yeah. Sure. I'll accept the defaults here, but I'll display it on the top link bar.
04:26And that this site will use the top link bar from the parent site.
04:29So accepting all of those, so really all I did was give this thing a Title and a
04:34URL, and select a Blank Site template. I can hit Create.
04:38I can either use the Create button at the top or the bottom.
04:41It'll do the same thing.
04:43We have now a Blank SharePoint Site.
04:46Because it was created with a parent site in the Site Collection, we have a Home Site.
04:52I can switch between the two.
04:53It may not look drastically different.
04:55This is one of the reasons we are learning how to style these SharePoint Sites
04:59because they are all going to start off with the basic SharePoint blue.
05:02But this is now a subsite called Demo underneath our Team Site on the
05:07Home location here.
05:08Now if you haven't already explored these options, I suggest that you get that
05:13ability and create a few sites.
05:16Create them, mess around with them, delete them, get used to that kind of
05:20procedure of creating and manipulating Web sites in SharePoint.
05:24Of course, being careful if you're deleting them, but allowing yourself to
05:27be able to do that.
05:27Now yes, while SharePoint is more casual about creation and deletion of Web
05:33sites than we might be used to, it is worth bearing in mind that the sites that
05:37we are going to be customizing are likely to be that ones that will hang around
05:41the longest.
Collapse this transcript
3. Permissions in SharePoint
Introducing permissions
00:00SharePoint cares about permissions.
00:03It's very, very picky.
00:04When you use a SharePoint Site, at every step of the way, it wants to know who
00:09you are and what you are allowed to do.
00:11What that means as a designer is that you have to have very specific permissions
00:15in order to make the changes you need.
00:17If you only have permission to read a particular SharePoint Site, you're not
00:21going to be able to change its look or its navigation,
00:23and certainly not be able to create a whole new Layout. Here is the deal.
00:28Every new site collection gets created with three groups: visitors, members and owners.
00:33You can change this and create new groups, but this is the default.
00:37And if you aren't in any of those groups, you don't even get to see the sites in
00:41that site collection.
00:43Let's start off with the Visitors group.
00:45If you are in the Visitors group, you have a permission called Read.
00:49And as that sounds, you just get to read the site.
00:52You don't get to change anything.
00:54You don't get to create new sites.
00:55And you certainly don't get to affect the look and feel of the site.
00:58Above that is a group called Members.
01:01And if you're in the Members group, you have a security privilege called Contribute.
01:05That means you can edit and delete items on the site.
01:08You can upload documents.
01:10You can create pages, but still you can't really change anything about how the site looks.
01:15You are contributor, but you are not in charge of it in any way.
01:19Above the member security group is the third group, the most powerful one, the
01:24Owners group, where you have full control.
01:28Full control really means that you get to make new sites.
01:32You get to change the way the site looks and that way it feels.
01:34You get to change things.
01:36You get to do a lot with the site.
01:39However, one of the problems with the Owners group as in the lot of locations,
01:43you don't get to be in that group.
01:44They are very restrictive about the amount of people that are in the Owners group.
01:49Now above this, there is also a Site Collection Administrator.
01:53And this person effectively has full control over every site in a site collection,
01:57and can do things like activating features, change the site collection settings.
02:01There is one more higher God- like permission called a Farm Admin.
02:06This person can create and delete entire site collections.
02:09But we don't need anything like that to do with this course.
02:12Here is the issue. For a designer, being in this Members group is not enough.
02:18To affect a design, you need to either have full control, or if you have
02:23Publishing activated, you can be in a new group called Designers group, which has
02:28a privilege called Design Privilege.
02:30What does that mean?
02:31Well, design privilege is somewhere between contributor and full control.
02:36You don't quite have as much as full control, but you have more than contributor.
02:39You can rearrange Web parts.
02:41You can change the theme.
02:42You can change the look and feel.
02:44You just can't create a new subsite.
02:47The thing is your Designers group is actually a part of several new groups that
02:51are added when you turn on that Publishing feature.
02:55And those can come in very, very handy for particularly the role that you're
02:58looking for in the course.
03:00So you will need pretty high permissions.
03:02And you may need very high permissions.
03:04If part of your job is going to be creating the site itself, and activating
03:08features, you may even need to be a Site Collection Administrator.
03:12But if you're just working with the design of an existing site, you should be
03:15able to get by with just the designer privilege.
Collapse this transcript
Discovering what permissions you have on an existing site
00:01Here is how to figure out what permissions you have on an existing site, if
00:04you don't know already.
00:06What you'll find is that there are some clues that can quickly tell you what
00:10permissions you have.
00:11Now let's breeze past that one.
00:12I am assuming that you can browse to the site already.
00:15If you get an Access Denied message like this, well there is your first problem.
00:19You are going to find who sent you the original invitation, or who owns the site,
00:23and get them to give you access to it.
00:25But let's say you can, at least, get to the site.
00:29So step 2, is do you see the Site Actions menu on the upper right-hand side?
00:36Now if you don't see it, meaning if it's just a white space here,
00:40you don't see that blue, could be a different color for you,
00:42you don't see that dropdown menu,
00:44what that means is you don't have permissions on that site to do anything
00:48substantial with it.
00:49You might be a contributor to that site, which means you can edit Lists and Library items.
00:54But without that menu, you won't even be able to move Web parts around or change
00:58a theme, and that's probably not going to be enough for you as a designer.
01:02Now, if you can select that menu,
01:05and you might either see three options if you're in WSS, or several more, if you are in MOSS.
01:10I am going to come down to Site Settings.
01:14And just to show you if was on a MOSS Publishing Site, click Portal,
01:19I would instead see Site Settings and then Modify All Site Settings.
01:23But it's taking me to the same kind of place.
01:25But can you get to the Site Settings page?
01:30If you can, you at least have some level of power.
01:34And when you are on the Site Settings page, do you see a column called
01:39Site Administration?
01:40And if you do, then you are a Site Administrator. That's a good thing.
01:44If you don't, it means that you might only have designer privileges, which
01:48is okay but not great.
01:51So once I'm in the Site Settings screen, the area that I'm interested in to kind
01:56of tell me what I've got is this right-hand side of things.
01:59If I see a column called Site Administration, that's a good thing.
02:03If I see a column called Site Collection Administration, that's even better.
02:08Now it's really telling me, do I own or administer this site, which is good.
02:12And do I own or administer the whole Site Collection, which is even better.
02:16If I don't see either of these two columns, then the most I'm likely to be is a designer,
02:22which means I can do things like move Web parts around, but I can't really
02:26affect the entire site or the Site Collection.
02:30Now if your Farm Administrators do a lot of custom permissions, you may have
02:33something that's little weirder.
02:35But the ones I'm describing are the most common.
02:38It's very common that the Farm Administrators don't actually know the
02:41permissions that you will need in order to do your job.
02:44And most of them will default to being too restrictive.
02:47So you may have to educate them on upping those permissions a bit.
02:50But your first key question is that Site Actions menu up at the top right.
02:56If you don't even see that, you won't have enough privileges to do what you need
03:00to do with SharePoint.
Collapse this transcript
Getting upgraded permissions
00:01If your permissions are not enough, you need to know what to ask for.
00:04Now you do need to have at least the designer permission in a SharePoint site to
00:08do anything significant with visual customization.
00:11Again, that first clue is do you have the Site Actions menu on the upper-right,
00:16because you'll need that to do even the most basic customization of that site
00:20with the SharePoint.
00:21Now essentially, what you need to find is the person with one level higher than
00:28what you want as a permission.
00:30So what might you ask for?
00:31Well, if you can get designer, you can get designer.
00:34How do you get that?
00:34Well, you need to find who has full control over that Web site.
00:38If you know who the site owner is,
00:40they can give you designer permission.
00:42Now if you know who the site collection administrator is, you can ask them.
00:47They could give you full control on a site.
00:50If you know who the farm administrator is, they could make you a site collection owner.
00:55And here's the downside of that.
00:57If you're a site collection administrator, which you may think is a really good
01:00thing, and that is pretty good.
01:02And how to tell that as go to your Site Settings and see do you have a column
01:06called Site Collection Administration.
01:09The benefit of that is you get a lot of great site-collection-level features
01:13that you can play around with.
01:15There's a down side to being a side collection administrator, because if you are
01:19a site collection admin, you may be roped into doing site collection tasks and
01:23actually doing reporting and working with security, which may or may not be what
01:28you want. With great power comes great responsibility.
01:32One of the downsides of being a site collection admin is it's quite easy to
01:35accidentally delete entire sites.
01:38So if you tend towards doing oopsy things, you may want to restrict your own capabilities.
01:43As a rule, what you're looking for is the minimum privileges necessary.
01:47Yes, it's always nice to have Godlike permissions in SharePoint, but if you can
01:52do what you need with designer privilege, than that's the best one to have.
01:56But your key is find the person with the privilege higher than the one you want.
Collapse this transcript
4. In-Browser Customization
Customizing Web Parts
00:01So we've gone through a lot of conceptual stuff.
00:03Let's actually start making some start making some visual changes on a SharePoint site.
00:07In this section of the course, you're going to explore the things you can do
00:10using the browser before you even get into using SharePoint design.
00:15And I understand if you want to leap ahead into using SharePoint design and all
00:19the cool things you can do with a Web design tool.
00:22But you want to make sure that there isn't actually simpler ways of doing what
00:27you want to do because there's a lot you can do through the browser.
00:30We're going to take one of the simplest SharePoint sites, the Team Site,
00:34and change it around.
00:35Well, we've seen a couple of things beforehand, like the idea of the View All
00:38Site Content link, which is telling us the existing Lists and Libraries.
00:44So we can see there that I've got things like an Announcements List, a Calendar,
00:48a Links list, a Tasks list.
00:50If I go back to the Homepage of my Team Site, I can see that I've got this
00:55Announcements area, this Calendar area, this Links area.
01:00These all are Web parts, little modular pieces that are really exposing the data
01:06that's in those underlying lists or libraries.
01:09And it's important to not make the mistake of thinking that these Web parts,
01:13what you're looking at on this page, actually are the data.
01:16They're not the data.
01:17They're windows to the data.
01:19What does that actually mean?
01:21Well, you can see over here that I've got this Links area, what's called
01:25a Links Web part.
01:27It says there's no links right now because this is a default Team Site out of the box.
01:31I'm going to Add a new link over here to, let's say http://www.lynda.com.
01:37Type the description, which can be whatever you want,
01:40and any Notes, which are optional. Click OK.
01:43Now this says okay, in my Links now, I have lynda.com.
01:47I also have this little dropdown list over here, where I've got a Minimize
01:50option, a Close option, and Modify Shared Web Part, which really means modify
01:55the settings of this Web part, and whatever you change, everybody else will see.
02:00That's why it's talking about to being a shared Web part.
02:03Any changes you make aren't just to you. They're everybody.
02:06Well, what is a Web part?
02:08Well, it's a modular, movable piece of code that's exposing some data.
02:14In fact, if I go to my Site Actions menu and shift into this Edit Page mode,
02:19what you'll see is the page breaks apart into what are called different Web part zones.
02:24We have two zones here.
02:26The Left zone is taking up about 70% of our working area of the page, and the
02:32Right zone about 25-30%.
02:36What I can actually do is grab these title bars.
02:39You'll see how my cursor changes to the crosshair as I move across the word Site
02:43Image and Links and Calendar.
02:45And I can actually take these and move them around.
02:48I can start to manipulate what this page looks like, drag Announcements over
02:52here to the Right, have the links on the Left, grab my Site Image to the Left.
02:57It's completely up to you.
02:59But bear in mind, you're editing the shared version of the page.
03:02If you don't remember that, it's telling it to you in the status bar up here.
03:06That means any changes that you make are what everybody is going to see when you
03:11finish editing this page.
03:13And how do I finish editing this page?
03:15Well, over on the right, I have Exit Edit mode.
03:18That is now is us. We've moved around the Web Parts of this page. Okay, so what.
03:22Not a drastic amount of things that we've done so far. But it can be.
03:27What your Web parts are often exposing is the data in your Lists and Libraries,
03:33the things that you see when you view All Site Content.
03:36There's a big difference, however, between the Web parts and the data.
03:40If I go back to the Homepage,
03:42I shift back into my Site Actions Edit Page mode,
03:46and if I delete this Links Web Part with the lynda.com link, Exit Edit mode, so
03:52I don't see it anymore,
03:53it's quite a common misconception to think that I have just actually deleted that data.
03:58And I really haven't.
03:59The Links list is still there.
04:01And the only authoritative way of getting this is to go to my View All Site
04:04Content, which will tell me, yup!
04:07You still have a Links list.
04:08And if I go into it, it says there's your link to lynda.com.
04:12But what if I wanted that Web Part back, or what if I wanted to have a Web Part
04:18that had never been on that page in the first place.
04:20Well, once again, I go into my Site Actions > Edit Page mode.
04:24But instead of moving things around, I'm going to click the link that says Add a Web Part.
04:28I have that link on both of that Web Part zones here.
04:32Let's click the Right one, Add a Web part.
04:35The first section of this page is telling me what Lists and Libraries you have.
04:39And it's saying, well, on this site, you have the Announcements list.
04:43You have the Calendar list.
04:44You have Links, Shared Documents, Tasks.
04:46There are a couple of internally used ones, in this case, Form Templates, which
04:50you may or may not see.
04:51But what this is basically saying is show me, or Add a Web Part, that represents
04:58this underlying list or library.
05:00So I can select the Links on and click Add. Very simple.
05:05It's added it over here on the Right.
05:07One of the common things I hear from people very new to SharePoint is they have
05:11seen this Web Part window before, they click Add a Web Part,
05:14and they're looking for something like a project task list.
05:18And they say, now, I know I've seen it before somewhere, but I don't see where
05:21to add the Web Part.
05:22Or I know, I've seen the Links Web Part somewhere, but I don't see it here.
05:26Again, remember what this is trying to show you.
05:28It's trying to expose the Lists and Libraries that already exist.
05:33If you want to show a Web Part on your homepage for the Links, you better
05:36make sure you have a Links list on that Web site. Otherwise, it's not going to show up.
05:42Now after the existing Lists and Libraries, you'll also see a section called All Web Parts.
05:48Now this may look very different depending on whether you have WSS or MOSS, and
05:52depending on which version of MOSS you have, and which features have been turned on.
05:56I'm actually seeing a whole bunch of Web Parts that are only available in the
06:00MOSS Enterprise feature.
06:01We've got Business Web Parts, Site Aggregator Web Parts, RSS Viewers, Business
06:07Data Catalogs, a whole bunch of stuff that we can play around with, some of
06:11which are very complex, and some of which are quite simple, such as the Image
06:15Web Part to display pictures and photos, and the Content Editor Web Part,
06:20which is really a Web Part that doesn't expose an underlying List or Library
06:24but simply allows you to type some data, and in fact, I've just checked both of those.
06:29So I can click Add.
06:30And it tells me that for the Content Editor Web Part,
06:33it says To add content, open the tool pane and click Rich Text Editor.
06:37And what's the tool pane?
06:38Well, we click the link and find out.
06:41When you're editing the settings of an individual Web Part, you have the
06:44section over here on the right-hand side that allows you to change things like
06:49the appearance of it and whether you see the title bar, and what the title bar says,
06:54and very specific settings for that individual Web Part,
06:57in this case, the Rich Text Editor that I can click.
07:01And I can literally just type Some simple content goes here.
07:06If I just want a few paragraphs or a few words of text, I can type that in,
07:12click OK, exit my Edit mode, and I have a Web Part. Not the most exciting thing
07:17in the world, obviously,
07:18but it's actually showing some content.
07:20Same thing with the Image Web Part.
07:21I can open the tool pane, and the Link to an existing image.
07:25Now we're going to get much more into doing some custom content on the pages as
07:29we go through this course.
07:31But understand that what we're trying to do is create a framework where the
07:35power user, and that may not be you, has the ability to add and move around
07:41Web Parts on the page
07:42and you need to be enabling that.
07:43You need to be working with designs that actually allow that.
07:48Web Parts are one of the most common ways of manipulating pages in SharePoint.
07:52Yes, you're still somewhat at the mercy of whatever content might be shown in
07:55that Web Part, whether that's today, or weeks, or months down the line.
07:59For example, I don't know if my Links Web Part here might have one link in it, or
08:04ten, or a dozen, or none at all.
08:07And I have to create a design that's flexible around that.
08:09But now you know they're controllable.
08:12And that there's a lot of Web Parts that are available to you in SharePoint.
08:15And there might be more or less available depending on if you have the WSS or MOSS.
08:20And some only appear when certain features are activated.
08:23So yours may look a little different.
08:25But you can create very, very flexible Web sites by manipulating these,
08:30and moving them around.
Collapse this transcript
Creating custom lists
00:00The out-of-the-box Web sites in SharePoint were never meant to be all that important.
00:05Too many people treat team sites and document workspaces as if there were some
00:09magical prescriptive content handed down from on high.
00:13But you will always meant to customize these sites to make them more useful.
00:17As a designer, however, the temptation is that you customize your sites by
00:21adding new pages, and with SharePoint that's not really it.
00:25Remember, in SharePoint, it's not about your pages.
00:27It's about your stuff.
00:30Your stuff, your content comes first.
00:33Your pages come second.
00:34And often your pages come automatically, once you've defined what your stuff actually is.
00:40One of the simplest ways of defining new stuff in a SharePoint site is to make a custom list.
00:47If I look at a Team Site like this and realize that there isn't a place for some
00:52data that I want, I can make it myself.
00:55If I look at what I've got and think no, that doesn't do it.
00:58I'm going to go to my Site Actions menu, hit Create, look at my available Lists
01:02and Libraries, say Links, Calendar, Tasks.
01:06No, none of that does it either.
01:08Perhaps what I need is a place to store a list of movie titles and
01:12movie descriptions.
01:14Well, if it isn't there already in my first few columns, I can make a Custom List.
01:18So I want to make a Custom List called Movies.
01:20Do I want to display it on the quick launch bar? Yes, I do.
01:25And what SharePoint is doing is just by me describing this new list,
01:30it says, well, I'm giving you a page to look at it.
01:33And I'm adding the link to your quick launch bar over here on the left.
01:36Now what it's given me is a little boring right now because if I say I want to
01:41add a new item, then it's giving me the standard SharePoint blue bar across the top here,
01:47all that I've got as a Title. And that's probably not good enough.
01:51That's the default for a new list in SharePoint is just a Title.
01:55It's recording a couple of other things under the hood, but just the title is editable.
01:59Let me cancel that.
02:00I'm going to go into the Settings of this List.
02:03Every list and every library and every SharePoint site has its own list Settings
02:10page, or Library Settings page,
02:12not one settings page for everything, If you have a thousand SharePoint
02:16sites, each with a thousand lists inside them, you'll have a million
02:21different list settings pages.
02:22This is the one for my Movies list in this site.
02:26When I click the settings of that, it says well, you've got three columns right now:
02:31Title, Created By, and Modified By.
02:34And Created By and Modified By are being done and worked with by SharePoint itself.
02:39I'm going to say that I want to add a few more columns here to describe the extra data.
02:44So I'm going to hit Create Column.
02:47And say well, we've already got Title.
02:48So let's say, I'll put in a Genre.
02:50And then it'll say what kind of data is this?
02:53And it's very much like defining a custom database in, say Access, or FileMaker,
02:57or SQL Server, or Oracle.
03:00What's the title of the data that you want to store and what type of data is it?
03:04SharePoint really forces you into these choices, Single line of text, Multiple
03:09lines, Choice, a Number, Currency and then a few others.
03:12I'm going to say here, this is really a Choice.
03:15The Genre is a never-ending open-ended format.
03:18So we can say that Genre, Choice.
03:20And when we select Choice in the radio buttons, it actually says well, what are
03:24your choices? Enter choice number 1, 2 or 3 and so on.
03:28We could say it's Action, and Comedy, and Romance and Sci-Fi, and Animation and so on.
03:39We can keep going.
03:40It asks do you want to display these choices with a dropdown menu, or radio
03:44buttons, or check boxes.
03:45Well, I'm going to leave the default.
03:47Dropdown menu is fine.
03:49It says is there a default value?
03:51It's going to select the first one, which is Action, by default. I could change that.
03:55I'm going to just leave it, and click OK.
03:59I'm then going to use the same method and add a couple of more columns.
04:02Create a new Column.
04:03I'll say for Date Released.
04:06And that will be a Date, which itself just as a choice, had a few options,
04:11selecting Date and Time has a few options. Is it just the Date, or Date and Time.
04:16Is it today's date for the default value or no default value.
04:20I'm going to click OK.
04:22I'm going to come down, create another column for Rating.
04:29And that can be a Number.
04:31Number has its own set.
04:33Do we want to have a minimum and maximum value?
04:35Sure, we'll have a Minimum value of 1 and a Maximum value of 5.
04:39I can select things like saying there's no decimal places.
04:42Again, right now I'm not trying to make you an expert on all these options.
04:45I'm just trying to very quickly take you through some of the examples, and then click OK.
04:50And I'll do one more Column.
04:53Create a Column called synopsis, which can be Multiple lines of text.
04:59And I'm going to just click OK on that.
05:02So we've now actually changed this list,
05:04so it has multiple columns giving me a Title, a Genre, Date Released, a
05:08Rating, and a Synopsis.
05:10The other two things are taken care of by SharePoint itself.
05:13I'm going to go back to the homepage of my site by clicking on the Home button.
05:17I can see that my Movies list has a link in my quick launch bar. I click here.
05:22I click New.
05:23And it opens up this page.
05:25And this page is generated based on what I've described that list to be.
05:30So we have a Title here.
05:31And let's type in Ponyo.
05:33The Genre here is going to be Animation.
05:37I'm going to say that the Date Released was the 2nd March, 2010.
05:42The Rating of 5, and I'm not going to bother typing in a Synopsis the notes
05:47would go here, and click OK.
05:51We're now adding to this List, but you might think this is all very internal,
05:55and, of course, we want to often see this on our page.
05:58We're saying it's important. In fact, let's show it on the homepage.
06:00Well, we've defined a Custom List.
06:03If I go to the homepage, and then use my Site Actions menu and shift into Edit
06:08Page mode, I can click Add a Web Part.
06:11You might be thinking that there won't be a Web Part because we've just
06:13created something custom.
06:15But no, SharePoint is good enough.
06:16It understands that this list exists.
06:18I see that my Movies List appears in my Lists and Libraries section. I click Add.
06:24And it will add that automatically to my page.
06:27It's maybe giving me a bit too much information.
06:30If I click out of Exit Edit mode, it looks a little ugly here, a little
06:34non-standard, because it's adding it there would the big blue bar, allowing me
06:38to add a New option, and change Settings.
06:40And maybe I want that, maybe I don't.
06:42Like any other Web part, I can change my Settings using this dropdown menu,
06:46Modify Shared Web Part.
06:49What I'm actually seeing here is the toolbar, which is the big blue bar here.
06:53My choices actually are for any Web Part, a Full toolbar, a Summary toolbar, No toolbar.
06:59Let's change that to No toolbar and click OK.
07:02And there we've got a bit more standard stuff.
07:05Yes, it's obviously a listing of data.
07:07But we're starting to see how we can start to easily change our pages and what's
07:12generated by SharePoint.
07:14Now if you're viewing this as somewhat simplistic, you're absolutely right.
07:18If you're thinking, but I don't need to be an HTML, CSS, Web design person to do it, yes.
07:24You are right.
07:25But you need to know this, because otherwise, you'll be tempted to fix
07:28your problems by creating custom Web pages that enter information into custom databases.
07:34I need an insert page, and a delete page, and then edit page and a view page.
07:39But you don't with SharePoint.
07:41Because all you really need to do is describe your content to SharePoint and let
07:46it figure the pages out.
07:47Later, we'll see and how you might, if you really needed to, create custom
07:51versions of these pages.
07:53And obviously, if you got a lot of content on say a public Intranet site, you may
07:58need a more controlled way of doing this, but understand that this is a core
08:03skill for SharePoint.
08:04And oftentimes, this is what your users actually need:
08:07the easy way to contribute information into the sites that you're going to
08:11be designing, and you'll need to be building a design that understands this
08:15and works around it.
Collapse this transcript
Creating site columns
00:01After you've created a couple of those new custom lists, you often going to find
00:05the columns you defined in one could be used in other, particularly when it's
00:09information unique to your team or to your company.
00:12But it's a little tedious to have to redefine this information again and again.
00:16It would be nice to define a column once and then reuse it across multiple
00:21lists and libraries.
00:22No doubt you've made the leap.
00:23That's exactly what I am about to describe.
00:25I am going to show something called a Site column.
00:28These are, as the name might suggest, columns defined on a site-level, not on the
00:33individual list, that are then available across multiple lists and libraries.
00:36I am at the homepage of a top- level site here of a site collection.
00:41I am going to go to my Site Actions > Site Settings menu.
00:44Then in the middle of this, I am going to see a section called Galleries.
00:49Now, in SharePoint, a gallery is a place that you put something that you want to
00:53be on display to other sites in that site collection.
00:58In this case, we have several galleries in this middle section here:
01:02Master Page galleries, Site content types gallery, Site columns galleries.
01:06At this point, I am not expecting that you know what all of these or most
01:09of these even mean.
01:10We are going to go through a couple in this course.
01:12Now, if you are from a real designer background, right now, at this point, you
01:16may be tempted to dismiss this content as not all that relevant.
01:19You kind of saying, well how is this relevant to me?
01:21Once again, let me assure you right now, if it wasn't relevant, I wouldn't be including it.
01:25Site columns are invaluable later on when you're creating more complex Web site designs.
01:30They are a core skill in SharePoint.
01:32I am going to select the Site columns gallery.
01:36Now because I'm at the top level site of the site collection, whatever is
01:40in this gallery is available not only in this site, but any subsite in the site collection.
01:46What I am looking at right now is the Site column gallery and all these
01:50columns that exist here, I didn't create.
01:52They are actually the way they are in SharePoint out-of-the-box.
01:56These are a whole bunch of available columns that you can use in any list or library.
02:01The idea is that you might look through them, see if there is something that
02:04you are looking for in all the different ones that we have here, like Fax
02:08numbers, and Nicknames, and Office, and other facts,
02:11all sorts of things you can do.
02:13But let's say you've looked through them and the one you want isn't there.
02:16You are creating a catalog of information for your company.
02:19Let's say you've got a product catalog where things break down into books and
02:23DVDs and CDs and electronics.
02:26That's not going to be in SharePoint.
02:27SharePoint doesn't know what your company does.
02:30So, I am going to Create a new column that I am going to call Category.
02:35I am going to say that this one will be a Choice because it is only a
02:40predefined list of things.
02:42When I select the Choice, just like doing this on an individual list, I'll get
02:46this ability to enter multiple choices.
02:49Let me quickly put a few in.
02:50We'll leave it at that right now.
02:55I am going to leave some of the rest as default just because I am just trying to
03:00demonstrate this and click Ok.
03:02You may get this message pop-up, which will tell you the column name that you
03:06entered is already in use or reserved.
03:07That's very common.
03:09If you pick really straightforward things like category or department or e-mail,
03:13then it's not really surprising they have already been taken.
03:16I am going to click OK and go okay.
03:18Apparently, I have to choose another name.
03:20But I can do whatever I want.
03:22I don't have to worry about bizarre naming conventions and underlines.
03:25So, I am just going to say that this one is Product Category, and come down and click OK.
03:31What I'll find is this will be put in it's own group.
03:35Like we have a group here called Base Columns, we have a group called Core
03:38Content and Calendar Columns.
03:40These are all predefined.
03:42If I keep coming down, we've got Document Columns.
03:44That's where a Category was.
03:46So, we may end up using that later on.
03:49If I keep coming down, Custom Columns is what I created my one in.
03:53So, I have got Product Category there.
03:56You might think okay, so what? What's the point here?
03:59The point is we have this column.
04:02It's predefined with all its choices that can be used in any list or library.
04:07While this doesn't seem completely relevant now, what's going to happen is when
04:10we create complex site designs and complex pages,
04:13we are going to start building our page templates from Site columns.
04:18So we need to know how to create this.
04:20Yes, Site columns are an unexciting, somewhat-tedious, but completely necessary
04:26part of SharePoint.
04:27One of the things to remember about these guys is they exist at the
04:30site collection level.
04:32So, if you are working across multiple site collections, they don't
04:36automatically span across them.
04:37They either need to be copied manually or there are few third-party tools that
04:41can help you sync these across.
04:43But you'll find that these Site columns are invaluable later on.
04:46When it comes time to create a complex site with a multiple page template, you'll
04:50be creating them based on Site columns.
Collapse this transcript
Creating basic pages and Web Part pages
00:00So, I've been insisting for awhile now that you should shift your approach away
00:04from this whole making Web pages idea and more to thinking about your stuff
00:09inside SharePoint and your content.
00:12But sometimes, not very often, but it happens,
00:14you just need to make a Web page.
00:16You just want a page to put some content on.
00:19It doesn't need to be a custom list.
00:21It's simpler than that.
00:22Of course, you can do this.
00:23Now, here is where there is a really big split between making Web pages in WSS
00:28collaboration sites and making Web pages in publishing sites.
00:32Creating Web pages in WSS is easy, but it is simple, and it's limited.
00:38Creating pages in MOSS publishing sites is easy too, but there's much more
00:42baggage when doing it, many more hoops to jump through, because your pages are
00:46not regarded as casual.
00:48In this module, I'm going to focus on making Web pages in regular WSS
00:53collaboration site, like a team site, a document workspace and meeting
00:57workspace, that kind of thing.
00:59So, I am at the homepage of a team site.
01:01I'm going to go to Site Actions, go to my Create menu.
01:05Under this, I'm going to ignore the first four columns.
01:08In the last one, we've got the Web Pages column, which is not only where you
01:12make Web pages, but where you make whole new sites as well.
01:15I've got two choices: a Basic Page and a Web Part Page.
01:20Really, they're not all that different.
01:22A Basic Page is about as simple as it possibly gets.
01:25A Web Part Page just means a page you can put Web parts on.
01:29So, let's take them one by one.
01:31Basic Page, all it's going to ask you is what's it called and where does it go?
01:36You have to give it a name, and the name will end in .ASPX.
01:40That's because SharePoint is an ASP.NET Web Application.
01:44What that really means is it's a Web site written in Microsoft's
01:48ASP.NET Technology.
01:49Now, if you're just from a design perspective, you really don't need to worry too much
01:53about that, other than the fact that if you're wondering why your pages aren't
01:57ending in .HTM or .HTML, that's because they're written in ASP.NET.
02:03I'm going to just give this a name, like demo.
02:06The second question is where does it go?
02:09You can see I've got a dropdown here.
02:10Now, yours may look a little different depending on what site you're on.
02:14I've got Form Templates and Shared Documents.
02:17This page has to go somewhere.
02:20It's asking what library does this go in?
02:22This again, goes back to this whole idea of lists and libraries driving
02:26everything on your SharePoint site.
02:28Because, even in this case, we want to create a very simple Web page, and it's saying, okay.
02:32It has to go in a library.
02:34I'm going to select my Shared Documents library and click Create.
02:39As soon as this page is created, it's going to open the Rich Text Editor.
02:42Now, a word of warning: If you are working with the 64-bit version of Internet
02:47Explorer Version 8, or IE 8, you may get a JavaScript error here.
02:52That's just because it isn't compatible with the 64-bit version.
02:55You need to run the 32-bit version to make sure that you get the Rich Text Editor open.
03:01I'm going to just type in Some demo content.
03:06As you might expect, you've got a few very simple things that you can do with
03:10Bold and Italicizing and a few bullet points.
03:12There is really not a lot of power to this.
03:15But again, it's intended to be a very simple way for you to create a very
03:19straightforward page.
03:20You may be looking at this as a designer and thinking, you've got to be kidding me.
03:23This is what I've got?
03:24Well, no. Bear in mind what it's doing here.
03:27This capability is being provided for your typical user who doesn't have any
03:33HTML experience, just wants to be able to dump some content in a page and kind of walk away.
03:39That's really it.
03:40We do have a lot more power in creating Web pages, particularly when we get
03:45into MOSS publishing.
03:46But I'm showing you the very, very basic page idea.
03:48Again, I've got this Edit Content link on the right.
03:51I can just reopen it, make a few changes, click Save.
03:54This page has no workflow, no control, no approval, no publishing structure.
04:00It's instantly there.
04:01The only issue is if you went back to the homepage of this site, you maybe have
04:05no idea that there is a link to this page.
04:08There is no link to it on the top link bar.
04:10There is no link down the left- hand side on the Quick Launch bar.
04:13Yes, if I went into my Shared Documents Library, which is where I saved it,
04:17I can see it there.
04:19But otherwise, there is no link to it.
04:21Here is really the deal.
04:22If I wanted a link to that page in my Quick Launch bar, I have to add it manually.
04:27A Basic Page is really just a dumping ground for uncontrolled generic content.
04:32But it can be useful as a very quick and very easy way of doing the stuff.
04:36Now, one of the other options you have in my Site Actions > Create is to
04:41create a Web Part Page.
04:43On WSS, this is the only other option.
04:46This gives you a few more layout options.
04:48It's giving me the same idea, but I have to give it a name.
04:51So, I'm going to say demowp for demo Web part. I've got a check box to overwrite it, if it exists.
04:57Then you have some layout options, Full Page, Vertical.
05:00As I select that, it's giving me kind of a preview, a little animated GIF of
05:05that layout, Header with a Left Column and Body;
05:08Header with a Right Column and Body;
05:09Header, Footer, 3 Columns;
05:11Left Column, Header, Footer, Top Row, 3 Columns.
05:14You can click around and do whatever you want.
05:16I'm going to pick a fairly simple one.
05:18Again, it says what Document Library you want to save this in?
05:22Now, if I was going to do quite a few of these, I might create a Document
05:26Library and call it Web pages, but for right now, I'm going to save it in my
05:29Shared Documents library.
05:31There is no real magical difference about where you save it.
05:35Any Web site in SharePoint will allow you to have dozens, or even potentially
05:39hundreds, of document libraries.
05:40You just need to create one and put your stuff in it.
05:44SharePoint is behaving as a container for your content, for your stuff.
05:48So, I now have a Web Part Page.
05:52I've got these Header zones and Left-Column zones.
05:55The zone, again, is the idea of we have a controlled area of where to put a Web part.
05:59We can't just drag on a Web part and drag it up to the top-left and have it
06:03overwrite our logo and our navigation.
06:05It has to go in one of these particular controlled zones.
06:08But of course, this page is brand-new.
06:10There are no Web parts.
06:11So, to fill this out, I'd have to click.
06:14What do I want in the Header?
06:15I have my normal set of Lists and Libraries.
06:18Maybe I'll click on my Movies one and click Add.
06:21I've got my Left Column, I can click Add a Web Part.
06:24I can either select from my List or Libraries, or even come down and pick another Web part.
06:28We've got some whole bunch of different ones here.
06:30Let's take a very straightforward one like the Content Editor Web Part, which
06:34again, is just a way of adding some generic content in there.
06:38In my Body, I'll add a Web part for Announcements and Links, and click Add.
06:44So, I'm starting to build this out and, of course, we can drag these things around.
06:48We can move different parts around, because it is a Web part page.
06:52Once I exit out of Edit mode, yup,
06:54it's completely ugly, but at least you get the picture.
06:57Now, if you wanted to have more control over the zones that you have here, we
07:02can do that, but we're going to have to go into SharePoint Designer.
07:05There is definitely a limited amount of functionality that we can do working in the browser.
07:10But it's still useful to know.
07:12It's useful to know what kind of framework that we actually have.
07:16A Web Part page has several layout options, but is otherwise kind of the same as
07:20your default homepage.
07:21Once again, this page exists, but if you didn't know it was here, you wouldn't
07:26have navigation to it.
07:27There is no automatic navigation generated on the homepage.
07:31If you wanted a link to this on the top or on the left. You're going to have to
07:34go to the page, which, again, if you don't remember where it is, you go to the
07:37Shared Documents library wherever you saved it and click on it itself.
07:41You could right-click and say I want to copy the shortcut.
07:45Then say, go to my Site Actions > Site Settings.
07:49Come to my Quick Launch bar, for example.
07:51Create a new link, paste in the address of that page.
07:56Type the description, My New Web Part Page, and choose whatever heading it goes under.
08:04That's just informational.
08:06It's just what's going to appear on the left-hand side.
08:08Click OK. Click Home.
08:11Then there we have My New Web Part Page, all very dull and very kind of tedious.
08:16Again, if you're coming from a complex Web development background, you may
08:19think, that's what I get to do?
08:21We do have more power, but this is where it starts.
08:24If your focus is indeed on making sites with hundreds or thousands of Web pages,
08:29know that this is obviously not the method for you.
08:31Microsoft never intended anyone to build a site with a thousand pages or even
08:35a hundred this way.
08:37This method is for just adding occasional pages to a collaboration site that's
08:41mostly generated from Lists and Libraries.
08:43If you want a thousand-page Web site with manual control over your
08:47content, you'll get that with MOSS publishing sites, and we'll see that
08:50later in the course.
Collapse this transcript
Using themes in SharePoint
00:00The first question any designer is asked when working with this product, can you
00:05make this Web site look a little less SharePointy?
00:09One of the core issues is you can create 100 team sites that kind of look like
00:14the one we're looking at right now.
00:15You get 100 team sites, all sharing the same basic blue SharePoint look.
00:19If you are a member of several of those sites, it becomes quite difficult to
00:23tell where you are, when everything looks the same.
00:25So, is there a way to quickly and simply change the look of a SharePoint site?
00:29The short answer is yes, but, and it uses something called Themes.
00:33Themes are available out of the box in SharePoint.
00:36I'm going to go to my Site Actions > Site Settings.
00:39I have a section over here called Look and Feel.
00:42In there, I have the Site theme.
00:44You can change the theme if you have a designer permission or above, and there
00:48are several, as I can see, that they're supplied out of the box.
00:51They've even got a little kind of preview to them.
00:54I've got Belltown, Citrus, Classic, Granite, Jet.
00:59You're probably likely to be very unimpressed by most of them, and I quite sympathize.
01:04I'm going to hit the Vintage one and click Apply.
01:07Go back to the Home page. All the themes do look as if they were created by the
01:12same person with about half-an- hour before the product shipped.
01:16They don't substantially change the look and feel of a SharePoint site other
01:21than really just giving a few things a different color.
01:24However, what often happens is a designer will look at some of these themes,
01:29be very unimpressed, and then peg the whole idea of themes as being not all that useful.
01:34What we're going to see a little later is how we can create our own.
01:39Right now, here's the thing to take from this:
01:42that even by looking at some of what we've just done there by hitting Site
01:47Settings, selecting a site theme and clicking Apply, we seem to see that the
01:53color scheme, at least, appears to be separated from the SharePoint layout itself.
01:58That is indeed the case.
01:59A SharePoint theme is really a skinning idea.
02:02Do CSS changes, color changes, font changes.
02:05Even though you don't really see many font changes, you can do them with themes.
02:09Themes can be very useful.
02:11We're going to explore later how to make our own and make them available
02:15to multiple sites.
Collapse this transcript
Installing and using a new site template (.stp) file
00:01So we've lived with the Team Site for a little while here, but obviously, we
00:04have things like Document Workspaces, and Wiki Sites, and Blogs all built-into WSS.
00:10As you've seen, WSS, or if you have MOSS, the WSS part of MOSS, comes with a few
00:16site templates installed out of the box.
00:18If I were to click Create and say that I want to make a new web site, I
00:22have things like the Team Site, the Blank Site, the Document Workspace, the
00:26Wiki Site, the Blog.
00:27I have several Meeting Workspaces.
00:31I'm going to ignore these other tabs here because they are MOSS pieces.
00:36But what most people really see when they're looking at these collaboration
00:39sites is they were kind of expecting a bit more.
00:44You wouldn't be alone expecting a bit more, and you'd be disappointed, because
00:47there aren't any more.
00:49However, what you can do is install more.
00:53You can get new site templates.
00:56Obviously, you can make your own.
00:57You could create a blank site and just start populating it with lists and
01:01libraries, but you can actually download more.
01:04One of the pieces of feedback Microsoft had were we wanted a few more site templates.
01:08In fact, what you can do is I'm just going to go and search for WSS
01:14Application Templates.
01:17If I find that, I've got a couple of links here, Windows SharePoint Services,
01:22so this is just WSS.
01:24You don't need MOSS, though, obviously, if you have MOSS, it will work.
01:27I'm going to click this link, and it says here Application Templates for Windows
01:31SharePoint Services 3.0.
01:32WSS 3.0, which is the 2007 version.
01:37What it actually gives you is 40 extra new sites.
01:42In fact, they're often referred to as the Fantastic 40 in SharePoint.
01:46If you search for that phrase, you'd find these as well.
01:49I'm going to click on this link that says Get all 40 Application Templates.
01:53It's a free download.
01:54It is from Microsoft.
01:55I'm going to click Continue.
01:57I'm going to say, right now, I don't want to register and just download this.
02:00Do you want to save it? Yes, I do.
02:03I'll just save it to my Desktop, and then what?
02:07Well, once it's downloaded, you need to run it.
02:12All this really is is a compressed file, so running it, it's going to say, where
02:17do you want to extract these 40 files to?
02:20Each of these templates comes in its own separate file.
02:23I'm just going to extract them to a location called fab40.
02:28It doesn't exist right now, so it says, do you want to create it? Yup, sure!
02:32But you can extract it anywhere.
02:33I didn't extract it to the Desktop, because I would have covered my Desktop in stuff.
02:37So I'm going to drop in there.
02:40I actually see in here that in my fab40 folder, I have a whole bunch of files now.
02:45They all end in WSP and STP.
02:50If I actually sort them by type, I see I have a bunch of STP files, a couple of
02:55text documents, readme files, and a whole bunch of WSP files.
02:59Really, it's 20 STP files, which are site templates, and 20 WSP files, which are
03:06Web Solution Packages.
03:08What's the difference?
03:09Well, for us, in this particular course, the difference is this:
03:12we can use the STP files, being owners or administrators of a site collection.
03:19To use the WSP files, we have to have farm administration privileges, the really
03:25high godlike privileges, because these need to be installed on the web server.
03:29We need to run command-line prompts, all that kind of stuff.
03:33So I'm going to concentrate on the STP 20 of them.
03:38We've got things like ClassroomManagement, DisputedInvoice,
03:41ManufacturingProcess, SportsLeague.
03:44And the core question is okay, what do we do?
03:45Can we just double-click these?
03:47Well, no, obviously not.
03:48You can't just double-click and run them.
03:50It wouldn't know what to do.
03:51What we have to do is really import them into SharePoint, and I'll show you how to do that.
03:55I'm going to go to the homepage of a top-level site.
03:59What I'm going to go to is its Site Settings.
04:02We've talked about Galleries a couple of times here, the idea of a gallery being
04:06a place you put stuff, so it's visible and viewable to a whole bunch of
04:12locations in the site collection.
04:15I see here I've got a Site templates gallery link.
04:18That means put an STP file here, and it will be visible and usable from all over
04:24this site collection.
04:25So, I'm going to click that.
04:27Right now, it says I'm completely empty because the Site template gallery
04:31doesn't include things like the Team Site and the Document Workspace.
04:34Those are built into SharePoint out of the box.
04:37This is extra stuff.
04:38I'm going to click the Upload Document.
04:40You could also upload multiple ones.
04:42I'm just going to pick one.
04:44I'm going to navigate out to the place that I had extracted it out of my C drive.
04:49I need to pick an STP.
04:50Again, a WSP will not work.
04:52We can't use them that way.
04:54So, let's say that I'm going to bring in a MarketingCampaign.
05:00Click Open, click OK.
05:03It reads a bit of information from that MarketingCampaign.stp.
05:07I've got some notes, obviously, baked into it. I click OK.
05:10It is now in my Site template gallery. Well, so what?
05:14Well, just because it's in the gallery, it doesn't mean we're actually using it.
05:17It just means it's available.
05:19The next step is to make a new site.
05:22Once again, we do that from our Create menu. Click Create.
05:25It's the last option at the lower-right, Sites and Workspaces, click that one.
05:31This page looks the same, but the difference is we have a new tab here called
05:34Custom for our templates.
05:36In this case, it says the Integrated Marketing Campaign Tracking.
05:39So, I'm going to give this site a title just as I have to normally do, Marketing.
05:44Give it a URL.
05:46I'm going to accept all the defaults about using the same permissions and
05:50displaying it on the Quick Launch bar and the Top Link bar, and click Create.
05:55We have a new marketing site with a whole bunch of web parts on it.
05:59It looks like we've got some Libraries and Lists here.
06:03You might have to explore this.
06:04Obviously, there are some demo data in here.
06:06There is a Getting Started Guide located in the Assistance Folder in the Quick Launch bar.
06:11So you could take a look at this stuff.
06:12It has its own instructions.
06:14Once again, the real place to look for what this site is made of is in the View
06:20All Site Content link, where I can see I've got five Document Libraries and four Lists.
06:25It looks like there is some content in these libraries and lists.
06:28If I look at the Items column, it shows me that there is some content in there.
06:32And yes, I might have to explore them, but this is an available option.
06:36So, if you're looking to create certain kind of sites based on functionality,
06:40it's worthwhile taking a look at those WSS Application Templates and see if any
06:44of those will meet your needs.
06:46Now, you need to be at least a site owner of a top-level site to do this.
06:50With the Designer privilege, you're not going to be able to do this.
06:54Once they're uploaded, you can create new sites based on this new template.
06:57Now, STP files, Site Template files, are useful, but they're not magical.
07:02They don't include custom code.
07:03What we're really looking at here, when I look at this site, that seems to have
07:08a whole bunch of stuff to it,
07:09it's as if you started with a regular blank site and you had started to add a
07:14bunch of Lists and a bunch of Libraries and pre-populate them with content
07:19and add items to the List and items to the Libraries and then you saved those changes.
07:24An STP file, a Site Template file, is a set of saved customizations to SharePoint.
07:31But it's repeating things you could have done using the browser if you wanted to spend the time.
07:37The idea is if you'd created say a Team Site, you'd move some web parts around,
07:42you'd customized and changed several Lists and Libraries.
07:45You'd changed the theme.
07:46You'd added some content and then sat back and thought, oh, I wish I could save
07:50all these changes, so I could repeat them elsewhere.
07:52That's what an STP file is.
07:54And that's why you don't need super- high permissions to use them, because you
07:58could have done these things yourself, if you wanted to take the time.
08:02As we'll see later, you can even make your own.
Collapse this transcript
Saving a customized site as a site template
00:01If you've created a site, customized its List and Libraries, changed its theme,
00:05customized the navigation, moved Web parts around, added items to the Lists and
00:09Libraries and then thought,
00:10it would be really useful if I could reuse this site, if I could duplicate it,
00:14if I could do it again and again,
00:16well, you can do this by saving your site as a Site Template.
00:20It's an option that's available for every site in SharePoint.
00:23If you can get to your Site Actions > Site Settings menu, under the Look and
00:28Feel section is a link that says Save Site as Template.
00:33On this page, there are just a few options to give it.
00:35I'm going to give it a file name, and we can notice the first option even says
00:39this is going to end in .STP. We don't even have a choice about that.
00:42Well, the site that I'm working on right now is a benefit site, so I'll say it's benefits.stp.
00:49Don't really mind how descriptive that is because we can then give it a proper
00:53name, a template name.
00:55So, I'll call this a Benefits Site.
00:59I could give it a description. I'm just going to leave that as blank for the
01:01moment, but a description would be useful.
01:04Then here's the interesting option here, a check box for Include Content, which
01:08is defaulting to no.
01:10But if check it, it really means, in each of the Lists and Libraries, if
01:14there is an item added or a document added to the library, do I include it
01:18when I recreate this site?
01:19I'm going to say, yes I do.
01:22What that means is say you've created a Web site with some useful links and
01:27useful documents and some starter templates inside the Document Libraries.
01:32You can choose to include all that in your template, so that they're all
01:36automatically there when it's repeated and when it's created again.
01:39I'm going to click OK.
01:42All this is going to do is package up my changes, the changes I made to the
01:46theme, the way that I moved the Web parts around, the new Lists and Libraries
01:50that I created, the items that I uploaded, wrap it all up in that STP file and
01:56upload it to the Site template gallery.
01:58This is completed successfully.
02:00It even says, do you want to go look at the Site template gallery?
02:02I'm going to do that.
02:04I can see that I not only have my new one there, the Benefits Site, but I also
02:08have the MarketingCampaign one that I had uploaded from the Fabulous 40 or the
02:13Fantastic 40, whatever you prefer.
02:15What does this mean?
02:16Well, it does mean that from now on, I can go to my Site Actions menu inside
02:20this site collection and create a new Web site based on that new site template.
02:25If I hit my Sites and Workspaces option, what I'll see as I have the usual title
02:30and URL, but on my Custom tab, I should now have my Benefits Site that I've just
02:36saved as a template.
02:37So, I'm going to make a new one, I'll call it Second Benefits, just to prove
02:42that it's different.
02:43Of course, it's a new site in SharePoint.
02:45We need to give it a URL, which will be based on whatever its parent URL was.
02:51So, we're in the parent site of the Team Site.
02:53I'm going to just call it second.
02:56I'll accept all the other default options about security and navigation and just click Create.
03:02What it's going to do is take all those changes and repeat them.
03:06So we now have two sites that right now will kind of look exactly the same.
03:10On the Top Link bar, once again, we've got the Home site, which is the Team
03:14Site at the top-level of this site collection and a couple of different sites underneath it.
03:19These may look identical, but they're not the same site.
03:22They're just repeated.
03:24So, any change that I would make to say the Second Benefits Web site, such as
03:29closing the Announcements Web part, if I go back to the Benefits Web site, the
03:34Announcements Web part is still there.
03:35They are independent of each other.
03:37Now, this site template is saved in the Site template gallery of this site collection.
03:43If I wanted it available in another site collection, I'd have to copy it from
03:47one place to another.
03:48Well, how do you do that?
03:50Step one is you go to your Site template gallery where you have that site template.
03:56Site template gallery is available from the top-level site of the site collection.
04:00So, I'm going to the top-level site here, go into my Site Settings into my
04:06Galleries section into the Site templates gallery.
04:08What I can just do here is literally right-click - if I mouse over this
04:14benefits, I can see that my Status bar says this is pointing to a file
04:18called benefits.stp.
04:20I can just right-click, say Save Target As, choose where to save it. I'm going
04:25to save it to my Desktop and just going to call it benefits.stp.
04:30If I take a quick look, just minimizing this here, I can see that it's actually
04:33saved to my Desktop. It's about 230K.
04:36It's quite small. All that is is really the changes that I've made before.
04:41What I could do is go to another site collection's site template gallery and
04:45upload it there just by uploading it the same way I uploaded the
04:48MarketingCampaign one, and then repeat it in a different place.
04:53Once again, Site Templates, whether you make them yourself or you use someone
04:56else's, are a set of saved customizations to a SharePoint site.
05:01In that sense, what they're really doing is repeating things you could have done
05:05through the browser if you wanted to spend the time.
05:08But it's very useful to be able to package these up, include some content, and
05:13repeat them from one place to another, from one site collection to another, from
05:17one site to another.
Collapse this transcript
5. Introduction to SharePoint Designer 2007
The three things you can do with SharePoint Designer 2007
00:01Let's talk about SharePoint Designer itself.
00:03While there are a thousand reasons why you might use SharePoint Server, there are
00:07really three main reasons you'd use SharePoint Designer, and in this course,
00:11we're only interested in one of those reasons.
00:14First and most simply, SharePoint Designer is a pretty good conventional
00:18Web design application.
00:20As it's based on Expression Web, you can use it just to create regular Web sites
00:24that have nothing to do with SharePoint. It's very capable.
00:27It knows XHTML and CSS, but that's not why we are here.
00:31On top of that ability, SharePoint Designer knows and understands SharePoint Server.
00:37You can point SharePoint Designer at an existing SharePoint site, and it will
00:41interrogate the Config and the Content databases and allow you to customize that
00:46site in a way that make sense as a Web developer.
00:49For most Web developers, that's a list of folders and files or at least
00:53the appearance of that.
00:54It will take care of those background details.
00:56It understands the internal plumbing of SharePoint, that it helps you
01:00customize existing pages.
01:01You can even use SharePoint Designer to create new SharePoint content,
01:06things like Lists and Libraries, and even create new SharePoint sites using this program.
01:11Now, the third reason that SharePoint Designer can be used is to create
01:15something called Workflows in a SharePoint site.
01:18Workflows are automated business processes and SharePoint Designer, has a very
01:22powerful wizard tool to let you build these things.
01:25This is not something we're going to cover in this course.
01:28Our focus is on the visual customization of SharePoint sites, which we can
01:32use this program for.
01:34While there are things you can do in SharePoint Designer that can also be done
01:38in the browser like adding Lists and Libraries,
01:40there are many things that cannot be done in the browser that you can do using
01:44this program, significant customization, things beyond themes, for example.
01:48So, the impact of there being three main reasons to use SharePoint Designer
01:54is that you'll find we won't cover every little part of this program as we're
01:58really interested in the parts of it that help us visually customize a SharePoint site.
02:02And we're going to focus on those pieces going forward.
Collapse this transcript
Connecting to an existing SharePoint site
00:01So SharePoint Designer knows SharePoint.
00:03Give it the address of the SharePoint site, and it knows how to talk to it, but
00:06there are a few things to know about opening sites in SharePoint Designer.
00:10First and most basic, like any Web site, you need to know the URL.
00:15Remember that there could be hundreds, or even thousands, of sites on
00:18one SharePoint server.
00:20So the site you're going to open could be anything from yourserver.com to
00:24yourserver.com/sites/something/somethingelse /somethingelse. The URL could be very long.
00:31The key question here is, if you are just going to open this site in a Web
00:35browser, what would you type?
00:37I'm looking at a team site here, where the server I'm using is being called
00:41ldcsharepoint.com/sites/team/default.aspx.
00:48Now I don't need the name of the page itself.
00:52I need the URL of the site without any .aspx.
00:55I'm going to copy that address. I'm now going to open up SharePoint Designer,
00:59which I'll find under the Microsoft Office section, and depending on what I've
01:06done before with this program, I might be trying to open an existing site or a
01:10blank page, like this.
01:11I'm going to go to my File menu and say not Open, but Open Site.
01:15I'm not interested in going to an individual page.
01:18I'm interested in opening a SharePoint site.
01:21So I click Open Site.
01:23It says, what is it?
01:24It may have a list of existing ones.
01:26I'm going to paste in the site name here and click Open.
01:31Now depending on how you have authentication set up by your farm administrators,
01:37you may need to put in some authentication information here.
01:42Because of the way that SharePoint is installed - and again, I don't always have
01:46to do this, but in this case I'm showing you how you may be asked to repeatedly
01:49authenticate, in some cases three times.
01:52What's its doing right now is interrogating the conflict in the content databases.
02:00The reason that I have to authenticate is that SharePoint always cares who I am.
02:06SharePoint Designer doesn't give me anything extra regarding permissions.
02:10If I couldn't have browsed to this site using a Web browser, I certainly can get
02:14to it from SharePoint Designer.
02:15So it's asking for that authentication information to figure out can I look at this site?
02:19Am I allowed to edit it?
02:21Am I allowed to do designer things on it?
02:23What can I do here?
02:24Now I don't have any pages open yet, but my site is open, and it's kind of
02:30returning some folders to me.
02:32Some of the things may look fairly obvious, like I've got a folder called Lists
02:36and a folder called Shared Documents.
02:38Some of them may be a bit less obvious _catalogs, _private, _themes.
02:44We're going to explore those shortly.
02:46Now what about if you had a portal that you wanted to connect to a MOSS
02:50publishing site, for example.
02:52Once again, your key question is, what do you do if you are opening this up in the browser?
02:57In this case, I have ldcsharepoint.com/Pages/Default.aspx.
03:03Now this is an interesting one.
03:05Typically, when you have a pages in your URL, you can ignore that.
03:10The actually address of the site here is just @ldcsharepoint.com. I can prove
03:16that because if I actually went to that address and just pressed Enter, I would go there.
03:20That's the address that works and actually that is the address,
03:24that's the only thing that I need if I wanted to give that to
03:27SharePoint Designer.
03:29Go back here, say File > Open Site, paste in ldcsharepoint.com, click Open.
03:36Once again, you may be asked to do authentication depending on how your farm
03:40administrator has set up your credentials.
03:42I'm doing this here just to kind of show you that.
03:45It often happens that you'll be asked to authenticate a couple of different times.
03:50But once you have proven to SharePoint that you are who you say you are, you should be
03:55able to get that information back, and it will interrogate the databases and
03:59return that information.
04:01I'm now looking at the virtual files and folder structure of a MOSS Publishing site.
04:06We can see there's obviously a lot more stuff going on here, and there is.
04:10Because of this site collection, we have a lot more things to deal with.
04:13But once we're in here, we can kind of forget about the fact that it's always
04:18going against the database, at least for a little while.
04:21There are ways that we can go to our File menu and say, I want to add a new page
04:27or new SharePoint Content, which is the very common way of doing things.
04:30We can also right-click on a blank area here and mess around with opening
04:35things, copying them, renaming them.
04:37I would suggest that you don't rename anything for a while yet.
04:41One other thing that can do if you start clicking around is we can notice that
04:45down towards the bottom here, I have Docs, SearchCenter, SiteDirectory, News
04:50and Reports folders.
04:51Those folders actually represent other SharePoint sites.
04:55They have the little globe icon on them, and they are representing the
04:58subsites, the DocumentCenter subsite, the SearchCenter subsite, the
05:02SiteDirectory subsite, News and Reports.
05:05I can double-click on any of those and actually go into those sites themselves,
05:10I can see that this is showing me the contents of
05:12http://ldcsharepoints.com/Reports/.
05:16What actually happened there is that SharePoint Designer opened that site as a separate window.
05:22I now have multiple copies of SharePoint Designer actually open with
05:25different sites in them.
05:27Sometimes that can get a little annoying, so I'll show you shortly how to
05:30change a couple of preferences if you don't want multiple copies of SharePoint
05:33Designer open all the time.
05:35Right now, the core power of SharePoint Designer is primarily in its ability to
05:40look inside the SharePoint Content database and figure out there's a virtual
05:44folder and file structure to be able to show it you in a way that more
05:47approximates regular Web site structure.
05:51As we go forward, we'll go much deeper into these different structures and
05:54these different folders.
05:55But for now, you need to know that to open a site in SharePoint, the URL is
06:00all you need.
Collapse this transcript
Exploring the SharePoint Designer interface
00:01So I have SharePoint Designer open with a very basic team site open inside it.
00:06Like a lot of applications, SharePoint Designer has a workspace that's divided
00:09into different panels, or panes
00:12to deal with things you can do in the application, like applying styles or
00:15working with data or, in our case, working with Web parts.
00:19SharePoint Designer calls its panels Task Panes, and they are available from
00:22the Task Panes menu.
00:24They are split into groups here, which is nothing more important than where they appear.
00:28So if I select the Navigation Task pane, it will appear on the top-left.
00:32If I select the CSS Properties, it will appear on the bottom-left and so on as I
00:37turn them on or off.
00:40As you might expect, these Tasks Panes themselves can be detached.
00:44They can be dragged around and moved around.
00:46You can rearrange them.
00:47If you prefer to have an alternate layout, you can quite easily do that, docking
00:52them to the side, having them detached.
00:54If you make a mistake with that and you kind of messed the whole layout up, the
00:58last option on the Task Panes menu is Reset Workspace Layout, which takes it
01:04back to the default when it was installed.
01:06There are also toolbars, which are available from the View menu.
01:10You have several toolbars:
01:11Standard, Formatting, Common, Master Page, Pictures.
01:15I'm not going to really explore these beyond what we'll naturally see as we go
01:19through the program, but feel free to explore these too.
01:22Sometimes there is a bit of crossover between what you expect on a Task
01:26Pane versus a toolbar.
01:28But at the start, you'll almost certainly be more interested in the Task Panes
01:32than you will on the toolbars.
01:34Now when SharePoint Designer is installed out of the box, there are some options
01:37set that personally I find a little annoying.
01:40I'm going to show you what I like to immediately change and then show you some
01:43other cool things you can do along the way.
01:45I'm going to go to my Tools menu and then down to a couple of options.
01:49I have options for Application and options for the Editor for when I'm
01:53editing an individual page.
01:55In my Application options, one of the things I like to uncheck is the default
01:59option to Open the last Web site automatically when SharePoint Designer starts.
02:04Because I work on a lot of different SharePoint sites, I want to choose that
02:07myself, that's up to you, and then I'm going to click on Tools, come down to
02:11Page Editor options, and I'm going to select Word wrap, simply because I don't
02:17have a huge workspace to work with here.
02:20So I want to make sure that I'm wrapping the code when I'm looking and editing my pages.
02:25And because we have this Web site opened, but we don't particularly have an
02:28individual page or a file open,
02:30we're kind of seeing the same thing in the folder list as we are on the Web
02:34site, and that's just natural.
02:35It's the way it's going to work.
02:37To open an individual page, not surprisingly, you just find say your page.
02:41We've only got one here right now, the default.aspx, which is our Home page, has
02:45the little home icon.
02:47When I double-click it, it will open up in the central section and sometimes
02:51these pages can take awhile because SharePoint is fetching information from the
02:56databases behind the scenes.
02:58It's not just opening up one simple file.
03:01It's actually showing a lot of things going on.
03:02And we're going to explore this page and all the things we can do on it in
03:07the next movie.
Collapse this transcript
Using the Code and Design views
00:01Some Web Developers like to edit raw code. Some want to avoid it as much as possible.
00:06Like many Web Development tools, when you have a page open in SharePoint
00:10Designer you have the option of staying all visual in a WYSIWYG, what you see is
00:14what you get view, being all code, just seeing the behind the scenes HTML and
00:19ASP.net code that there is, or a mixture of the two, what SharePoint
00:23Designer calls Split View.
00:25I find that in SharePoint Designer, you'll often want to switch between them.
00:29Some of the great drag and drop capabilities are best in the WYSIWYG view,
00:33whereas other things you'll need the accuracy of directly working with the code.
00:38You can actually use the Ctrl and Page Down button, or Ctrl and Page Up to just
00:44toggle through those three different views: All Visual, All Code and the Split.
00:49Now for those of you who are used to working with very well structured XHTML
00:53and CSS, you might be looking the code that SharePoint generates and being quiet
00:59disappointed with it.
01:00It certainly looks very old school, and it is.
01:03There is a lot of nested tables that you're going to have to live with, and
01:06that's one of the reasons why sometimes you'll have to live in the code itself
01:10to get the accuracy that you need.
01:12There's a couple of things worth noting. First of all is when you are selecting
01:18different parts of the page in the WYSIWYG view, the corresponding part will be
01:23highlighted in the Code View. If you need to change something about that, that
01:28can be very helpful.
01:29Another part is that when you have a certain element selected, and you want to
01:33see exactly what this is contained inside. Is this inside a Table?
01:37Is it inside a Div? What's it in?
01:40Well, if you have say an element selected, you can take a look up here at this
01:45tag hierarchy, which is actually going to show you what is the current element
01:49and what are the parent elements of that?
01:51In this case, I can see on a table cell inside a table row, inside a table,
01:56inside another cell, inside another Row, inside another table and so on.
02:00And actually by mousing around these, you can actually choose to select the
02:04parent tag or select the contents of the entire element,
02:08very useful when it comes time to editing a lot of your pages and grabbing the
02:12right piece. But there's certainly no getting past the fact that there's a lot
02:17of code generated by SharePoint that we may or may not want to change.
02:22You see a lot of things like ContentPlaceHolders.
02:24We're going to get into those a little later on in the course.
02:28If you were to make a change to this file, whether it's in the Code View or the
02:32Design View or the Split View, as soon as you make the change, you're going to
02:35notice that the tab up here that currently says default.aspx*
02:39has the asterisk after it.
02:41This is common in a few applications, but if you haven't come across it, it
02:44simply means that I've changed this file, and it's detected the file has changed
02:48and I have not saved that change yet.
02:51And you'll find that when you have multiple pages open, you'll have multiple
02:55tabs along the top, and it's very easy to scan and see which ones have been
02:58changed and which ones haven't. Couple of other pieces to look at.
03:02We have a Status Bar down at the bottom here that has things like Visual Aids,
03:06and this is an interesting piece to SharePoint Designer and in fact, I'm going
03:09to just double-click it quiet quickly, change it from on to off.
03:14Let me change that so you see the Design View.
03:17It's very easy to see what's actually happening, just switching them between on and off.
03:21But it seems to be an awful lot of difference between the two.
03:24In fact, when you right-click this area of Visual Aids, it can actually tell you
03:28what it's showing, what it's hiding.
03:30I'm turning Visual Aids on, I'll click Show, and then when I right-click it,
03:34I can see that what its actually trying to highlight in the Design View is
03:37yes, it's trying to show visible borders and empty containers and margins and padding.
03:42Really, what it's trying to do that is make those invisible pieces selectable,
03:46so I can manipulate them.
03:48It may be worthwhile. You may have to turn then on and off as you're working with the
03:51design to see actually what's happening there.
03:54Now as you click around some of the options in SharePoint Designer, you might
03:57find things under say the View menu where you got the Page Size here.
04:01You can actually select from multiple different page sizes.
04:05Now depending on what you're doing, this may or may not be all that useful with SharePoint.
04:09If I come down to a small one, it shows kind of a fixed size thing and how
04:14much am I going to see?
04:16This is really just trying to emulate a smaller browser window, but it's
04:18probably of more use if you were building Fixed Size page Layout and SharePoint
04:22unfortunately does not really like to be created as a fixed sized layout.
04:26We're going to explore a lot of this as we go on.
04:29So I'm going back to my current page size.
04:32Although you do have to work with some ugly pre-created code in SharePoint,
04:36you'll actually find that by kind of a judicious use of the Split-View and by
04:40using the Tag hierarchy of the elements up at the top here,
04:44you'll be able to stay very clean most of the time.
Collapse this transcript
Unghosting and reghosting a site
00:01When you have SharePoint Designer connected to a typical SharePoint Site, you'll
00:04see something like this, folders and files.
00:07You can click around, jump into folders and double-click pages to open them.
00:12But always remember, this is really smoke and mirrors.
00:14This is an illusion.
00:15These files and folders don't exist on the SharePoint server.
00:19You're really connecting to a database.
00:21I'm going to open up this homepage here, and it's taking a few seconds to load
00:26in the information, and the reason for that is it's not opening a single file.
00:30It's making multiple calls to the database to see what actually is this?
00:35And what it's asking the database is what is default.aspx for this site?
00:39And the database is looking up its own information and saying, oh, it's a Team
00:43Site, and this is what the Homepage looks like, and it's using a shared
00:47definition of what a homepage for a Team Site looks like and then adding in
00:51some changes to it.
00:53This is a good thing.
00:54What it means is you can create hundreds or thousands of Web sites created off
00:59the same base shared definition.
01:01But what happens if I want to change it?
01:04Let's say, for example, that I'm going in here and I'm wanting to add a little
01:09bit of information myself.
01:10Well, I can do something very simple.
01:12I'm just going to click in a blank area and just to prove that I can make a
01:16change and put in just the letter x. Now it immediately changes up here to an
01:21asterisk at the top to say, yup, this file has been changed but not saved.
01:25I am going to close it.
01:28It's going say, do you want to save changes to your file? Yes I do.
01:31I click Yes. That's not it.
01:34It's immediately going to pop up with another dialog box that's actually going
01:37to say, Saving your changes will customize a page from the site definition.
01:42Are you sure you want to do this?
01:44What that really means is you've changed something about this Homepage, that it's
01:49not now sharing the definition with a whole bunch of other sites.
01:53I'm going to say, Yes I do.
01:55It's perfectly valid for you to say that.
01:57That's not an error message.
01:58It's just reminding you that you're actually customizing this page.
02:02Up until this point, it was using the shared definition of that Homepage.
02:07It was finding your unique data and adding it in, but it was based on a shared
02:11definition with a whole bunch of other sites.
02:13Now I've got this blue icon with the eye symbol in it, and that's actually
02:19telling me that this page has been customized from the base definition shared by all team sites.
02:25Now a little quick history note, because you'll sometimes hear these terms.
02:29In previous versions of SharePoint, they used to talk about pages being
02:33ghosted and unghosted.
02:34Ghosted meant it was still sharing the same definition and unghosted meant it
02:39had been customized.
02:41And in the old version of SharePoint, unghosting or customizing a page was a bad thing to do.
02:46It wasn't very good for performance.
02:48These days we don't really mind.
02:50So it's not a bad thing to have it customized, but you do want to know when
02:54you have customized it.
02:55Now if all I'd done was make that really simple change and say, Oh, I didn't
02:59really need to do that,
03:00I could go back in, open this page, find that change that I'd made and think,
03:07okay, I'm going to remove that and surely I'm taking that back to the way it was.
03:10Well, I save those changes.
03:13It doesn't give me a second error message because I've already customized this.
03:16But even though I'm back to what the original definition was, it doesn't know that.
03:20It's saying, no, as far as I'm concerned, you're still customized.
03:23If I wanted to revert back to the original, I could right-click this, and I've
03:28got an option that says, Reset to Site Definition.
03:31I click that, and it's going to say, Resetting to the site definition will
03:35replace the content of this with the original contents from the site definition.
03:39A backup copy will be created.
03:41Do you want to do this?
03:42I'm going to say Yes.
03:44Now I'm going to open up this page again, and we were really back to the way we were before,
03:48even though you don't see a lot of changes. What I'm going to do is open this up
03:52in the browser because I do want to show you something impactful here.
03:56I'm going to go to that Team Site that I just customized.
03:59It doesn't mean reset the site.
04:02It didn't change anything.
04:04I still have my New Navigation options, I have my Custom Movie List that I had
04:08created, and even if I'd added some Web parts, those are still regarded as
04:13changes that come after the base page from the Site Definition.
04:17So it's not a bad thing to revert back to a Site Definition.
04:21We've still got a fine working site.
04:22You're not resetting the site.
04:24You're just resetting that Homepage.
04:26So bear in mind this course really is all about customization.
04:30It's not a bad thing to customize a SharePoint page.
04:33We're going to have to customize, or unghost, our pages if we want to apply that
04:37cool new design we're looking to do.
Collapse this transcript
6. CSS Files in SharePoint
Finding the CSS files in SharePoint
00:01As a Web developer and designer, you should be very familiar with using CSS,
00:05Cascading Style Sheets, to change the way that a Web site appears.
00:09SharePoint is no different. It uses CSS.
00:11It uses a lot of CSS.
00:14When you're customizing a SharePoint site, for the most part, you want to tap
00:18into what SharePoint is doing and add to it, and not just replace it.
00:21Well, if I was looking at this Web site, I've got a Team Site here, and I wanted
00:26to know what it was doing with CSS,
00:28I might just do something simple first off like View the Source of this page,
00:34and do a search for say CSS, which I can find appearing a couple of times.
00:38I appear to have a link here to a file called core.css.
00:42It's at a path that I may not recognize right now.
00:45We'll talk about that in a second.
00:46If I come down a little further, I can see some inline CSS as well.
00:51This may differ, if you're looking at a Team Site or a Portal or a
00:54document workspace. But going back up, this file is really the key to
00:59everything in SharePoint CSS.
01:02This is the Core CSS file called core.css.
01:07The path here is a little strange.
01:09It looks like it's linking to an _layouts/1033/styles/core.css.
01:16You might think well, where is that?
01:19It's a little odd, the way that it's being generated.
01:21Again, we know that everything in SharePoint is coming from the database.
01:25When you see _layouts in the path, you know that SharePoint is doing something
01:30in the background to deliver this file.
01:33So let me show you something.
01:34What I'm going to do is actually switch over to a Remote Desktop window, which
01:39I have right now, which is actually me accessing the Web Server that SharePoint has installed.
01:45Now you don't need to have access to this, and you may not, depending on your
01:49organization, but I've got a very complex path along here to my Program
01:54Files/Common Files/Microsoft Shared/Web Server Extensions/12.
02:00You'll occasionally hear this path called the 12 Hive, going to this very long
02:05path to the number 12.
02:0612 has to do with the version of SharePoint.
02:09No, there hasn't been 12 versions of SharePoint, but this version of SharePoint
02:13went along with Office 2007, which internally was the Office 12 build, a little
02:19bit of trivia for you there.
02:20So it was SharePoint's 12, effectively.
02:22Now I'm really then looking in this location at the files that SharePoint
02:28installs on the Web Server when it's installed.
02:31So I go into Template, and then into Layouts, and then into 1033, and then into Styles.
02:39Now you might be looking at this going, am I mean to remember this path? Well, no.
02:43You're not.
02:44I've done it often enough that I know where it is, and when you actually do a
02:47lot of SharePoint customization, it may come naturally that it's very easy for
02:51you to find this particular path.
02:52But what I'm trying to show you here is there is a bunch of CSS files.
02:56I'm going to order them by Size, the biggest one being core.css.
03:02What's really happening is this is the shared underlying version of the CSS
03:06file that's going to be shared by every SharePoint site that's going to be used on this machine.
03:11So it could be potentially thousands of SharePoint sites using this one core.css.
03:15A lot of designers might then think, Oh cool, great.
03:18This is where I change it.
03:19I would suggest, absolutely not.
03:21This is not where you change it.
03:22In fact, you never change it here.
03:25You want to know that it exists, because this is going to be reused.
03:29In fact, in your sites, it's typically going to be combined with other CSS files
03:35to kind of create a generated CSS file, of a lot of various things combined,
03:41including, potentially, your own code.
03:43But the actual file does exist on the Web Server, and one of the few times where
03:48it's not immediately in the database, it's actually on the file system.
03:52So I'm coming out of that server and back to our regular machine.
03:58When I'm looking at the code that has been sent back from the Web Server, and it
04:02has this path here, the _layouts/1033/styles path,
04:07it's because this is using that core.css file, but in a lot of cases, it's
04:12combining it with other things.
04:14It's checking to see whether I've made any changes to it, whether I've made any
04:17customizations, and it's delivering a path.
04:20It's really going to be drawing something effectively from the database for us.
04:24Now let me show you a slightly different look.
04:26If I go to a say Collaboration Portal, a MOSS publishing site, and in this one
04:31say, right-click View Source.
04:33I will see a few different CSS files.
04:36I'm still going to have the core.css file being returned, which I'll always
04:41have, but I've also got some extras.
04:43There is an HtmlEditorTableFormats.css. HtmlEditorCustomStyles.css
04:49controls.css, and that's because in MOSS publishing, there is a lot more
04:53things being styled.
04:55So you may find a few more things.
04:57Yes, you'll also then see some inline styles there too.
05:01What's really happening is that during the process of requesting a SharePoint
05:05page, the fact that I have a browser open, I click to link or type the address
05:11of this SharePoint homepage.
05:14It's getting the request on the server.
05:15It's looking up information in the database.
05:18It's combining several CSS files, and it's sending me back this constructed link
05:23in my source that generates what it is that I'm looking at.
05:26That might include things like has it had a theme selected, do we need to add a theme CSS file?
05:32So we typically don't replace any of the provided CSS files that SharePoint has.
05:38We're going to add to them.
05:40Even if we want to change something that's been written in that core.css file,
05:45we won't really change it directly.
05:46We'll simply redefine it, and make sure that our definition comes last, or use
05:51CSS as last in wins idea to provide our own styles.
05:56CSS is everywhere in SharePoint.
05:59It's very easy to assume
06:00we can just change an existing CSS file and be done with it.
06:03As you've seen, the CSS pipeline in SharePoint is complex.
06:07We need to understand where to insert ourselves into it, in order to achieve the
06:11visual results that we want.
Collapse this transcript
Exploring Core.css
00:01There is one CSS file you have to become familiar with, core.css.
00:06It contains about 4000 lines of CSS.
00:08Now you're not going to have to learn this all.
00:10That would take way too long, but you do need to be able to find your way around it.
00:15Now if this was any other Web site, and I needed to look at the CSS for it, I
00:19typically do a right-click View Source, find the link to the CSS file here,
00:24which is here is a pretty long one, maybe Copy that and Paste it into the
00:30address of the site.
00:31I've got a couple of missing characters.
00:37I'm going to just Save this to my Desktop, and click Open.
00:42Typically, what would happen?
00:43Then it was open up in SharePoint Designer as being the default editor for CSS files.
00:48You may have a different default editor for CSS files, which is fine.
00:52But I'm looking right now at a completely offline saved copy of the CSS.
00:57This has no connection anymore to any SharePoint site, but it would allow me
01:01to kind of take a look through this and see that yes, there is indeed a lot of stuff.
01:05There are 4300 lines of CSS here.
01:10There is some fairly complex CSS being done in this file.
01:15Now again, you don't have to learn everything that's going on here, but we will
01:19need to explore certain parts of this.
01:21So if you just wanted to take a look, this is one way of having your own copy.
01:25And that actually does come in handy sometimes, just having a quick copy of
01:28core.css that you can pull from, because you don't have access to the Web
01:33Server as a general rule.
01:34I'm going to close that.
01:36But if I have a SharePoint site open, and I'm looking at a particular Web page,
01:42I do have the pane called Apply Styles.
01:44Well, I have two Styles panes here, I've got the Manage Styles and Apply Styles.
01:49These are actually showing me all the CSS classes, for the most part, that are
01:55being contained in core.css.
01:58There are hundreds of them, and it's very difficult to find which ones you
02:03should be playing with.
02:05Sometimes you can get a good kind of guess as to what they're representing.
02:09We've got a class here called .ms- pagebottommargin, pagebottommarginleft,
02:15pagebottommarginright, bodyareapagemargin, but sometimes they're a bit more obscure.
02:22Maybe I don't know what vh-icon is or inputformdescription and where that
02:27would be changing things.
02:28We'll see a little later how we can find out exactly what styles are being
02:31applied to what parts of our page.
02:33But this is showing me some of the CSS Styles, and downloading it
02:38directly is showing me that.
02:40What I often hear is people expecting to be able to browse through the Folder
02:44List of their SharePoint site, and find their CSS files.
02:47After all, that's the way it would work if you're editing a "normal site," but you
02:52won't find it here, at least not for awhile.
02:55The way that you could do this is this.
02:57Let's say, I pick one of the Styles that's defined in core.css, and you might be
03:03asking how do I know it's from core.css?
03:06Well, if I come all the way up to the top, it's actually showing me that these
03:10are inside the core.css file.
03:13If I minimize that, it's really telling me that this is an inline style defined
03:18on this current page, but otherwise everything is coming from core.css.
03:22So if I were to say, I'm going to select one of these.
03:25I'm going to pretty much select one at random like the toolbarItem, and
03:29click the dropdown,
03:31I have some options here Apply the Style, a New Style, Modify the Style, Rename
03:35it, Delete it or Go To Code, which is an interesting one here.
03:39I'm going to click Go To Code.
03:41I can see that what it's done here is open up core.css, and it's actually moved
03:45it to the point that I want it to be, the .ms-toolbarItem CSS style.
03:50Now the question might be, well, if it wasn't coming from our Folder List,
03:54where is it coming from?
03:55Well again, SharePoint Designer is kind of being smart.
03:58It's reading in the database and going okay, I need to pull that information out.
04:02Here is where it becomes interesting.
04:04If I make a change to anything here, let's say I randomly pick something like
04:09the .ms-menutoolbar and I change this font-size to 10 points.
04:13Then I say I'm going to Save this.
04:15Do I want to save these changes? Yeah, sure!
04:18Notice it's that constructed path right now, and say Yes, and it's giving me a Warning.
04:23You're about to customize a SharePoint stylesheet.
04:25Do you want to do this?
04:26I'm going to say Yes, but while I'm doing this, have a little look over here.
04:30I've got a blank area of this Folder List under default.aspx.
04:35As I click Yes, what it's doing is detaching core.css from the shared
04:42underlying definition of it.
04:43Now it's completely making a separate copy, just for this Web site, and putting
04:48it in this folder called _styles, and then giving me the little icon that says,
04:53letting you know, or at least reminding you this is customized from the
04:57underlying base site definition.
05:00So, if I make that change to core.css, I am not changing core.css for everybody.
05:07I'm just changing it for me, just for my site, just here.
05:11This is not the same as reaching into core.css on the Web Server and making a
05:16physical change, which you wouldn't want to do anyway.
05:18It is customizing it just for this site.
05:21The reason that I really don't like doing this anyway, even though you can, is
05:24core.css is a real pain to work with.
05:28I don't really want to be making my additions and my changes to a file with
05:324300 lines of CSS in.
05:36As a general rule, what you're going to do and what I suggest you do is you
05:39don't change core.css.
05:41It's enough of a mess without you adding to it.
05:43Instead, you're going to create your own CSS files that will override the
05:48ones found in core.css.
05:51We'll see how to do that in the next movie.
Collapse this transcript
Creating a custom CSS file
00:00You might think you can just pull core.css from the picture, but it's really not feasible.
00:05Bear in mind that this core.css file is taking care of a tremendous amount of
00:10stuff that you probably don't want to have to deal with,
00:12things like the dropdown menus and views inside SharePoint, lots of SharePoint
00:17visuals you'll take for granted.
00:18So one way or the other, you're going to have to deal with core.css.
00:22You do often want to replace part of what's there.
00:26Now once again, I don't recommend you touch core.css directly.
00:30You simply take advantage of CSS's natural ability to provide multiple versions of
00:35the same class, that you can redefine a style.
00:39I'm looking at this page right now, and I'm just kind of browsing through
00:42the Apply Styles menu.
00:45I can see that I've got something called .ms-sitetitle.
00:48Now what that actually affects, not surprisingly, is the site title up here.
00:53So I'm going to show you one of the ways you might change this.
00:56I'm going to kind of do this in ascending order of difficulty,
01:00so really simple, quick and dirty stuff to more complex ways of doing it.
01:04We've seen that we can click this little dropdown, and I could say Go To Code,
01:09if I really want to see what that is made of. And I see here that from line 567
01:14to 582, we've got both .ms-sitetitle and .ms-sitetitle a. Both of them are
01:21important, because whether you've clicked it or not, the typical SharePoint Web
01:25site title is a link.
01:27It's an anchor tag.
01:28So the a is really what's being applied here most of the time.
01:31What I'm going to do is I'm going to take both of those and copy them.
01:37I could directly change core.css.
01:40It's kind of up to me if I want to do it.
01:42I don't like doing that, but I could.
01:45I'm gong to show you a very kind of quick and dirty way of adding a CSS file.
01:48This is in a WSS site.
01:50MOSS publishing sites have a more suggested place to put it.
01:53We don't really have anywhere obvious to put our own custom styles.
01:57So I'm going to use my mouse and kind of just right-click in a blank area and
02:01say give me a New > CSS file.
02:03I call it custom.css.
02:05It's just at the root of my site.
02:07I'm going to open that guy. Paste in the complete class definitions, which I try
02:13and get in the habit of doing, because even though I may only want to change
02:16one thing, such as the font-size,
02:18remember that with CSS, if it's been defined once in core.css, and I want to
02:23redefine it, I need to pick all of the styles and all of the different selective
02:28pieces that I want to change.
02:30So I'm going to copy the whole thing.
02:31It's just a habit I like getting into.
02:33I'm going to just change, hopefully for the purposes of making this obvious, the
02:37font to 22 points here.
02:40I'm going to save custom.css.
02:42Now right now, I have not changed core.css, but I do have this custom.css file.
02:48The question is, well, so what?
02:50I mean really, what now?
02:52What can I actually do with this?
02:54Well, one very quick way you can do it is actually just grab my custom.css file,
02:59and just drag it over somewhere into the page.
03:01You just really need to drop it somewhere where you don't get the not allowed sign.
03:05It doesn't really matter.
03:06Now it might look a little silly to be dropping it into a visible part of the
03:10page, but when I let go, I can actually instantly tell it seemed to get applied
03:14because my Team Site that I had change the style of has just jumped up and
03:19doubled in size and the fonts.
03:21If I actually go into my Code View, and go up towards the top, coming down a
03:26little bit, I can see that it has added a link here to my custom.css.
03:32Now to make no mistake about this,
03:34this is a very quick, and not all that elegant way of doing it, but it would work
03:39for this particular page.
03:40Of course, what I could do is also have copied in that style and put them in as inline styles.
03:47I'll just undo that, because there is a section of inline styles in your
03:51typical WSS homepage.
03:53So it could have done it there, but I'm a big fan of doing external style sheets.
03:58But at the moment, we have limitations.
04:00This new style would only affect the homepage of this particular site.
04:04It wouldn't affect any of the other pages, any of the entry pages, any of the
04:08view pages, nothing else, and that leads us into a key question of where should
04:13you put the custom.css, which we'll see shortly.
04:17Now switching back to my Design View, so that I can make my Styles Pane appear,
04:22I can understand if you may be tempted to say well, what's really the problem
04:25with say, selecting one of these and then saying Modify Style, which will bring
04:30me up this little wizard menu where I can actually select from a selection of
04:35font sizes and fonts?
04:37It's showing the highlighted ones, which are any of that have been changed from the default.
04:41Making a change to it that way is changing the core.css file.
04:46I can see that from the Asterisk there.
04:48Once again, and I'm kind of repeating this process,
04:51if I then close this file down and say, Save changes, it's going to say, yep,
04:55you're going to customize this.
04:56Do you want to do this?
04:57I'm going to say Yes.
04:59It's immediately going to create this new _styles folder, and put in core.css
05:03customized from the underlying site definition.
05:06I don't see that icon, obviously, in my own custom.css, because that wasn't in the
05:11basic site definition.
05:13That is custom to begin with.
05:15But I'm not a big fan of changing core.css.
05:18even though it's very tempting to do it very quickly for one or two changes.
05:22But you'll find that if you want to do substantial changes, trying to edit and
05:25keep track of all the 4000 lines in core.css
05:28is going to be very, very time- consuming, and it's much better to
05:31create your own.
Collapse this transcript
Saving custom CSS for accessibility
00:01If you are going to make your own CSS file, and you'll probably need to, the
00:05question is where does it go?
00:06Now that might sound like a simple situation, but it really isn't. Your first
00:10question should, in fact, be how many places, meaning how many pages and how
00:14many sites, do I want to use this?
00:17If your situation is that you just want a style for one page and one site, well,
00:22then you have one answer.
00:23If you say you want to change a style that affects every page and every site
00:27and every site collection, well, that's a quite a different thing.
00:31Now with something like a basic WSS site,
00:34I've just manually created a custom.css file at the root of the site.
00:39I've dragged and dropped it onto my homepage, and that would work for one page,
00:43but it isn't gong to change any of the other pages,
00:45and particularly not the generated pages on the site like my Entry pages, my
00:50List of View pages, my Settings pages, anything like that.
00:53To change all the generated pages that SharePoint is going to create, we're
00:57going to have to get into master pages, which we will get into very shortly.
01:01Now while I could put this at the root of the site,
01:04there is another place.
01:05I could actually have a Document Library.
01:07There is no real reason why a CSS file couldn't go in say my Shared Documents Library.
01:13I might even create a new SharePoint Document Library to hold my custom.css.
01:18It's not a problem there, and then I can even manage it using the browser in SharePoint.
01:22I could turn versioning on.
01:24I can have multiple versions of my CSS files.
01:26Now what I'm gong to do is actually open up another site in SharePoint
01:30Designer, which is going to be my Portal site, the Collaboration Portal at ldcsharepoint.com.
01:39The reason I'm going to show you this is we've talked about the
01:41Publishing feature before.
01:43One of the things that the Publishing feature does is create a library
01:47called the Style Library.
01:49This is the suggested place for you to put your own custom styles when you are
01:54creating them for a MOSS publishing site.
01:57We even have the capability of having multiple languages.
02:01I've only got English for the US right now.
02:03We've got Core Styles inside there, and a lot of these are the extra styles that
02:08MOSS needs for what it does with its own custom controls and its own areas.
02:13But it's quite common that I might, for example, right here, create a New Folder
02:19called Custom, and I put my own Custom Styles in here.
02:23What that really means is any CSS that I put here is going to be available to
02:29the entire Site Collection.
02:30It's in the Style Library at the root of this Site Collection, and it could be
02:34available anywhere here.
02:36The suggestion is that you do put it under the specific language folder.
02:41Now one question I'm often asked is what if I want to create a custom stylesheet
02:45and want it available everywhere, created server wide,
02:49so any Site and any Page and any Site Collection could see the CSS file?
02:54Well, that would require access actually to the Web Server itself, but you could
02:59end up storing your own CSS file beside the ones on the file system here,
03:04perhaps creating a custom folder here called Custom Styles and linking to that.
03:08It's an unusual way, and you would need to have access to the Web Server to do
03:12it, but it is possible, and that would make it available server wide.
03:16The core question, and we're going to repeat this a few times as we start
03:20creating these custom CSS files,
03:22the core question is not where do I save my CSS? It's where do I save my CSS so it's
03:28only accessible by the sites that need it?
Collapse this transcript
Detecting what CSS styles are being applied
00:00When you're working with CSS in SharePoint here is one of your first challenges.
00:04You are going to look at a page and want to find out what styles are being
00:07applied to one particular link, whether that's the header or one of the tabs or
00:12say the link View AllSite Content here.
00:14Now you might think that you can just open View Source, find the element and
00:19visually look to see what classes, or IDs are being used on it, and that kind of
00:24works a little bit, but it's not always that reliable.
00:27Once again, if you're coming from a background of validating well-structured
00:31XHTML and CSS, you might be very happy with this.
00:34That will too be very reliable.
00:35In SharePoint, not so much.
00:37It's still can be useful.
00:39So if I right-click and say View Source, do a Find for View All Site content,
00:44I can see it here, and I might just take my eyeballs and look around it.
00:49And see it seems to be contained in a div with a class equals
00:53ms-quickLaunch header.
00:55I could take that and find out what's being applied there.
00:58Well how would I do it?
00:59By switching back over into SharePoint Designer, if you don't have a copy
01:04of core.css, which as I've mentioned is a useful thing just to have one lying around.
01:08But if you have, say, the page open in Design View, you will see your Apply Styles menu.
01:14If you go up to the top of that where you see the phrase core.css and just
01:18double-click that, and it should open it up.
01:20And in here I could do a Find on the phrase ms-quicklaunchheader. Jump down.
01:28It's at line 917.
01:30We appear to have quite a few things around it.
01:32Because if you see here we've got a ms-quickLaunch at line 909 and
01:37quicklaunchheader, quicklaunchheader with an anchor tag, quicklaunchheader with
01:41an anchor tag of a hover state.
01:43There's a whole bunch of stuff that could be going on.
01:46And yes, changing these may be completely reliable.
01:49But sometimes you'll also find that because that's been embedded in another div,
01:54or another table tag, you might have multiple styles being applied to it.
01:58So I am going to show you a better way to reliably find where you have to change.
02:02Going back into Internet Explorer here.
02:06Now I'm on Internet Explorer version 8, which has a built-in feature called
02:11the IE Developer tools.
02:13These are available for IE 6 and IE 7, but they are an extra download.
02:17You'd have to go and search for the phrase IE Developer toolbar.
02:21And I am going to show you a couple ways of doing it.
02:24But on an IE 8 I have my page opened, I just hit F12, and it opens up this whole
02:30developer screen here.
02:31Well it doesn't look immediately obvious here, but what I'm doing is I can break
02:35down and open up, and start going through the HTML that the page has generated.
02:40Yes, I am going to have to dropdown a little bit in there, but I can actually say
02:44and find that phrase View AllSite Content.
02:49And it's going to show me in a very structured DOM format, document object model,
02:53of exactly where that is in the HTML,
02:57not only that, but show me over here all the different styles that could be
03:02being applied to it.
03:03So I can see that I have my ms- quicklaunchheader here, which is affecting the
03:07font size of 8 points and the font weight of normal.
03:10And that because it's a link it's also having the Anchor Tag that the color is 003399.
03:17But I can also see things like where's my font family coming from?
03:21Well it's all the way back up here.
03:22That in core.css in the dot ms-nav is a font family of tahoma there.
03:29So this allows me to see where my different styles are actually being applied.
03:33You also have Trace Styles option here, which is actually showing you kind of
03:37the other way round about where the individual piece i9s coming from.
03:41More focusing on the individual things like text alignment, font size, font
03:45family, instead of the actual style names themselves.
03:49So very useful stuff.
03:50You got the Layout option just kind of giving you some hints and reminders on
03:53the box model, that kind of thing.
03:55There's an awful lot you can do with the IE 8 Developer toolbar.
04:01It'll allow you to have a CSS browser, as I can see by clicking this tab here,
04:05so definitely something worth get into grips with if you're going to spend a
04:09lot of time doing this.
04:10If you're not an IE 8 person, you might be aware of the equivalent on the
04:15Firefox browser, which is called Firebug.
04:17If I open up F12, there it kind of splits the screen in two.
04:22The cool thing about this is as I start to expand the different parts of HTML,
04:28when I highlight the different parts of my page, like my table class is
04:32highlighting everything,
04:33but as I step down and expand it, I've got my table body and the
04:37individual table rows.
04:38I can start to identify the different parts of my page itself.
04:42I can perhaps drop down in here into my table row eventually start finding the tables.
04:47Here is where we really get to see kind of the levels of nesting that we have
04:51that were nesting one inside another.
04:53But I'm starting to narrow that down and expand it to the different things that I have.
04:57Again, I do have to drop down, as you can see, several different levels inside that.
05:03There is the quickLaunch bar dropping down even further, QuickLaunchmenu a body
05:09inside that, just a whole bunch of different stuff in here.
05:13Now one of the great things about it is every time you select an element, it
05:17will actually tell you a style area over here and tell you where it's drawing
05:22some of its information from, where its drawing the font family from, the
05:25font size, the line height, where its being inherited from the TD tag
05:29override, the table.ms-nav.
05:32So another way of looking at it. This is a plug-in.
05:35It's a free plug-in for the Firefox browser, and it's available
05:38from getfirebug.com.
05:41Using either of these tools, IE 8 Developer tools or Firebug, you can find
05:47exactly where a particular piece of CSS is affecting your elements.
05:51You want to pick one of these tools and become very, very comfortable using it.
05:55Taking just you own eyeballs to the markup that SharePoint generates is a
05:59recipe for frustration.
Collapse this transcript
7. Customizing WSS Sites
Introducing master pages in WSS
00:00You've seen that most pages on SharePoint site look very similar to each other.
00:05They have got their quick launch navigation on the left.
00:08They have the top link bar.
00:10They have the breadcrumbs and the Search section.
00:13And it's really just the content of the pages that is changing.
00:17This rest of the stuff is staying the same.
00:20That's because all SharePoint sites use something called Master Pages, pages
00:25that define the typical layout of the page in the site.
00:28This is really helpful for us when customizing SharePoint sites, because if
00:33we can change a Master Page, we can instantly affect the layout of every page in that site.
00:39Now, every SharePoint site has its own Master Page.
00:42Every SharePoint site has its own Master Page.
00:46The way that you write them is this.
00:48You are defining just the common structure.
00:52You are saying things like, here is where the navigation is going to go.
00:55Here is where my logo is going to go.
00:57Here is where my Search box is going to go.
00:59And you create and define all that.
01:01You just leave a section of it and say this is my placeholder.
01:06I am going to say that content will go here.
01:09You don't describe what that content is.
01:11You just put a place for it, a placeholder for your content.
01:14Then you team this Master Page up with one or more, potentially hundreds, or even
01:20thousands of content pages.
01:22And they say, on the flipside, A) I'm going to use that Master Page and B) This
01:28is the content that I'm going to provide for that placeholder.
01:31And when somebody actually goes to the page and requests it by typing it into
01:36the browser or clicking a link, these two things will be combined, and the
01:40results will be delivered to the client.
01:43And what that actually means is just by changing the Master Page and not
01:47touching any of your content pages, you can shift your layout around.
01:50Whether for good or for bad, you can change the basic blue to something with
01:54green, and rearrange your quick launch bar.
01:57You can move it from one side to the other, and the content in the middle
02:01will stay the same.
02:02You have an awful lot of power with master pages to change your complete design
02:07without ever worrying about changing the individual pieces of content.
02:10Now one thing to be aware of: Master Pages exists in SharePoint, because
02:16SharePoint was written on a technology called ASP.NET.
02:19And in ASP.NET, Master Pages are often quite simple, including perhaps a logo,
02:24some core navigation, a header and a footer.
02:26And in SharePoint, they are much more complex.
02:28They are bit more complex than what I showed earlier
02:31simply because rather than just having one placeholder for your content,
02:36you need to create your Master Page and say, okay, I'm going to have my
02:40Search bar somewhere.
02:41I'm going to have my navigation somewhere.
02:43I am going to have my logo somewhere.
02:45I am going to have my dropdown menus somewhere, because not just your
02:48content pages, but SharePoint is going to attempt to inject things into your Master Page.
02:54And you have to be aware of that.
02:57And we will see exactly how.
Collapse this transcript
Understanding the placeholders in WSS master pages
00:00So let's explore what's inside an actual master page.
00:03I'm in a fairly typical WSS team site, and I'm going to go into the _catalogs
00:09folder and then into its masterpage folder where I've got default.master that
00:15I'm going to open up.
00:16Now, depending on the kind of site you have, you may see a few different things
00:20here, but any page that ends in .master is, not surprisingly, a master page.
00:25These are not pages that'll ever be directly seen by a user, but they'll be used
00:31to generate hundreds or thousands of other pages.
00:34Now, as I start to look at this, and I am in Code View, I can see there is an
00:38awful lot of stuff in here.
00:39The idea is anything that's defined once in the master page, of course, gets
00:43reused by any page that uses this master page.
00:47And there is a lot of stuff to this.
00:49And I sympathize if you didn't really want to look any further, but we have to.
00:53We have to kind of journey into the depths of the master page in order to understand it.
00:58I am going to go right back to the top here.
01:00Now, I am not trying to teach your ASP.NET here, but you can understand that
01:05several of these initial tags at the top of the page are really instructions to
01:10the ASP.NET, which is really the engine that SharePoint is using to run.
01:14After that, down a few links further, we have these very specialized tags,
01:19things like SharePoint: DelegateControl SharePoint:CssLink.
01:26This, as you might imagine, is going to be replaced with the actual links to
01:30things like core.css and any themes that we're using.
01:35So what's actually there in the master page will never be sent to a user's computer.
01:39These tags are going to be evaluated when this page is requested, and the
01:44results of executing these tags, go and look up the CSS information is going
01:50to be replaced here.
01:51Now, as I start coming down a little further, I am going to start seeing a lot of this stuff,
01:56a thing that says ContentPlaceHolder.
01:59This is an ASP.NET tag, and as we mentioned in the previous movie, the idea of a
02:03ContentPlaceHolder in a master page is we are describing an area that is going
02:09to be filled with something.
02:11We're creating a placeholder that later will have content for it, and you'll
02:15see a lot of these.
02:17There are many, many ContentPlaceHolders as we start going through there.
02:21Some you are going to care about and some you won't.
02:25So you'll see that tag a lot, but just because you don't care about it doesn't
02:30mean you can ignore it.
02:31Let me switch back to Design View, because we'll see a few there too.
02:36This might look a little bit more organized.
02:38As I click around, I am actually going to see kind of a faded little prompt
02:44here, and it's tough to read sometimes, but its saying things like Place Holder
02:49Calendar Navigator, Place Holder Left Nav Bar Top, Place Holder Left Nav Bar.
02:54Over here, I have Place Holder Main, which is one of the more common ones.
02:58But let's say, for example, that you're working with a master page, maybe you're
03:02planning around and editing one.
03:04You are in say a Split View, and you're clicking around and you see that this
03:09area here where the Search box seems to be contained in a asp Content Place Holder.
03:15And you think, you know what I am trying to do is actually get rid of the search box anyway.
03:19I don't want to have people to use it.
03:21So what I'm going to do is delete that.
03:23I don't want that place holder anymore.
03:25I am going to now save that.
03:26I am changing the master page.
03:29So it's going to say you are customizing a page from the site definition.
03:32Do you want to do this, yes I do.
03:34I am detaching from that core shared one.
03:37Now, over here, I have got that little icon to say this page is customized. Okay.
03:42So what happens if I open this up in the browser? There we go, error.
03:46An unexpected error has occurred.
03:48Just because you didn't care about that placeholder, doesn't mean
03:51SharePoint doesn't.
03:52SharePoint really wants to see that search box.
03:56It's trying to find the placeholder.
03:58It hasn't found it, so it's crashed.
04:00I am going to go back here and just undo, Ctrl+Z, undo my changes. Save that again.
04:06Occasionally, we will get this message, and it's often just about the fact that
04:10the page is making a lot of calls back and forth to the database.
04:13I am just going to say Yes, go ahead and continue, and save that again.
04:18Change back over and refresh this page.
04:21And we're back to where we were before.
04:23It's working correctly.
04:25The deal is as we are clicking around, we can actually select the
04:29different placeholders.
04:30And they are sometimes little difficult to grab hold of.
04:33But as we select them, and certainly select the names themselves, we
04:37click somewhere in there,
04:38we can actually find the different placeholder, placeholder page image, clicking
04:42in here, the placeholder title breadcrumb, because a lot of these placeholders
04:47have default contents like the search area.
04:49Now, of course, the key is that you're not just creating a master page.
04:54You are creating new pages based on that master page.
05:00So let's see another perspective of these placeholders.
05:02If I go to the root of my site, what I am going to do is go to my File menu, hit
05:07my New option, and I want to make a new page, but I don't just want to select
05:11the first option. I want to say make a new Create from Master Page.
05:16Select that one, and it's going to look and say Hey!
05:19Your default master page is this one under _catalogs/masterpage/default.master.
05:25Is that the one you want? Yes it is.
05:27I click OK.
05:29Now, I have this untitled_1.aspx page.
05:34If I actually look at the entirety of the code that's there, that's it.
05:38We actually have a new Web page here that has one command.
05:42It may look very complex, but it's really just saying I use default.master, and
05:46until you say otherwise, that's all I'm going to do.
05:49What you have to do to actually provide your own content on this page is you
05:53have to provide content for those placeholders.
05:57If I switch into Design View, we see a lot, and you might think well, where is
06:01all this coming from?
06:02Well, of course, it's coming from the master page.
06:05But in fact, if I click around, you'll see that I don't really get the
06:08opportunity to directly click in here, and directly change things, because I'm
06:13really just highlighting areas that I can't edit.
06:17For creating content, one of the key places for a new page is actually this
06:21guy, PlaceHolderMain.
06:23It even sounds like one on the most important placeholders, and it really is.
06:28However, it's a very common thing that if I say I want to provide content for
06:31PlaceHolderMain, I can't just click here and start typing.
06:35Nothing is happening.
06:36What I have to do with that placeholder selected, is I have this little dropdown
06:41arrow here, and I have to say yes I want to. I am volunteering.
06:45I am providing content for that placeholder.
06:48So I select this option. It says, oh!
06:50You want to create your own custom content here? Well, yes I do.
06:54I select it.
06:55It changes over here to say custom, but now I can actually click inside here and
07:00type in, Here is my custom content.
07:04Now if I switch back to the Split View, or even the Code View, I can actually see
07:09what's actually been added?
07:10Well, it's given a asp:Content tag.
07:14This is directly matching, in the master page, the Place Holder Main
07:20Content Place Holder.
07:22So essentially, this tag is being replaced from the master by the contents of
07:28this tag here, the asp:Content tag, and that's being replaced when this page is requested.
07:34So the entirety of my page can actually have this much code in it, which is
07:39really one little piece of code.
07:42But when we view this page in the browser, it's going to look like the full page
07:47with all the navigation, with the quick launch bar, with the search bar, with
07:51everything that the master page supplies.
07:53The idea, of course, is that when you're working with, or creating these master
07:58pages by providing this amount of structure in your master page, you don't have
08:03to worry about not being able to deliver what you need when it comes time to
08:06create your 10th, or your 100th, or your 1000th page.
Collapse this transcript
Creating a copy of default.master
00:00The best way to create your own master page is to copy one. End of story.
00:05I understand that you think that starting from a blank page,
00:08you can develop your own master page that'll be a lovingly crafted Faberge egg
00:12of XHTML perfection, but you'll probably find that starting with an existing one and
00:16either ripping out or just adding your own content is by far the preferable way
00:21to go if your value your time at all.
00:23There are so many placeholders that you absolutely must have in your master page.
00:28It's much easier to copy one.
00:29So then your first question might actually be, can I just directly
00:34edit default.master?
00:36Well sure you can, though I do recommend copying it, particularly that we are
00:40working with WSS right now.
00:42And that does mean that any change you make to default.master will be instantly
00:47attempted to be used by anybody viewing any page on this Web site.
00:52And that means if you make a simple mistake and just hit Save, you are going to
00:55break the page for everybody else, whereas if you have a copied one, you can
00:59work on that for a while still using default.master.
01:04I'm going to right-click and say Copy and then just right-click the master page
01:09itself and say Paste, and we've got default_copy.master. I can rename that,
01:16perhaps as custom.master.
01:20Now right now, this is not being used.
01:24default.master is still being used.
01:26In fact, I can from SharePoint designer if wanted to switch them, I can
01:29right-click custom.master and say set this guy as the default master page.
01:35I'll do that a little later.
01:37So let's have a look at custom.master.
01:39I'm going to open that up.
01:40Again, you can open it up in Design View, or Code View, or a split of the two.
01:45And this is a copy of the default.master, but it's a copy that I can start now
01:50playing around with and messing around with, and whether I want to start messing
01:53around with it by ripping things out or perhaps even commenting things out,
01:58that's kind of up to me.
01:59If I want to start using, say, HTML comments, I might comment out a bunch of say
02:05the SharePoint:CssLink and SharePoint:Theme, and then save that.
02:12Now, right now, of course, this page, this team site is using the
02:19default.master page.
02:21If I want to try and make it use custom.master, I am going to right-click,
02:24Set as Default Master Page.
02:26It's giving me the warning that I've given you multiple times that if you
02:29change it, you'll break any attached pages that don't have a matching set of
02:34named content region.
02:35That really just means your placeholders need to match up with the different
02:39parts SharePoint that are trying to fill those placeholders.
02:43I'm going to say yes, I want to continue.
02:45Refresh this page, and it's looking very ugly indeed, because what I've really
02:50done in the master page is rip out the typical CSS link.
02:55That does mean there is kind of a problem with how we are going to make this
02:58site workable, things like the dropdown boxes, stuff like that, are not really
03:03working all that well.
03:04No particular surprise.
03:05Some of the JavaScript is still there.
03:08But you can kind of get the impression of just how much core.css is actually
03:12adding to your pages just by default, even before you started change it.
03:17So even though this is a good way to experiment with some of the stuff, you'll
03:20will find that there's very little you can do without having those tags active
03:25in your master page, because you really do need to be bringing in the core CSS files.
03:30But going further on down, of course, what you can start manipulating now
03:34is start to play around with how is the page being presented, how is it being formatted?
03:40If you are used to typical Web development, you are used to finding say your
03:43body tag and immediately putting your own stuff in there. What you want to do
03:48and what you need to do in SharePoint is actually start to put your code after
03:53the form tag and one of the ways you could actually do it is actually see what's
03:57being contained here.
03:58We've got a body tag -
03:59let me split this apart a little bit - the form element, and then inside
04:04that we've got Web part pages and something called the SP for SharePoint Web Part Manager.
04:09Now surprisingly, it's going to be in charge and manage the Web parts on this page.
04:14What's now here at line 31, which because I've split it out it may look a
04:18little different for you, is the actual start of what our page really looks
04:23like with this table here.
04:25Now, of course, if you're more of an XHTML structured kind of person, you might
04:29stop wanting to replace this with divs and have a completely tableless design,
04:34and you could certainly go to town on that and knock yourself out.
04:38One of the ways you might do it is instead of just start replacing the design,
04:42you stop putting your own stuff inside here of say having a div id of
04:47mainSection, and instead of replacing that content, you can then grab some of
04:54the content placeholders in different parts of this say your global navigation,
04:59for example, and sitemap path and actually moving it to a different location.
05:05Particularly when you've got things like the Split View turned on, you can find
05:10that by selecting pieces,
05:12you've got the tag hierarchy here, and one of the things you can do is make sure
05:17that you've selected the entire content placeholder, and start to grab that, cut
05:22it, and perhaps move it up a bit and start to paste it into your own design.
05:27Now, we're going to go a little further with this, obviously, as we go forward,
05:31and you are going to see something called a minimal master page, which is about
05:34as close to a blank slate as you can do.
05:37But this would be one of the ways in which you could just copy, create your own
05:41master page and then start making changes to it and moving things around until
05:45you really get to grips with the necessary placeholders in there.
05:49Remember that with WSS, any change you make is being instantly applied to the site.
05:54So I have just save that and if I flick back over and refresh it, I've got some
05:59interesting kind of behavior obviously happening here that we've got some parts
06:04which are looking a little different because I'm moving them outside the
06:07conventional design.
06:09And one of the things you may want to do is always have a generic master page
06:14ready that if you make an accidental change that really blows it up, you can
06:18just go back to default.master, right- click and say Set as Default Master Page.
06:22Go back over to the site.
06:25Refresh it to make our own comparisons.
06:28So I do suggest always working on a copy of default.master, because it is very
06:33easy to accidentally break these things, but this is how we'd start to create
06:36our own master page and work with it.
Collapse this transcript
Restoring default.master
00:01It's very common that at some point you'll mess up the Master Page that you're working on.
00:05And that's no big deal if you're working on a copy, but if you are directly
00:07changing the Default.master Master Page on the WSS Site, well, if you break the
00:12Master Page, you have broken the site.
00:15So here I'm working with a CustomizeDefault.master.
00:19I can tell it's customized by the blue icon.
00:21Let's say I was starting to rip this page apart.
00:24Well, you'll find that there are some content placeholders that are kind of optional.
00:30I am going to rip out this one here, which is the PlaceHolderGlobalNavigation
00:34Site map, just cut that and Save.
00:39Go back over here to my Team Site and watch this link up here as I refresh the page.
00:43Was there, now, it's gone.
00:46This thing didn't blow up though.
00:48So some things are kind of removable in the sense.
00:51You can do a lot of playing around with these Master Pages.
00:55Let's say I come down a little further, and I'm feeling kind of emboldened by this.
01:00I'm going to grab another placeholder, which is the search area, delete that, click Save.
01:04Again, occasionally, get a message if it hasn't fetched anything back immediately.
01:09Go back over to this Team Site, refresh and we get error.
01:14An unexpected error has occurred, which is a lot worse than an expected error.
01:19And this is causing our entire Web site to break.
01:22Now obviously, what will be a really good thing is if we had multiple copies of this.
01:26But if you have broken something, luckily remember that all our sites are, of
01:30course, built on a basic template.
01:32We can use that to get the original Master Page back.
01:35Now obviously, if I had made a lot of changes to this, what I might first do is
01:40copy them to another file.
01:42Just kind of right-click, copy and paste this file, so I'd at least have my
01:46changes that I've made.
01:47And then after that, just right- click and say Reset to Site Definition.
01:51It's going to remind me that the original contents will be reset.
01:54Is this okay? Sure.
01:57That will be automatically saved.
02:00I refresh the page, and we're back to the way we were.
02:02So it's another reason to develop your Master Page as a separate file.
02:06That way you can compare and contrast and easily use your ability to change from
02:11one to the other to see whether they're working or not.
Collapse this transcript
8. Customizing Sites with WCM
Introducing master pages in WCM
00:00So far, we've been looking at Master Pages in WSS sites, and these are pretty
00:04simple and straightforward.
00:06You're describing the general structure of every page in your SharePoint site.
00:11You are describing the navigation, what goes along the top, where your search
00:15goes, where your dropdown options go.
00:17But you are kind of limited by this one generic piece of content that all
00:22your content pages fill.
00:25However, when you've got a site with the MOSS Publishing Feature turned on, like
00:29a collaboration portal or a publishing portal, all of this is still completely
00:33relevant, but we have more to deal with, and its good stuff.
00:37First is the idea that just having one master page and a thousand content pages
00:42is not quite all the structure you'd ever want to do on a complex site.
00:47You can't just describe a couple of headers and footers and be done.
00:50You want more specific templates for different pages on your site,
00:54things like product pages and buyer pages, location pages.
00:58So a publishing site uses master pages and uses content pages, but it also has
01:03what are called page layouts.
01:05Now, page layouts don't replace master pages.
01:08They are in addition to.
01:10And in fact, all three of these are used together.
01:14A common arrangement would have you create one master page and several page layouts,
01:19a page layout for product pages, a page layout for bio pages and so on.
01:24And what happens is all three of these are combined.
01:27You have your master page that defines your overall structure, your page layout
01:31page that defines the structure of the individual content, and then your content
01:35pages that say what that content actually is.
01:38And what the end benefit is that when you create a page in a publishing site,
01:43you don't just say make me a page, you say make me an article page.
01:47Make me a product page, make me a bio page and have a very controlled structure to that.
01:51Now, publishing sites do add some more work in your design, but it's all about structure.
01:57It's about defining your different pages upfront, and it will save you a lot
02:00of headaches later.
Collapse this transcript
Exploring the master page gallery
00:01SharePoint is really big on this thing it calls a Gallery.
00:04And you'll find a set of galleries under your Site Actions > Site Settings page.
00:09The idea of a Gallery in real life is that you put something in it.
00:12You want it to be on display to a whole bunch of people.
00:15Well, in our case, the content we put in SharePoint galleries is typically
00:20viewable by any site in that Site Collection.
00:22So in our central section here, we have Galleries for Site content types,
00:27Column site templates, List templates, Web Parts, Workflows, and we've got
00:32Master pages and page layouts.
00:34Again, because we are in a MOSS Publishing Site, we will see this Master pages
00:38and page layouts link.
00:40Officially, you always have at least a Master page Gallery.
00:43In a WSS Site, it's not very exciting.
00:46In MOSS, it goes quite a lot deeper.
00:49This is viewing the Master page gallery by using the browser.
00:52And I can immediately see that I even have a whole bunch more Master Pages here.
00:56Anything that ends in .master is indeed a Master Page.
01:01Notice that there are also a lot of .aspx files:
01:05ArticleLeft, ArticleRight, ArticleLinks, DefaultLayout, PageFromDocLayout.
01:11We are going to run into a lot of these as we go.
01:14But these are our page layout files.
01:17These are the ones that come out of the box, but we are going to also be making our own.
01:20Now, if this site is open in SharePoint Designer, you can see the equivalent of
01:25this gallery by going to the _catalogs/masterpage folder.
01:29It's the same content.
01:31We are just seeing it a different way.
01:33And I could select any of these and say double-click BlueTabs.master.
01:38It is actually going to give me something new, and tell me this is under source
01:42control, do you want to check it out?
01:43What they are really is saying is this entire Gallery has versioning turned on
01:48and also requires that the file be checked out before it can be edited.
01:53I could say yes I do.
01:56And now we can start looking at this version of this particular Master Page and
02:00seeing whether this one is usual for us.
02:03The fact that I have to check that out does mean that even if I make the
02:07simplest change, and I am just going to say put a space in there and then save
02:11this file, do you want to save it? Yes I do.
02:14Yes I am customizing it from the site definition. I understand.
02:17I notice that I've got a different icon here, which is showing me that this is
02:21actually checked out.
02:23And if I want to make sure that this is actually now the new version, I'd have
02:27to right-click this file and say Check In.
02:30It's going to ask you you want to check in a minor version or a major version?
02:34This is because N versioning is turned on for this library.
02:38I am going to say Publish a major version.
02:40I think I made a great change that makes it very active, and click OK.
02:45It's going to then pop up with another thing.
02:47This document requires content approval.
02:49Do I want to change or modify its approval status? Yes. I do.
02:53Approval is actually done through the browser.
02:57So it's giving me a prompt here.
02:58In a lot of cases, it will open your browser automatically.
03:01But if it doesn't, what you can do is go back into the browser version of the
03:06gallery, find the file that you were working on,
03:09let me refresh this, so we can see some of the latest changes to it,
03:13and that's this one here, BlueTabs.master.
03:16And I'm going to select the Approve/reject option.
03:20Let's say this was approved, made some changes, click OK.
03:26That might seem a little tedious, but what it's trying to do is making sure
03:30that you are doing a lot of changes to Master Pages, and they don't go live until you say so.
03:35And they certainly even don't go live till someone who is an approver say so.
03:39I can publish and check this in, and approve it because I do have very
03:43high-level privileges on this site.
03:45You may be in a position where someone else has to approve the changes you've
03:48made to your Master Page, and this is because a Master Page gallery is really
03:53a SharePoint document library with Versioning on, with Check In required on,
03:58with Approval required.
04:01For now, just remember that when you make a change to one of these files in a
04:05MOSS Publishing Site, you're making, effectively, a new version of the file.
04:10And that version won't be counted as the official version until you publish it.
Collapse this transcript
Switching master pages
00:01Changing the Master Page that a MOSS Publishing Site uses is pretty simple, but
00:05there are a couple of things to be aware of.
00:07In a MOSS Publishing Site, you have the Master Page option in your Site Settings.
00:11So go to Site Actions > Site Settings > Modify All Site Settings.
00:16And there are two links that will say Master Page in them.
00:19You have got the Master Page and page layouts Gallery, and we saw that earlier.
00:24And that's really what's available for this site.
00:28Whereas you have in the Look and Feel the Master page option, which means
00:31which one do we use?
00:34Anything that's in the Master page Gallery that ends in .master and is published
00:40will be available as an option in our Master page setting.
00:43So I'm going to select that.
00:45And it has got this option here select a Site Master Page, which will be used by
00:50all publishing pages.
00:52Really that's shorthand for - this is the one that you want to change, if you
00:55want to change how this Web site looks.
00:57If I click the dropdown box, I am going to have everything that ended in
01:01.master will be available.
01:02I'm going to select OrangeSingleLevel.master, gives me a little preview of that if I wanted.
01:09I even have an option here to Reset all of my subsites to inherit this Master
01:15Page setting, which is completely up to me.
01:17I am going to say, yes I'll do that.
01:19If I come down a little further, it says you have now got another Master Page
01:24option for these systems Master Page.
01:26Now what does that mean?
01:27Well I'll show you.
01:28I'm going to leave it as it is right now, and I typically do, but I am going to
01:33show you what this means.
01:34The last thing that we have in here, and I always think that this option
01:37should be under some other link in our Site Settings, but this is where we can
01:43specify another CSS URL.
01:47If you have created a CSS file and saved it in a custom folder in your Style
01:52Library, this is the place to put it.
01:55You'd select this radio button, you'd browse to that CSS file, and you'd select it.
02:00You can even indeed select all subsites to use them.
02:03Unfortunately, this is not an option that is available in WSS.
02:08But it's available in a MOSS publishing Site.
02:10It is the best place to select it and put this option.
02:13So really all I have done here is change my Site Master Page.
02:17I am going to click OK.
02:17It doesn't really look like anything is changed as I am looking at my Site Setting page.
02:24But if I go back to my home page of the portal, well things have
02:28certainly changed here.
02:29If I click around, it does look as if this Master Page has forced itself down to
02:35the bottom, yes indeed.
02:36That does seem to be the case.
02:37Now there's an odd behavior where the Document Center in the collaboration
02:42portal out-of-the-box, if you're using it, doesn't appear to accept the changed
02:48Master Page, if you're using one of the built-in ones.
02:50That's because the document senses really kind of its own thing, and it does a
02:54couple of unique pieces.
02:56If you want to change the Master Page for the Document Center, you are going to
02:59have to use SharePoint Designer, and kind of change it manually yourself.
03:03And actually go into the _catalogs/masterpage.
03:06But the rest of them should actually work with that new Master Page.
03:11So there's a couple of kind of questions here about how we are working with this.
03:16If I'm on the home page of the portal, I've still got my Site Actions menu here,
03:21and I go to Site Settings > Modify All Site Settings,
03:25I won't see that new Master Page, and that's because I'm really looking at one
03:30of the behind-the-scenes settings pages.
03:33This is what is meant by having another Master Page.
03:37It is kind of used for all the Layout pages and Site Settings pages, and this is
03:42the one that I don't usually change all that much, because let's face it.
03:46It's tough enough getting to understand where all the options are in
03:49SharePoint without introducing a completely new layout to someone who is
03:53already used to SharePoint.
03:55So changing the Site Master Page means that all the pages presented to your
03:59typical end-users will use that new Master Page, but the internal settings pages
04:04and pages that we used to create content, and manipulate settings in SharePoint
04:08will still look like your classic SharePoint way of doing things.
04:13There is an option for changing it again, back in your Site Actions > Site Settings.
04:18You can select another Master Page, and you could even do one the built-in ones.
04:23But if you're doing a substantially different look, you might want to think
04:27about whether that's necessary or not.
04:29The idea, of course, is that with a MOSS Publishing Site, once the Master Page
04:34has been designed and developed, or even multiple ones, you don't need
04:38SharePoint Designer to actually apply it.
04:40It's just a setting.
04:41And that anybody who can get to this page can change it.
04:44Of course, you are not going to use one of these out-of-the-box Master Page files.
04:49They are just there to show you a couple of options.
04:51You may, however, find them useful to see how some of the different looks were
04:54accomplished in a SharePoint Master Page.
Collapse this transcript
Starting off with a minimal master page
00:01We've seen that the easiest way to create your own master page is to copy an
00:04existing one, because that gives all the placeholder elements that SharePoint is
00:08going to look for along the way.
00:10And if you have a MOSS publishing site, you've got quite a few master pages
00:14you could copy from.
00:15But the problem is that these master pages, let's say, for example,
00:19default.master, is so ugly and so full of convoluted code that the process of
00:24trying to rip out what you don't need, so you can put in your own design,
00:28well that's really painful.
00:30It's possible, but it's painful.
00:32But what else could you do?
00:33Well, you might be tempted to start from scratch, and you kind of can.
00:37You could go to the File menu, create a new piece of SharePoint Content or a New
00:42Page, because one of the options will be a Master Page.
00:46But this, unfortunately, is a problem too, because this master page is a master
00:52page for a generic ASP.NET site.
00:54It's not a master page for SharePoint site.
00:57So it doesn't have all the necessary content placeholders that you need, and it
01:01will be quite a procedure to start going through some of the other master pages
01:05and plucking out of the ones that you think it needs and dropping them in here.
01:09Well, what can we do?
01:11We do have one option that's kind of close to this blank slate idea.
01:15It's called a Minimal Master Page.
01:17It doesn't actually exist in SharePoint out-of the-box and neither does it exist
01:23in SharePoint Designer.
01:24You have to go out to the Web and search for it.
01:27So I am going to search for the phrase minimal master page, and the first
01:33link here is a How to:
01:35Create a Minimal Master Page at msdn.microsoft.com.
01:38It sounds tempting.
01:40The idea of a minimal master page and in this very long article, they are also
01:46giving you this whole block of code, is you want a master page with all the
01:50placeholders you need with the minimum of design.
01:53This is exactly what this is.
01:55In fact, I am going to copy all this code.
01:56There is quite a lot of it that we need.
01:58You can just select it and copy it.
02:00Oh, there is a little link here called Copy Code.
02:02I am going to grab that, Allow access.
02:06Go back over here into SharePoint Designer.
02:08Make sure that I've selected everything in this page.
02:11It could be just an empty page here and paste it in.
02:15This is a minimal master page.
02:18It's basically a bunch of the required tags that SharePoint needs.
02:23And then, several content placeholders, in fact, a whole bunch of them written
02:29there ready to be kind of grabbed and dropped into your own design.
02:32So I am going to save this.
02:35Yes, I want to save some changes, and it's going to ask me where?
02:39Well, it needs to be in the master page gallery, which is under
02:41_catalogs/masterpage.
02:44I am going to call this minimal.master. Click Save.
02:51I should be able to see it.
02:55It's actually down the bottom right now of my masterpage gallery.
03:00I could also, should be able to see it, if I go back to my Portal and go into
03:06my master page gallery through the browser.
03:08I kind of need to do this anyway.
03:10I am going to my Site Settings and going to my master pages gallery, which is at
03:14the bottom of my Galleries level.
03:17I have minimal.master.
03:18This is edited by me.
03:19It's counted as a Draft.
03:21Well, that means it's not going to be usable until you check it in and
03:24publish it and approve it.
03:26So I am going to mouse over, check it in.
03:29It's going to ask what kind of version do you want.
03:31I am going to say the 1.0 published version.
03:34It's reminding me up here:
03:35Items on this list require content approval.
03:38This will not appear in public until approved by someone with
03:41proper permissions.
03:42Luckily, I have proper permissions.
03:45So after checking it in, I can come back down, find minimal.master,
03:49select the Approve/reject option. Call it Approved.
03:53Click OK. Now, what?
03:55Well, that just means that minimal.master is selected as an approved and checked
04:01in master page file in the master page gallery.
04:04So, what? Well, we are still not using it.
04:07For that, I need to go back to my Site Settings.
04:10Go to my Master page option under Look and Feel, and we were in the Master page
04:15option under Galleries.
04:16We now want to say which one do we actually use, select that one.
04:19From the dropdown box, we should have minimal.master and click OK.
04:26Now, go back to the home page.
04:28We've got a error here saying there a Duplicate ContentPlaceHolder "head".
04:32You can occasionally run into this.
04:34It's a little bit of an issue.
04:35I am going to find that minimal.master page and open it up.
04:39You'll occasionally find that SharePoint Designer itself will kind of drop in
04:42this unneeded tag right up at the top.
04:44We've got another content placeholder here for head, which we really didn't need at all.
04:49I am going to save that.
04:50So it is not checked out.
04:53Unfortunately, we are going to have to check it out here.
04:56Depending on how your authentication is set up, you may have to authenticate.
05:00So I am going to right- click it and select Check Out.
05:02It's got the little checkmark saying it's checked out.
05:05Now, I should be able to save this.
05:09Check it back in, publish a major version.
05:13Again, these things that I am doing here could be done in SharePoint Designer or
05:17could be done in the browser.
05:18It requires content approval.
05:22I am going to say no, I don't want to modify it,
05:24although I do have to approve it.
05:26I am going to switch back to the Web site.
05:27It looks like we are actually working with our master page right now.
05:31But just to make sure I've got it all approved, select my minimal.master,
05:38approve it, click OK.
05:42Back to the Portal.
05:44This, right now, is a minimal master page.
05:47You may think well, there is obviously a lot of design going on here.
05:50And that's absolutely true.
05:52But it's about as sparing as you could possibly get.
05:54A lot of the actual layout, and it's obvious there is some layout going on,
05:58because we've got this area over here of Web Parts, and we've got this kind of 70% area here.
06:04Well that's more to do with how the home page is actually designed.
06:07It's got its own layout going on.
06:09But we have this very straightforward welcome message here.
06:12We've got the Site Actions as left-aligned.
06:14The little area telling us where we are is left-aligned.
06:17There is not really a lot going on.
06:19This is about as minimal as we can possibly get.
06:22See that you can get a sense here of what is being generated by SharePoint and
06:26what is obviously being affected by CSS and JavaScript.
06:30We've got dropdown menus.
06:32We've got hover states.
06:33There is obviously a lot of stuff that's not in the master page.
06:36It's in either the CSS or JavaScript files.
06:39Now, it's not that this master page is a great layout. Let's face it.
06:43It's not even a basic layout.
06:46It's the lack of a layout.
06:47I am going back into minimal.master.
06:50We can see this last collection of content placeholders.
06:53They are all gathered together.
06:55And they include things like the placeholder title breadcrumb, the placeholder
07:00mini console, the placeholder calendar navigator.
07:03These are all actually contained inside of what's called an ASP panel. Fine.
07:10So what? Well, we've actually got - this panel has a attribute of visible = "false".
07:16What does that mean?
07:18Any of these placeholders exist, as far as SharePoint is concerned, but anything
07:22that SharePoint does to fill them will not be seen.
07:25The minimal master page may be a better solution and a better starting point for
07:30what you want to do as it will allow you to take the necessary placeholders and
07:34move them around into your own design.
Collapse this transcript
Designing a new overall master page
00:01So it all comes down to this.
00:02You have a design sketched out, and you want to create it in SharePoint.
00:06You might have a Photoshop Comp or some HTML and CSS together.
00:10But by now, your design, however you've done it, it should be SharePoint-aware.
00:14What I mean by that is that you know SharePoint sites have multiple
00:18navigation sections:
00:19a search box, breadcrumbs, and a main body of content.
00:23You may want to move them around, but you should be expecting to use them.
00:26Really, you need your placeholders ready to go.
00:28So I'm looking at a portal with a minimal master page applied.
00:31If I flick over to SharePoint Designer, I have that minimal master page open.
00:37It's actually checked out in my Master page gallery.
00:41That's where I'm going to start and apply my own design.
00:44Now, as I've mentioned, you could take an existing master page and change it.
00:47But that's only going to work if you're not going to make major changes.
00:51It'll be too much work, otherwise.
00:52However, it's very, very useful to have, say, default.master open, even if
00:58you're not expecting to change it, because you may want to copy stuff across.
01:01So I'm going to open default master as well.
01:04I don't need to check it out, because I'm not intending to edit it.
01:09So I've now got my minimal.master and my default.master.
01:12I, obviously, want to be very careful about what I'm doing.
01:15Here is the way I do it when I'm building a master page.
01:18I'm going to start off with a minimal master page with all placeholders. I haven't
01:23changed this at all.
01:24Then I'm going to come down inside the minimal master page.
01:29On line 32 here, I have my opening body tag.
01:33Typically speaking, you'd start putting your own visual stuff after the opening body tag.
01:38In fact, here, because this is an ASP.NET one, we're actually doing it after
01:42the opening form tag.
01:44The way I'm going to do it, rather than try and wrap my design around all the
01:50rest of this stuff, I'm going to drop in my basic design here.
01:56Let me show you what I mean by that.
01:57I'm just going to create a few Divs.
02:00You could do a table-based design here, if that's the way that you like to go.
02:04I'm very fond of doing a CSS tableless design where I can.
02:09I can never get away from tables completely in SharePoint, but I can at least do
02:13my basic structure here.
02:14Let me flesh that out a little more.
02:17I'm going to have a container div, and then inside it, I'm going to have a header.
02:24That's going to have the logo.
02:25It's going to have some breadcrumbs.
02:27It might have the Search box.
02:29It might have my Site Actions menu.
02:31But I know that it's going to have to have a place for my Site Actions menu, so
02:34I'll put another Div inside here for Site Actions.
02:38Of course, these names that I'm using for the ID could be anything you want.
02:43I'm trying to make them descriptive.
02:44I've got a container division.
02:46I've got a header division.
02:47I've got a Site Actions division.
02:49But if you wanted to call them Fred and Joe, that's completely up to you.
02:53After the header, I'm going to do another Div, which will be for my main body of content.
02:58So I'll call it mainContent.
03:01After that, I'll do another Div for my secondaryContent.
03:07Now, you could call these Divs things like left content and right content, but
03:13I'm trying to make it about the meaning of what goes here.
03:16So my Quick Launch navigation, which would usually go in the left, is really
03:20secondary navigational content.
03:22That might go in the left.
03:23It might in the right.
03:24It might go in the bottom.
03:25It might go in the top.
03:26It doesn't really matter.
03:27So this is my very simple breakdown. Now what?
03:31Well, I'm going to just save that for a second here.
03:33What I want to do is create some CSS.
03:38That's going to do some basic styling on these, so that we know these divisions exist.
03:43Well, there is nothing in them right now, so let's just put a couple of pieces
03:46of placeholder text, not SharePoint placeholders, just my own stuff.
03:51I'll put a little phrase here, Main content goes here, Secondary content goes here.
03:57Now, these are Divs, which means if I save this right now and refresh this page
04:05over here, I'm going to see some basic boring stuff, because, of course, a Div
04:10doesn't really do anything visually unless we style it.
04:13So this is where we're going to tie our master page to some new CSS.
04:17I'm going to go back into SharePoint Designer.
04:20I'm going to come down, because I'm in a publishing portal.
04:23I've got a place where my CSS should go, which is in my Style Library.
04:27Now, there are quite a few CSS files here.
04:30The classic place to put your own stuff will be in the Language folder, in our case, en-us.
04:36Yours may be different.
04:37I'm going to make a new folder here, and just call it Custom.
04:42Inside that one, I am going to make a new file.
04:44It would be a CSS file in my Custom folder.
04:47I'll just call that custom.css.
04:50I'm going to open that up.
04:52It's already marked as checked out.
04:54I'm going to write in here some CSS.
04:57Now, I've just pasted this in here rather than have you watch me write it all.
05:01I've got some very simple styles here that we're going to apply to those Divs:
05:05the container div, the header div, the mainContent, secondaryContent, and the siteActions.
05:10I'm putting some background colors on them.
05:13In this case, they're just simple grays, levels of white to black, just to make
05:17them obvious, where these different parts are.
05:20I'm going to save this CSS file.
05:22But right now, this collaboration portal isn't using the CSS file.
05:27So I need to go into the settings of the portal, which I'll find from my Site
05:32Actions > Site Settings > Modify All Site Settings.
05:36If you remember that where you choose the master page is also the place you can
05:40specify an alternate CSS file.
05:42Alternate is not really the word.
05:44It's really an additional CSS file.
05:46So I'm going to specify one.
05:48That's going to be under Style Library, and you can type it in yourself, or as
05:54you can see, you've got a little Browse button here.
05:56I could browse to it.
05:58If you need to navigate through, you've got the little Up icon.
06:01But really what we want to go into is to the Style Library, the en-us folder,
06:08the Custom folder, and the custom.css, or whatever it is you called it.
06:14I can reset all subsites to use this as well, which is fine, click OK. Well, then what?
06:21Again, we won't see the difference on the Settings page, but going back to
06:24the portal, what we should now actually see is those Divs with all the CSS
06:29being applied to them.
06:30That may not be the prettiest thing in the world.
06:32But we do have some content there that we can see:
06:35header content, mainContent goes here.
06:37It looks like it's 80% and centered, up to you, how wide you want to make this
06:42up to you, how you want to style it.
06:44But we've got some areas that we can visually see.
06:47If I go back into SharePoint Designer and look at my minimal master page, let
06:52me go into Split View,
06:53you can actually see we've got that content there too.
06:56Won't always be perfectly reliable here, but it's certainly a useful thing to have.
07:01So what's the next step?
07:02Well, the way I like to do things here is I'm going to look then at my design,
07:07which really doesn't have anything in it to do with SharePoint.
07:10I'm going to start copying things from further down in the code and placing them
07:14then in my own little layout of my Divs.
07:17Now, when you first do this, one of the questions that you may have is I don't
07:21really know what each of these individual pieces are.
07:24Now, that will continue to be an issue, but just to let you know, if I'm in my
07:27Split View and I start selecting some of the elements in code, in a lot of
07:33cases, or in several cases, we'll actually see some kind of hint, that this line
07:3857 for me right now is wssuc:Welcome.
07:43Like many of these elements and these tags inside your master page, this is
07:47never going to be shown to a user.
07:48What it really means is when someone asked for this page, replace this section
07:53with what's called the WSS user control explicit logout,
07:57which is really the welcome message and allowing
07:59people to sign in as another user.
08:01That is going to go up into my head section.
08:04So I am going to cut it and take it up here and paste it in there.
08:08I can get rid of my header content if I want.
08:11I've got a place here for my Site Actions menu.
08:14Well, if I come a little bit further down, I've got something that looks pretty
08:18close to that possibility, PublishingSiteAction:SiteActionmenu. Okay.
08:23That looks like it.
08:24One of the things to be very careful about here is paying attention to whether
08:28this element is self-closing or not.
08:31This one, I don't need an opening and closing element, because it does close at the end of it.
08:35I'm going to grab that guy, cut it, come up here, paste it in, start coming back down.
08:43What else do I have?
08:44I have some what are called AuthoringContainers. Who knows?
08:48Maybe here's a good thing.
08:49I'll grab those guys too, cut those, come up, and place those after
08:55the siteActions menu.
08:57You will find that you're going to have to experiment a little bit about
09:00how this will work.
09:02You'll see what impact this has shortly of using these publishing consoles.
09:06Then we've got our Main content, our Main content goes here.
09:09Well, what does that mean?
09:10That's one of the most straightforward ones.
09:12This is our typical main page content, the PlaceHolderMain content placeholder.
09:18So I'm going to grab that guy and its associated comment and paste it into mainContent.
09:25I'm going to save that right now.
09:29Flip back over to the portal, hit F5 to refresh.
09:33We're starting to actually impact this.
09:35It may still not be the prettiest thing in the world.
09:37But we've got now Site Actions menu now floating over here on the right.
09:41We've got our main content appearing in here.
09:43You might have thought that this area was considered secondary content, but bear
09:48in mind what our main content typically is.
09:50It's like a Web Part page or a Basic page.
09:53The reason all of it is positioned in this main content area is because this is
09:58all content on one page.
10:00It's just split into different Web parts and different zones. Well, what next?
10:05I'm going to go back over into my master page and play around with a few things,
10:11because one of the things we really don't have on a minimal master page is we
10:15don't have the Quick Launch bar.
10:16It's not showing up anywhere.
10:18Now the reason for that is that it's not included in the minimal master page,
10:22because you don't actually need it. It's very useful.
10:26You probably want it, but you don't actually need it.
10:29So what's likely that you're going to do is start to look at the other
10:32placeholders that are in minimal master page and think, well, does this sound
10:37like likely, does this sound like something that I am going to need?
10:40So, for example, we have areas like the PlaceHolderTitleBreadcrumb. Maybe I need it.
10:46Maybe I don't.
10:47We've got the PlaceHolderLeftNavBar.
10:50That's actually all the Quick Launch stuff that you usually see.
10:53However, if I just take that, cut it, come up and paste it into my
11:00secondaryContent area, I'm going to save that, go back over, refresh the page,
11:07doesn't seem to do very much.
11:09That's really because the ContentPlaceHolder is not magical.
11:13Again, the idea of a ContentPlaceHolder in a lot of cases is that something
11:16is going to fill it.
11:18If all we're doing is creating a placeholder and not saying how it gets filled,
11:22in a lot of cases, you're not going to see anything.
11:24So I'm missing a whole bunch of stuff right now.
11:26I don't see search.
11:27I don't see a logo.
11:28I don't see any of that stuff.
11:30I've got to figure out how that works.
11:33That's why, back over in SharePoint Designer, I also have default.master.
11:39So if I'm puzzled about why my PlaceHolderLeftNavBar doesn't seem to do
11:43anything, I might go over to default master and say, well, what does your area
11:47do, when I find that little PlaceHolderLeftNavBar, which I can actually find by
11:51selecting it down here.
11:54This is my PlaceHolderLeftNavBar.
11:56Well, between the opening PlaceHolderLeftNavBar and the closing one, which is
12:01actually quite a lot of stuff, we've got a whole bunch of stuff here, a whole
12:05bunch of stuff, which is in our default.master page.
12:09It's doing a lot of things.
12:10What this is really doing is connecting two things like the
12:13asp:SiteMapDataSource element. A lot of this you really don't want to have to mess with.
12:18We're going to see a little bit about how to affect it later.
12:22But really, what we might be interested then is figuring out what does it do in
12:27a typical default.master page.
12:31We want to really grab hold of that.
12:32In fact, what I'm going to do is grab, and sometimes it's little difficult to get hold of.
12:37I'm going to turn my Visual Aids on. There we go!
12:40I want to select PlaceHolderLeftNavBar, which is going to highlight all of it in my Code View.
12:46I could it manually, but it's sometimes difficult to grab the correct ending one.
12:50I'm going to copy that, come back over to my minimal master and replace my
12:55one line PlaceHolderLeftNavBar with all the stuff from minimal master.
13:00I'm going to save it again.
13:01I'm going to flip back over to my portal, refresh the page. Okay.
13:07It's seems to at least be then pasting in that content.
13:11Yes, obviously, what I need to be doing is looking at core.css and looking at
13:15some of these styles, because I don't want it to just be basic SharePoint blue.
13:19But that stuff is not in the master page.
13:21That's in core.css.
13:22It would be new CSS that I'd need to add.
13:25I'm going to do a couple of more things like that, just to show you how you'd
13:28start to fill out this page.
13:30Next one might be, I'm missing search information.
13:33Well, let me go over to SharePoint Designer and take a look in my default.master.
13:40I might go to the top of the page and do a find on search.
13:45Then I can see that I've got some fairly actual straightforward stuff here.
13:48I've got a PlaceHolderSearchArea, ContentPlaceHolder.
13:52Inside of it, it's got something called a SharePoint:DelegateControl.
13:54Now, I might not even know what that means. That's okay.
13:58What I can do is know that by selecting it, I can even see that in Split View,
14:02it's highlighted here.
14:03Whatever this code is doing is generating my Search box.
14:07I'm going to grab that code, copy it, go back into minimal.master, up into my
14:15header section, let's say, just for convenience's sake, I'm going to paste it in
14:21somewhat generally in my header section.
14:22That's not really going to format it very well.
14:24But again, if I save it, again, sometimes, you'll get this message because
14:28everything hasn't updated yet.
14:29But that should be just fine.
14:32I can even see it in my Split View that it seems to be adding it in there.
14:35I want to see what it really might look like.
14:37We'll flick back over to the browser, refresh the page. Oops!
14:41Now, what it's telling me here is I've got a Duplicate ContentPlaceHolder.
14:45What does that mean?
14:46Well, if I look at the minimal master page and come down, it actually did give
14:52me a ContentPlaceHolder for the PlaceHolderSearchArea.
14:57I just wasn't using it.
14:58It was in the hidden section of the minimal master page.
15:00Now, it by itself, if I just copied and moved that, it wouldn't have done anything.
15:05It would have said, hey! Here is the Search area.
15:07If I didn't provide any content in that placeholder, it wouldn't have done anything.
15:11So I'm going to just delete that out of the lower section, save it again.
15:15This is something you'll have to do quite often.
15:17I jump back over to the Web site.
15:20I can start seeing that, okay, that's how I start to fill it out. Well, what else?
15:24Let's do a couple more things.
15:26Jumping back into minimal master page, what I'd like to do is say, well, how do
15:30I put in say a company logo?
15:32Now, I could do this by simply adding an image and kind of dragging it and
15:38explicitly writing it in my master page with an IMG tag.
15:42There is no problem whatsoever with doing that.
15:44However, SharePoint does have an ability to do it anyway.
15:48We've got a PlaceHolderPageImage ContentPlaceHolder.
15:51I show you what the benefit of doing it this way is.
15:55That placeholder sounds like kind of a logo.
15:57It's not a page image.
15:58That must be the company logo thing.
16:00But bear in mind, it's using the phrase page, there.
16:03That's not really what we're looking for.
16:05Going back in for a little hint into default.master, let's look a little bit
16:09towards the top of the main section of default.master.
16:13There is actually something it has in here called the SharePoint:SiteLogoImage.
16:19That's a tag by itself here.
16:21In fact, I'm going to grab that, taking care that I only need the tag itself.
16:25I don't need that closing TD. Copy that.
16:28Go over into minimal master, up into my header area.
16:36I'm going to do it after the welcome dropdown box and paste that in, save it.
16:42Again, occasionally, you get this message.
16:44Back into the browser, refresh it.
16:47What I'm getting here is that very generic SharePoint logo, which is not
16:53what I'm looking for.
16:54I'd actually like to use my own logo for this.
16:57Well, how do I do that?
16:59Here's the kind of classic way of working with your own images, particularly if
17:02you want them repeated across master pages that can affect dozens, or hundreds, or
17:07even thousands of pages.
17:09What I'm going to do is import that image into my Style Library.
17:13So I've got an Images folder here already with a bunch of stuff in it.
17:17With that folder selected, I'm going to go to my File menu and click Import.
17:22I do have a logo.gif file just out there on my Desktop that I pre-created.
17:28You can use anything you want to create that.
17:30It's a very simple one.
17:32Click Open and click OK, and I load that in.
17:35What you'll see is it's now in the Images folder.
17:38Again, you want to be careful to make sure you have that selected.
17:41That is marked as checked out.
17:42Don't really need to do anything more about it.
17:44So I'm going to check it in as a major version, click OK.
17:48The question is well, so what? What's it actually doing?
17:51Just from the fact of me uploading it to the Images directory doesn't really
17:55mean anything, because after all, SharePoint doesn't know it's there.
17:58But here is the benefit of using the actual SharePoint control.
18:01I can go to my Site Actions menu, go into Site Settings for this.
18:06In my Look and Feel section where I've got a Title, description, and icon, I can select that.
18:13I have a URL for a logo URL.
18:17This, of course, I just uploaded to my Style Library, Images folder, and
18:23it's called logo.gif.
18:26I have a little button here, Click here to test, just to make sure that that works.
18:30Yup, looks okay, and click OK.
18:33That is now included on my master page, and it will be used on any page that
18:37uses this master page across this entire site.
18:41The question might be, on your minimal master page, there may be some of these
18:46previously hidden placeholders that you may not use.
18:49My suggestion is that you start to kind of experiment with these.
18:52You start to bring things like the BodyLeftBorder, the MiniConsole, the
18:56CalendarNavigator, up into legitimate sections of your design where they are not hidden.
19:01Bring them out of this asp:panel with visible = false, because that really
19:06just means hidden section, until ASP panel is closed, and start experimenting with that.
19:12If they don't seem to do anything, find the matching placeholder in default.master
19:17and see if it also has some containing code, if there's something that it's
19:21providing there, which is very likely for most of them.
19:24In this way, you can start to use both the minimal.master page and the
19:28default.master page in combination to start changing and affecting your own
19:32design and being able to bring your own skills to the table.
19:36Yes, you're always going to have to deal with the code that
19:38SharePoint generates.
19:40But a combination of minimal.master page and default.master page, the core CSS,
19:45and your CSS should take you a long, long way.
Collapse this transcript
Creating an accessible master page
00:01So how about accessibility?
00:02Well, out of the box, a SharePoint publishing site is like most Web sites out there.
00:07It's not terrible.
00:08But it's not great either.
00:10And by accessibility, I'm meaning a site that gets as close as it can to the
00:16Web Content Accessibility Guidelines, WCAG, supplied by the World Wide Web Consortium.
00:23These are set of rules, suggestions, guidelines, however you want to phrase
00:27them, for making your Web sites more accessible.
00:30Step one in this deal is stop looking for SharePoint to be magical by itself.
00:34You're meant to be bringing your own skills to the table here.
00:37You will run into the situation
00:39that some behind-the-scene part of SharePoint is going to inject some terrible
00:43markup that's not at all accessible.
00:46And you can rage against this as much as you want.
00:48It will end up happening.
00:50But it doesn't mean the task is pointless.
00:52There's a lot you can do being pragmatic with SharePoint 2007.
00:56You should be using the WCAG as an ideal to strive towards.
01:01Even if you don't make it there, you can get pretty close.
01:03A lot of it's really about the basics.
01:06When you are designing things like master pages, and you're adding an image tag,
01:10make sure you given an Alt tag.
01:12Do that very straightforward stuff.
01:14Use CSS instead of HTML to handle your presentation.
01:18Yes, sometimes SharePoint is going to drop in font tags and table tags.
01:22I have had many clients complaining about how challenging it is that SharePoint
01:26generates ugly code.
01:27But they're not even doing the most basic of things themselves where they
01:31do have influence.
01:32And here is my main point.
01:33When you're doing everything you can with your code to make it accessible,
01:38then complain about what SharePoint is doing. Up until that point, you have work to do.
01:43If you really have to get very, very conscientious about complying with these
01:47guidelines, you may want to check out and go searching for SharePoint compliance tools.
01:52Places like www.hisoftware. com can help you out with this.
01:56These are commercial products that will do it, but there're certainly some
01:59third-party solutions out there.
02:01Depending on your own organization, you may have your own rules and standards
02:05that have to comply with.
02:06Everything that you can do will be helpful.
Collapse this transcript
9. Page Layouts
Introducing content types in SharePoint
00:00There's something called a Content Type in SharePoint, and you will care about these.
00:05You just may not know that yet.
00:07Let's say my wife is reading a book by the fireplace, and I ask her, what are you reading?
00:12Well, she can really annoy me with one answer, a book.
00:17I know it's a book.
00:18What type of book is it?
00:20I'm interested in its type.
00:22SharePoint has the same problem.
00:24If I'm uploading things into SharePoint, all I seem to work with is documents.
00:29But you don't think about your stuff this way.
00:31You don't deal with documents.
00:33You deal with resumes, and specifications, and business plans, and menus and expense forms.
00:39So you can fix this problem in SharePoint by defining Content Types.
00:43Now these are not the same file types. The idea is this.
00:47You might have a file type of a Word document.
00:49Well, this Word document could be a resume, or it could be a legal contract, or a
00:54policy document, or a patient record.
00:57However, if you're immediately thinking, well, okay we've got
01:00one-to-many relationship here.
01:02It's not that simple, because one Content Type could be multiple file types.
01:09You might have a business plan Content Type that has a Word document, or an Excel
01:14spreadsheet of predictions and a PowerPoint presentation.
01:18The power of Content Types is they let you describe what it is that you really have.
01:23So that it's much easier to deal with.
01:25For the things that go in our document libraries, defining Content Types allow
01:28us to say, well, if it's a health record, everything about it gets audited, but
01:33if it's a menu, we don't care.
01:34If it's a new expense form, send an e- mail automatically to someone in HR to
01:39read and approve it.
01:41Now you might be thinking, well, this all sounds like the inner workings of SharePoint.
01:45Why would I care as a designer?
01:47Because Web pages in SharePoint are Content Types.
01:51Every page will be based on the page Content Type.
01:55And at the most basic, all your pages will be based on that one simple type.
02:00But here's the deal.
02:02For a Web site, the equivalent of Content Types that you can think of is this.
02:07You don't just have Web pages.
02:09You have Web pages that represent Products, or Web pages that represent
02:14press releases, and instead of having a generic page, you should have
02:19specialized pages to represent the kind of content that you have because
02:25these are your types of content. So what is it?
02:30Well, really a Content Type is just describing something with its own
02:34information, its own data.
02:36So if you're describing a product, it might have a description and an image and a SKU number.
02:40If it was a press release Content Type, it might have a headline and the body of
02:45text and a release date.
02:47You can describe these things to SharePoint without worrying about what the
02:50page will look like.
02:52But when it comes time to build your pages, SharePoint can actually help you.
02:55It will say you're creating a page to show products.
02:58Well, you'll need a place to put an image, and a place to put a description, and
03:01a place to put the product's SKU.
03:04Content Types can easily be overlooked.
03:07But they should be done early in the process, as early as possible.
03:10As we'll shortly see, they actually really help you when it comes time to
03:14creating your page layouts.
Collapse this transcript
Creating a custom content type
00:01Content Types are powerful, very useful things, and luckily, creating a new
00:05Content Type is very simple.
00:07It's done through the Content Type Gallery in the Site Settings of
00:10your top-level site.
00:12I'm in my portal right now.
00:13If it looks a little different, it's because I've got the simple theme applied.
00:17There's not much color to it.
00:18That doesn't really affect what we do with Content Types.
00:21I'm going to click on the Site Content Types list, and we see a whole bunch of
00:25stuff because you're always using Content Types in SharePoint.
00:28What we're primarily interested in is that even things like Web Part Page,
00:33Master Page and Basic Page are all in there as Content Types.
00:38You're always using Content Types, even if you don't really think about them.
00:41Now you do need to be a Site Collection Administrator to create a Content Type.
00:45And as I've mentioned a couple of times, this is something you want to do as
00:49early as possible in your development of your pages, because you should be
00:54defining Content Types for your different kinds of repeated Web pages.
00:58If you're going to have 100 product pages, you should have a product page Content Type.
01:03If you're going to have 100 biography pages, you should have a biography page Content Type.
01:08Yes, you might create a couple of generic Content Type pages, but if you're
01:12going to have specialized ones, and you know it, you should be building them and
01:15defining them early on.
01:17Now what we're going to do right now in the Content Type Gallery is not build the page.
01:22We're just going to describe it.
01:24That might sound a little vague.
01:26But what it really means is we're just going to describe what data we're
01:29interested in, what metadata.
01:31So I'm going to click the Create button.
01:33And I'm giving it a Name and a Description if I want.
01:37But notice, before I do that that, there's an area here called Parent Content Type.
01:42What you have to be very careful about is that you are creating your own Content
01:46Type based on an existing one.
01:48You don't really have any choice about that.
01:50So if I were to say I know I need a product page, I'm going to create a
01:55Product Page Content Type.
01:58I could give it a Description.
02:00But I want to be very careful about where I'm inheriting from.
02:04And I can even see I've got things like Page Layout Content Types, Publishing
02:08Content Types, List Content Types, Business Intelligence Content Types.
02:14This may look a little different depending at what version of SharePoint
02:17you have installed, but the one that you are wanting is a under Publishing
02:21Content Types and it's Page.
02:24We are going to base our new Content Type, Product Page, on an existing
02:28Content Type of Page.
02:30The reason that we're doing that is if we had to do it from scratch, we'd have
02:33to do a lot of work ourselves to make sure that this Web page is tied into
02:37SharePoint, and SharePoint, and you want to do with it.
02:39We're just going to extend it.
02:40We're going to change it to add some things to it.
02:43Now down here, it says do you want to put this new content type into a group
02:47called Custom Content Types or a New group called my groovy content types?
02:52You can do whatever you want.
02:53I'm going to put it in the group Custom Content Types.
02:56It is just so you can find it later. Well, then what?
03:00Well, what it says in here is you got a new one called Product Page.
03:03It's got a whole bunch of settings.
03:05We're not going to do much with that.
03:06And it's already saying here're your Columns.
03:09You're going to have a Title.
03:10You're going to have a Description, a Start Date, an End Date, a Contact person
03:14an E-mail Address a Name, a Picture, Rollup Image, a place for Audiences.
03:19Well, it seems like an awful lot of stuff for something we haven't manipulated yet.
03:23What we need to do here is understand that these Columns that already exist are
03:28to tie this page into the whole publishing structure so we can already have a
03:33Start Date and an End Date of when this page is active.
03:36We've already got Title and Description.
03:38What I need to add here would be things like well, this is for a product.
03:42So maybe I have a product SKU.
03:44Maybe I've got an area, or a technology, or a group of images.
03:48It's really up to you.
03:49And what you're going to do is Add from existing site columns, or Add from new site column.
03:55This is why, earlier in the course, I went through how to create a site
04:00column because when you create a Content Type, you have to create new columns as site columns.
04:06Now that might sound all a little bit vague, particularly if you haven't done
04:10this a couple of times, just know that the only way that we can add to this
04:14list of data that this page is going to have is to say either Add from existing site columns.
04:20But I haven't defined any ones that I wanted.
04:22So I'm going to say Add from a new site column.
04:25This page looks exactly like the List Column Page or the Site Column Page.
04:30It simply says give it a name and what kind of data is it?
04:33So let's say I'm going to have a Product Stock Keeping Unit (SKU), and it's
04:38going to be a single line of text. Okay.
04:40That's one added.
04:41I'm going to leave all the rest of things as defaults and click OK.
04:45And now we've got that Product SKU in there.
04:48And then I'm going to Add from the new site column, an area. Let's say all of our
04:53products have a particular area that they fall into.
04:56And that's going to be a choice, where we can select from our different choices.
05:01We can actually enter in what we want those choices to be.
05:04And I'm going to say that we have Consumer Area, an Industrial Area and a Military Area.
05:14And click OK. Of course, this information is really up to you.
05:18It's what do you want this to be?
05:20I can then beg this out with more images, more descriptions, notes.
05:24In fact, I'm going to add one more thing here, Add from the new site column.
05:29I'm going to say that this is the Product Information.
05:33And that could be multiple lines of text.
05:35But seeing as I know this is going to be a Web page, and there could be a lot of
05:38content here, I'm looking a little further down because one of my options is
05:42Full HTML content with formatting and constraints for publishing, looks great.
05:48I'm going to do that and click OK.
05:51Notice that even in other columns, you also have things like an Image with
05:56formatting and constraints for publishing, a Hyperlink with formatting and
06:00constraints for publishing.
06:01You could add all of the stuff to your content type because we're then going to
06:05base a page on it, just clicking Back to come out of that.
06:10So I right now have a Content Type, a Description of a Product Page in there,
06:16with all these different homes to it.
06:18Typically, in a real production site, I'm going to spend a lot longer thinking
06:21about exactly what these are going to be.
06:24But keep in mind what we're doing here.
06:25We're doing this as preparation because what we can do is create a Web page
06:30template based on this Content Type.
06:33And the more control, and the more defined that that we do it in this screen
06:37here, the easier we're going to have a time of it when we build our page layouts
06:42and when we build our pages.
Collapse this transcript
Creating a page layout based on a content type
00:01So whether you've created the master Page that defines the overall structure for
00:04every page in your site, or you're just using one of the default ones, of
00:08course, we have this big gaping hole of content that we need to fill.
00:11Now what we're going to do is create a page layout to define templates for the
00:16different content pages in our site.
00:19Again, as a reminder, these are all going to be based on Content Types.
00:24Once we have a Content Type defined, we can create a page layout based on that Content Type.
00:30On a large site, you should have many different page layouts:
00:35a page layout for the product pages, a page layout for staff bio pages, a page
00:40layout for press releases.
00:42And the idea, of course, is that you only go to the trouble of making a page
00:45layout for something specific when you're going to have more than one of
00:48this kind of page.
00:49It is a template idea.
00:51Now it's only in MOSS publishing sites, and it's only if you have Content
00:55Types that you're using. Here's the deal.
00:57When you're on a MOSS publishing site, and you hit your Site Actions menu and
01:02say Create a Page, this will force you to select from a page layout.
01:09You may not know that.
01:10But this is what it's doing.
01:11When it says okay, you want to give this page a name.
01:14Do you want this to be an Article page with the body only, an Article page with
01:17an image on the left, an Article page with an image on the right?
01:20These are all page layouts.
01:22Too many people look at this list and think this is what I do.
01:26This is what SharePoint provides.
01:28This is what I'm meant to use.
01:29I'm meant to use four different kinds of article page for all of my stuff.
01:34But really, the answer is no.
01:35You're not meant to do that.
01:37You're meant to come to this page and see product pages with an image on the
01:41left and a product page with an image on the right, and staff bio pages, and
01:46event pages, and location pages, and what ever else it is you need for your own Web site.
01:52But to actually make those options show up here, we're going to go into
01:56SharePoint Designer and create these page layouts, create these arrangements of
02:02data that people can then come along and fill in.
02:05So I already have, in my Site Actions > Site Settings, my Site Content Types Gallery.
02:12I have my Product Page Content Type defined.
02:15I have to have a Content Type defined before I can create a page layout.
02:19So I'm going to jump over into SharePoint Designer where I do have this Web site
02:24opened, but I don't have any pages opened.
02:26I'm going to say File > New > SharePoint Content.
02:31And what I'm looking for is in the SharePoint Content tab in the SharePoint
02:35Publishing section, I have Page Layout.
02:39And the Description is Create a new page layout based on the default master page
02:44of your site, and the selected content type will be available in the toolbox.
02:47That all sounds a little vague.
02:48What does that mean?
02:49Well, again, we're not replacing the master page.
02:53We're using the master page here.
02:55We're saying, well, forget about the master page. What are the actual different
02:59pieces of content that I have?
03:00Give me a layout for those.
03:02Notice that what it's actually doing in the Options here is it allowing me to
03:06select from some of these Content Types, although it is only allowing me to
03:10select Content Types based on the page parent Content Type.
03:16In our case, I've got my Custom Content Types Group.
03:19I've got my Product Page here. Well, then what?
03:22Well, we're going to give it a Name.
03:25And we're going to give it a Title.
03:27Now the URL Name here needs to be the address of your master page gallery, and
03:32you can actually type it in explicitly, although there is another way of doing this.
03:36One of the things you can do through the browser, and let me just show you this
03:39one, is if I go to my Gallery section and I go to my Master Pages and page layouts
03:45gallery, I can actually create a new Page Layout through the browser here.
03:51And it will be created in the correct place.
03:53So I'm going to select that one.
03:55It's going to ask very similar things that it asks in SharePoint Designer:
03:58What's your Content Type Group?
03:59What is your Content Type Name?
04:01Give it a URL Name.
04:02I'm going to do just productpage.aspx.
04:06This is not the name of a page that any user will ever see.
04:12This is the name of the template.
04:14I'm going to give it a Title of Product Page.
04:18I'm going to leave Description off.
04:20Variations are things you can do to deliver multiple language versions or even
04:25multiple versions for different devices.
04:28This is not something we're going to cover in this class, but just to let you
04:31know, SharePoint does support the idea of having variations, meaning you
04:35should have multiple variations of this page based on different languages and
04:39have different layouts and arrangements of them.
04:41I'm going to click OK.
04:44What that actually means is now in this directory, I have something
04:47called Product Page.
04:49And really, the only thing I can do is Edit this in SharePoint Designer, though
04:54if I was in SharePoint Designer itself, I should be able to now see that through
04:58the _catalogs Master Page Gallery.
05:02I can even see that it's there, and it's officially checked out, which is good.
05:05That's what I want.
05:06So let me double-click on it.
05:07And I can see here that we don't really have an awful lot going on.
05:13The actual code for this page is pretty small.
05:16We've got some of these SharePoint tags up at the top, and then I really have
05:20a couple of ContentPlaceholders, a place for PlaceHolderPageTitle and a place
05:24for PlaceHolderMain. Okay, so what?
05:28What am I going to do?
05:29Well, jumping back into the Design view, we're seeing a lot of this content,
05:34which is really uneditable here, because it's all being drawn from the master page.
05:37This is kind of what I'm interested in, my PlaceHolderMain.
05:42And it's not that I'm actually building a Web page.
05:44I'm building a template for another one.
05:46But the question is what actually goes here?
05:49Well, let's say I was just doing a mockup of this.
05:52I might say, well, what I want to really do is put in a Product Title, Product
05:58SKU, new paragraph would have description goes here.
06:03I might have an image on the right-hand side. It's up to me.
06:06I could add tables.
06:07I could design this.
06:08But what good is this doing?
06:10I mean, what are we actually doing here?
06:12Here's the real benefit of building all these Content Types and these Site
06:17Columns and these Page Layouts, that because we based this Page Layout on a
06:23Content Type, when I look over here in my toolbox,
06:26if your toolbox isn't open, you need to make sure that Task Panes has it selected,
06:30this is stuff you can drag and drop on.
06:32It's regular things like input boxes and radio buttons, and that's not what I'm interested.
06:37I'm going to minimize that.
06:39And come down to this section that says SharePoint Controls, which I have a
06:42whole bunch of things here, Data View Controls, Checkboxes.
06:45I'm not going to be interested in that.
06:47But look at this stuff.
06:48I'm going to open this up a bit more.
06:50I have Content Fields.
06:53And what it's actually doing is you remember those custom columns I made:
06:57Product SKU, Product Information, Area.
07:00I have Page Fields too, which are the classic examples, Title, Target Audiences,
07:06Contact, Content Picture.
07:08What I'm really looking at here is these are the Content Fields that were
07:13defined in page, and these are the ones that I added.
07:16Question is so what?
07:17Well, here's so what.
07:20Instead of having description goes here, I'm going to drag the Product
07:24Information over in here into the page.
07:28Instead of having Product Title up there, I'm going to drag Title and put it over here.
07:34Get rid of my little PlaceHolder, and instead of having SKU, I'm going to drag
07:38my Product SKU and put it in the position that I wanted.
07:42Now what you could also do obviously here is you could select these things and
07:46start adding CSS styles to them whether you're doing that obviously from
07:51core.css, or you've got some custom CSS that you're using.
07:55Again, we could actually start to add in a little new piece of CSS for this if we wanted.
08:00I'm going to leave that right now just to make this very much about creating
08:04the page layout itself.
08:05So I'm going to save that.
08:06It may not be the prettiest thing in the world.
08:09Again, you may be looking at this and going okay, so there's some
08:12PlaceHolder text, big deal.
08:14Well, I'll show you in a second what the actual benefit is.
08:18Remember that we're in a Publishing Site.
08:20And what that means is things need to be published before they're viewable.
08:25So if I look in my Master Page Gallery, of course, there's productpage.aspx is
08:28still regarded as checked out.
08:30I'm going to check it in as a major version, and it's going to remind me that
08:35this document requires content approval.
08:37Again, depending on how your machine is set up, you might automatically open the browser.
08:42I'm going to open it manually.
08:43Go to my Master Page Gallery, because approval has to be done here, find my
08:48productpage.aspx and here I haven't refreshed.
08:51I'm going to refresh this page here so that it comes up with my dropdown menu
08:56saying Approve/reject.
08:57Say that this one has approved, click OK.
09:01So if we've created the Content Type, made the page layout based on the content
09:05type, dragged across in SharePoint Designer, those content type fields, saved
09:10it, published it, approved it. Well, then what?
09:13Well, here's the end result of this.
09:16That when I say, Site Actions > Create Page, I don't just have Article page
09:22with body only, image on the left, image on the right, summary links, I have Product Page.
09:27But I'm going to create a page for a Blue Widget.
09:31And it will say I'm going to store that as Pages/BlueWidget.aspx, meaning I'll
09:35put it in the Pages directory.
09:37Make sure the Product Page is selected, click Create.
09:41And this is the benefit that it gives me.
09:43I have a place for Title automatically filled.
09:46I have a place for the Product SKU. I'll say ABC123.
09:48I have a place for Product Information.
09:52And because I made that in my Content Type, an HTML with full formatting
09:56support, I can hit Edit Content, come up and see a lot of information.
10:02I have a designer that's much better than the basic page one.
10:05I can actually start doing Insert Tables, if I wanted to.
10:10I have ways of doing Hyperlinks.
10:12I have formatting for text.
10:14I have a lot of Rich HTML that I can put in here.
10:16I even have dropdown ability here for selecting different styles for
10:21transforming these little parts like ArticleByLines, ArticleHeadlines, that kind of thing.
10:26And it's all baked in there, part of this publishing infrastructure that I
10:31can just say either Check this In to Share Draft or immediately Publish and
10:34make this available.
10:35And we actually have a controllable structure.
10:39The benefit, of course, is that people can now edit this page and contribute to
10:44without knowing HTML, without having the ability to mess this up, without
10:49putting the title on bottom, and the SKU on the right.
10:51We're controlling how this appears.
10:54And we can go back and edit our page layout to rearrange things to apply styles
10:58to the Product SKU, to apply a different style to the Title.
11:01They have a lot of power and a lot of control over potentially having 10, or a
11:06dozen, or 20 people contributing pages without knowing how to edit HTML.
11:11They don't have to.
11:12They can do it directly in the browser.
Collapse this transcript
Editing a page layout in SharePoint Designer
00:01So we've created the Page Layout file, and we've based it on the content type
00:04we're interested in, in our case the Product Page content type.
00:08But now, after all this time, we're going to see why we created the content type first.
00:13Remember what we're doing here with this Page Layout file.
00:15I'm in SharePoint Designer in my Master Page Gallery.
00:18I'm opening up ProductPage.aspx.
00:21And you really don't see very much because there's not much here to see yet.
00:25If I look at the Split View, I'm going to see the fact that this product page is
00:30actually using the masterpage, which is where this content is coming from.
00:34It's not editable. I can click around and I can't really do anything with it,
00:38because this is currently my Product Page.
00:40This big empty block of PlaceHolderMain, I need to put something in here.
00:44Now let's say I was just putting in some demonstration code, just some basic ideas.
00:50I know that my Product Page uses the title, and a SKU, and an area and a
00:55description or whatever else I need.
00:57So I'm going to just paste in some code here that I had earlier, just some divs.
01:02This is it inside my ContentPlaceHolder.
01:04There is nothing particularly remarkable happening here.
01:08I'm literally just writing a few divs.
01:09It could be paragraph tags, however you'd like to do it, but what I'm doing
01:13is giving them all an id, productTitle, productSKU, productArea,
01:17productInformation.
01:19The reason that I'm doing that is in my CSS, I have some very simple CSS to
01:24give the productTitle a large font, with a color of a dark gray, and a
01:28font-family of Arial.
01:29I've got the productSKU as a smaller font in a lighter color, its text-align
01:34right, and so on, nothing remarkable, classic CSS stuff here.
01:39So back over here in my ProductPage, if I let it refresh itself, I've got some
01:43fairly straightforward stuff. Yes.
01:45It's not the prettiest thing in the world, but it will do.
01:47So our product title, our area, our SKU is positioned on to the right.
01:51We've got the product information.
01:52Well, the question is so what?
01:54This isn't really going to do a lot for us.
01:57Here, finally is where the power of Page Layouts and content types comes to bear.
02:02This is a template. We want to use it multiple times.
02:05Instead of having this handwritten text, Product Title, what we're actually going
02:09to do is go over to a toolbox, and instead of looking at the normal HTML Form
02:15Controls, if you don't have your toolbox open go to your Task Panes and make
02:20sure toolbox is selected, expand the section that says SharePoint Controls.
02:26And then we've got two sets here, Page Fields and Content Fields.
02:29We're interested in both. These are being drawn from our Product Page content type.
02:35We've got the custom information that we added to our content type:
02:39Area, Product Information, Product SKU, that was defined in our content type.
02:45And we've got our Page Fields that we've defined in the base content type of page.
02:49All it sounds a little vague, but let me show what the end result is.
02:52I'm going to grab Title, which I look around, and there is Title.
02:55I'm going to drag that over here.
02:58I'm going to highlight where I said Product SKU because I don't need that
03:01handwritten code. I can drag it across.
03:04Again, I can do it pretty much in either area, just dragging it into the code or
03:08dragging it onto the page.
03:10Grab Area, and I don't need the code that says Area.
03:15And finally, I'm going to grab the Product Information and drag that over into
03:21the relevant div as well.
03:23What it's doing is replacing the code that I wrote with these SharePoint Web Controls.
03:29Clicking back down here in this other page we'll see things kind of refresh
03:33themselves here, and it looks like PlaceHolder code. Okay, so what?
03:38Well, what I'm going to do after using these controls, and obviously I could have
03:43spend a bit more time and laid out this page if I'd wanted to use multiple divs
03:47or tables, that's fine, you can do that, but I'm going to save this, and I want
03:52to see how to use this, but again, remember that we're in a Publishing site.
03:58Page Layouts have to be published and approved before they can be used or even seen.
04:03It's a very, very common issue that people have of
04:06I made some changes, and they don't seem to have made any difference.
04:10Probably, because you didn't publish and approved the changes that you made.
04:14So where are my changes?
04:15Well, I have to go back into my Master Page Gallery.
04:18I'm going to select ProductPage and check it in.
04:22It says Publish a major version.
04:25Again, this could be done either in SharePoint Designer or the browser.
04:28In fact, I'm going to jump over to the browser in a moment.
04:30It's going to remind me that even if I publish this, this document
04:35requires content approval.
04:37Do I want to view or modify the approval status?
04:39I'm going to say no because I'm going to manually jump over to the browser and do it.
04:43In the browser, in my Master Page Gallery, and I want to make sure I've
04:47refreshed it so that it's got the up-to-date information.
04:50I'm going to come down to find ProductPage, which is here, and I can even see
04:55the status over here it says Pending.
04:56It's not been approved.
04:58So from the dropdown box, I can say Approve/Reject.
05:01I want to approve it and click OK.
05:03Hopefully, you have the ability to do that.
05:05If not, you'll have to ask somebody else. Well, then what?
05:08What's the whole result of this?
05:10We've dragged things around. We've saved it.
05:13We've checked it in.
05:14We've published it. We've approved it.
05:16We've gone through all this rigamarole, then what?
05:18Well, here at the end of the day is the reason why you do this.
05:22So that when you, or anybody else, any contributor on this Web site hits the
05:27Site Actions menu and says Create Page, they don't only have Article pages to choose from.
05:33They have Product Page.
05:36And if they want to say oh, I'm creating a Product Page for the Blue Widget,
05:40which it names automatically in the Pages library.
05:43I'm going to come down and click Create.
05:46This is the power of defining our Page Layouts, so we have a very super-
05:51controlled structure of where we're putting stuff.
05:53Oh, that's your Title, okay.
05:55I'll drop Title in there.
05:56Where's your Product SKU?
05:57I'll call it ABC123.
06:00The Area, because we defined it in our content type as a choice, will
06:04immediately show up in the right area.
06:05Let's say it was Industrial.
06:07Product Information was defined in our content type as rich HTML so we have a
06:12full rich HTML Content Editor where I can put in all sorts of Product
06:16Information in here.
06:18That can include bolding certain things.
06:21That can include even dropping in images.
06:23It can include dropping in Hyperlinks, or Tables, Gridlines.
06:27All of the stuff is available, Bullet Points, Text Alignment.
06:31I'm going to save it as is right now.
06:33I could check it into Shared Draft, and what it's actually showing up and yes,
06:38not the prettiest page in the world.
06:40We've got our Title CSS.
06:41Our SKU is being text- aligned to the right over here.
06:44We've got our Area called Industrial showing up in red,
06:47our Times New Roman Product Information.
06:50This would not be live unless I decided to publish it. Because I'm an
06:54authorized user, I could publish it directly, but this is the power of creating your Page Layout,
06:59so let's click Publish here, that once the Page Layout is defined, we can create
07:051000 pages based on it.
07:07The cool thing is now if I didn't like the look of this, I could jump back over
07:12into SharePoint Designer, even change my custom.css.
07:16I'm thinking that the area which had a color of red looks a little bad.
07:20Let's change that color and make it green, and give it some padding on the left.
07:29Save our CSS file, jump back over here, change it, move it in.
07:34And that could have affected potentially a thousand pages just by changing the
07:38CSS, I wouldn't have to change those pages individually.
07:41So an awful lot of control over this content.
07:44And the idea, of course, is it's not just you creating these pages. You could have
07:48these pages being created by dozens of contributors who don't have to know HTML,
07:53because they're going to get this Edit View, which is very controlled and
07:57imposes a lot of structure based on your Page Layout.
Collapse this transcript
Creating multiple versions of a page layout
00:00So we've seen how to create a Page Layout based on a content type.
00:05Well, it's very common to have multiple Page Layouts for one content type.
00:09In fact, that's what happens with SharePoint out-of-the-box.
00:12When you're on this typical Create Page screen, there is four kinds of Article
00:16Page you can create.
00:17These are all different Page Layouts for the same Article Page content type.
00:23And if that makes sense for your pages that you might have different ones for
00:26the same content type, for example, in my case I might have a consumer
00:30focused Product Page, and an industry focused Product Page, and a military
00:34focused Product Page,
00:36it's completely up to you, but you can do that.
00:39It's just the same way that you created the first one.
00:41You would go to the Master page and page layouts gallery, create a new Page
00:47Layout and just base that on the same content type.
00:51The only thing you want to make sure of here is that you're giving it a useful title.
00:55Why would they choose one layout over another?
00:59And this gives you a lot of flexibility and a lot of variety in creating
01:03different layouts for the same content.
01:05However, going back to the Create Page screen, one of the things that's also
01:10useful is several of these Page Layouts can have their own image associated with
01:15them that gives you a preview, for example, of what that page might look like.
01:19And you can do that yourself. If you create an image that's about 216 pixels wide
01:25by 162 pixels high, and just make it look like whatever you want.
01:30I've just done a very quick demo in Fireworks, but it doesn't matter what
01:34Image Editor you choose.
01:36I can then save that as a GIF or JPEG, so that I can then use that as my preview
01:42image, and I'll show you where it has to be to do that.
01:46I'm going to go into my Site Settings and go into my Master page and
01:50page layouts gallery.
01:52This has a location called Preview Images, and this is the place we want to put
01:56our Page Layout preview image.
01:58I'm going to click Upload, find that file, which is on my Desktop here, and upload it.
02:06It's actually reminding me here that this has been uploaded but is checked out,
02:10and this will require content approval.
02:13Very common on a Publishing site.
02:14I'll have to check it in, publish it as a Major Version and then approve it.
02:19I can do all three things because I do have high-level privileges.
02:22I'm going to click Check In, then mark this as a Major Version that's Published
02:27instead of Draft, which will be default, click OK.
02:31And finally, select the same dropdown, but this time I can choose,
02:35Approve/Reject to approve it, and click OK.
02:38That simply means that image is available. I'm not actually using it yet so that
02:43would be the next step.
02:44I want to go back to the regular Master Page Gallery, come down to the Page
02:49Layout that I want to use it on, which is the ProductPage, hit that dropdown,
02:53and I don't need to edit it in SharePoint Designer.
02:56I need to edit its properties.
02:57But because I want to edit it at all, it is actually going to check things like
03:02this will require content approval.
03:04I do have a Preview Image location here.
03:07I can use an absolute or relative URL.
03:11In my case, I'm giving it the _catalogs /master page/Preview%20, obviously for
03:19the space Preview Images/productpreview.jpg.
03:23I can click the little button here to test.
03:25I'll make sure that works. It seems to.
03:28And then I'm going to click OK, and go over to my Create Page window.
03:35Now, when I come down to my selected Page Layouts, I can select between them
03:40when I come to my own Product Page I should see my own preview, however I
03:44wanted to do it there.
03:44Now, you may not see a big point to doing all these preview images if you're
03:49creating a lot of these pages yourself.
03:51You might think well, I know what these pages mean.
03:54But remember, you'll really have two audiences when you're working as a Web
03:58developer in SharePoint.
03:59It's not just the people who will be viewing this site, but it's also the people
04:03writing a lot of the pages.
04:04It's very common that you'll have multiple contributors.
04:08So it's about providing a framework to your content creators so that it's very
04:12apparent which pages they should be choosing.
04:15And everything that you can do, like preview images, like multiple Page Layouts
04:21is going to be helpful.
Collapse this transcript
Creating new pages based on page layouts
00:01There's no point making a Page Layout if you're not going to create multiple
00:05Web pages based on it.
00:06Now, we've seen this once, but like most things in SharePoint, there are
00:09several ways of doing this.
00:10As we're on a Publishing site, we've got the big dropdown menu, and I'd argue
00:14that the most common way of doing it is using the Create Page option.
00:18But really, what's this doing?
00:19Well, again, we're in a Publishing site.
00:22If I click on my View All Site Content, that means I'm going to have a
00:26Pages Document Library.
00:28And it's smart enough to know, even in here, if I click the New button, it's
00:32going to only pick from my Page Layout types.
00:34Do you want the Page, an Article Page, a Welcome Page or Product Page?
00:39And take me back to the Create Page option where I have to select Product Page
00:43again anyway to bring that up.
00:45Now, one of the interesting things you'll find, let's say I create this, Second
00:50Product Page I'll call it, and click Create.
00:54Now, if I go into SharePoint Designer and find that Pages directory and see
01:02it there I don't think it's checked out, maybe I'll just edit it in
01:05SharePoint Designer.
01:06I'm going to double-click it.
01:07It will tell me, This page cannot be edited in SharePoint Designer.
01:11Your only choice is you can edit the content that's on that page through the
01:15browser, through the very controlled way of doing it, or you can edit the
01:19page layout, but that's the only choice you have, which makes sense if you think about it.
01:24We're trying to define a template, and we don't want to allow the ability to
01:28use a template and then make all the pages look separately, completely
01:31independent of each other.
01:32We're either using the template, or we're not.
01:35So it doesn't allow you to edit the actual content page in SharePoint Designer
01:39when you're using Page Layouts.
01:41If I hit Edit in browser, I'll go to this very controlled page where I can
01:46starts to edit the content that I've done.
01:50One of the things I'm often asked on the Create Page option is how do I change
01:54or restrict the choices being made available to my contributors on this page?
01:59And that's fairly easy to do.
02:01I'm going to go back into my Modify All Site Settings, and in the Look and Feel,
02:07I've got one that says Page layout and site templates, like Master pages the
02:12phrase Page layouts appears in two places:
02:14in the Galleries, which says what do I have and in the Look and Feel, which is
02:18really, which ones do I use?
02:21The default on the Page Layouts is Pages in this site can use any layout, but I
02:26can check that Pages in this site can only use the following layouts and choose
02:29perhaps Article page with body only, a Product Page and a Welcome page.
02:37You can even then check to Reset all subsites to inherit these Page Layout settings.
02:41You don't need to do that, but just to prove that this works, I'll click OK.
02:44I'll go back to my Sites Actions > Create Page, and now I have that restricted view.
02:50So very easy to choose which options are shown to your contributors.
02:54I'm going to go back and just reset that to Page in this site can use any layout.
03:01And using these, you have a great deal of control over what pages your users
03:06are allowed to create.
Collapse this transcript
Controlling fonts and layouts
00:01So we've created content types and page layouts.
00:04Now potentially, a whole bunch of different contributors could create pages in
00:08your site, and that's a good thing.
00:10You're delegating content creation tasks, and that's a bad thing.
00:14So what happens if they start entering stuff that you didn't want?
00:18Let's take a look at this very simple page here.
00:20I'm going to shift into the Edit Page mode.
00:24The real key here is when you have a block of the HTML editable content with
00:29the Rich Text Editor, because we can have things like making them Bold or
00:33Italicized, but we also have this Styles area, and I showed this a little earlier.
00:38It's the idea that you could select a block and grab one of these and say, I'm
00:43going to make this the ArticleByline, and it will highlight that.
00:46Now what that's really doing is applying an inline style here, which is not a bad thing.
00:51I'm going to highlight and remove that, because the question often is okay,
00:55how do I control that?
00:56What if I want my own list of styles to appear in for titles and error messages
01:02and highlighting things, what do I do?
01:04Well, I'm going to show you how to do that.
01:06These Styles that I actually see here, and they typically don't appear until you
01:10have a block of text highlighted,
01:12we've got three: ArticleByline, ArticleHeadLine, ArticleTitle.
01:16Let's say I don't want any of those, but I'd like the ability to select a block
01:21of text and highlight it with yellow, or change the color of the text to red, so
01:27that it shows up as an error.
01:28Well, I'm going to go ahead and do that.
01:30So let me cancel this Page.
01:32I'm going to just Discard the Check Out, which is the same as canceling it.
01:37Let me show you where it's getting those Styles from.
01:39For once, it's actually not from core.css.
01:42If I right-click and say View Source, one of the first links to a stylesheet
01:47I see is to this guy, to HtmlEditorCustomStyles, and that's where they're
01:52being brought from.
01:53Now the question is how easy is this to edit? It's not.
01:57It's almost impossible to edit.
01:58You can't, and you won't.
01:59So what you're going to do, like everything else, is you're going to take what's
02:03in there, and you're going to copy it.
02:06I'm going to grab my own copy of this.
02:07So I'll just copy the path and paste it up there, and it is going to save it.
02:16I'll just save it out there to my Desktop and open it up.
02:20It's not very big, this one, thankfully.
02:22It's going to open up in SharePoint Designer or your chosen CSS Editor.
02:26We've got a few things that are being used internally by that Editor, but down
02:31towards the bottom, these three pieces are what gives us our Custom Styles.
02:36In fact, it's all drawn from what's the name of the class.
02:40In this case, it's ms-rte for Rich Text Editor Custom-ArticleTitle,
02:46ArticleByline, ArticleHeadline.
02:47Now what I'm going to do is grab one of these, and it does me no good whatsoever
02:53to edit this file, because it's just saved to my Desktop.
02:56But again, I do have a custom.css in my own site here.
03:01So I'm going to change this one.
03:03I'm going to come down to after my current existing CSS, put a little note in.
03:08What I have here is anything that starts off with a .ms-rteCustom- will be a
03:18style that I can do.
03:19I don't want to have ArticleTitle.
03:21I'm going to have one that says perhaps Highlight, and all I'm going to do on
03:25this is have a background-color of yellow.
03:31Let's say I'll do one more, where I'll change the color of the font to red.
03:38These are just very simple.
03:41Obviously, you can change the font-size, you could change the padding, and you
03:44might do things like blockquotes, quotations that kind of thing.
03:48I'm going to save this.
03:50I'm going to go back into this page, refresh it, just to make sure it's loading
03:55the new version of my custom.css.
03:57Then shift into my Site Actions > Edit Page mode, come down into this Text
04:03Editor, highlight a bit off text, say this entire line over here.
04:08Then in my dropdown Styles, I have both Error and Highlight.
04:12I could highlight with yellow.
04:13I might want to change that to a nicer hexadecimal color, but it works fine.
04:18I could select another word, do an inline highlight there, and we're using CSS
04:22to change the Styles, so very easy to apply.
04:25Although as you will notice, the two custom ones that I change made the other
04:29ones disappear, and that tends to be the way that it behaves.
04:32So if you do want to keep the other Styles, copy them all from HTML Editor CSS
04:39file, and paste them in your custom.css.
04:42We're now really applying structure from the top to the bottom.
04:46We're starting with the entire site.
04:48We're defining a master page to describe the overall layout and navigation, then
04:52the page layouts to describe structure for our repeated page types, and then
04:56even custom CSS to control the content used in just tiny pieces of those pages.
Collapse this transcript
Controlling approval workflow
00:01By now, we've seen this toolbar several times.
00:03It's what appears when you've created or are editing a page in the browser.
00:08This toolbar only appears if you're working on a site with the
00:11Publishing feature enabled.
00:13There are a lot of things you can do on this toolbar:
00:15spelling, page settings, previewing the page, but the two first pieces of
00:19information here are the Version and the Status.
00:23If you select either of these links, you'll get the same information that'll
00:26tell you you are viewing say a draft or a published version of the page,
00:30what the Current version is, what's viewable by all users, whether this is
00:35checked out or not.
00:36It says this page is not currently checked out.
00:38I am going to click OK.
00:40Both links would give you the same information.
00:42If I wanted to edit the page, I can click the Edit Page button.
00:46It's giving me a prompt:
00:47remember to check in before other people can see your changes.
00:50While I'm in the Edit mode, there are things I can do, such as Spell Checking on
00:54there, because I've got some Latin dummy text that will take a while, but it is
00:58there and is useful.
01:00If I accidentally make that change and say, oh, I didn't really want to edit it,
01:04I could go to be Page menu and say I want to Discard Check Out, which just takes
01:10it back to where we were before.
01:12This currently counts as a Draft Version.
01:15That means it won't be viewable by your typical reader of the site.
01:18They would never actually see this version until I click the Publish button.
01:23Depending on your security levels, you may or may not have the Publish button.
01:27If you're not in the Approvers group, all you see is Submit for Approval.
01:33I'm going to click Publish directly, and get that to the live version.
01:37So we're now looking at the page as everybody is seeing it.
01:40To just get the toolbar back, the simplest way is to switch to Edit Page mode here.
01:46If I mouse over some of the other menus, we can see we have things like a Workflow option.
01:51We're going to get a bit more into Workflow later on.
01:53Now let me discard that Edit mode.
01:57The whole idea, of course, is this toolbar is really allowing you to do what
02:01you'd want to do with a full enterprise-level Web site.
02:04Having the idea of thousands of readers, multiple contributors and few
02:08approvers, but we're able to work on the Web site by using the Web site rather
02:13than extracting all our pages out into some private place to work on them before
02:18anybody else sees them.
02:20Really, the toolbar is appearing, because if I go to my Site Actions menu and go
02:24to View All Site Content, if I look at my Pages directory, which is where
02:29everything is being stored.
02:30All my Web pages are stored in this Pages Document Library.
02:33I'm going to go to the Document Library Settings, and you may not be too
02:37familiar with looking at the Settings a little bit,
02:39but most of the reason that we see these things on the toolbar is because my
02:44Versioning Settings of this Document Library say that I'm going to create
02:48major and minor (draft) versions.
02:49That's why we have Draft versions, by default, that only users who can edit
02:54items will see those Draft versions, so a typical reader won't.
02:57Then we have the option here that you require documents to be checked out before
03:01they can be edited is Yes.
03:03If I was, say, working on a test Web site, and I wanted to make my life very
03:07easy, I might say no.
03:09I don't require documents to be checked out because it's only me who is going to edit them.
03:13Maybe everybody can see draft items.
03:15I'm not interested in versioning.
03:17I'm leaving all of these as they are.
03:19But bear in mind that what the toolbar is really showing you is the settings
03:23that have been done on this Document Library.
03:26It's just applying these ideas to the Web pages in your Pages Library.
Collapse this transcript
10. Customizing the Collaboration Portal
What is the Collaboration Portal?
00:01If your SharePoint Server is just WSS, and you don't have MOSS, well, you get
00:06some great places to put your stuff.
00:08But WSS sites are very small and focused.
00:11They're based around a team like a team site or a document workspace or
00:15a meeting workspace.
00:16When you have MOSS, you're really taking it up a level.
00:20The idea is that you're thinking how can I get a Web site that covers my entire
00:24organization and even, how do I organize all these WSS sites that I've got?
00:29Now you could create your own site to organize these, but Microsoft created
00:34something to do this called the Collaboration Portal.
00:37The Collaboration Portal is something that can be only created in MOSS.
00:41You have to have the Microsoft Office SharePoint Server license, either the
00:45Standard Edition or the Enterprise Edition. They both have it.
00:49This is not available to create under the usual Site Actions > Create Site menu,
00:55even if you're in say a site where the license supports it.
00:59If you say I want to create a site, it does not allow you to create a
01:03Collaboration Portal.
01:04You won't see that option actually appearing anywhere, because you can only
01:09create a Collaboration Portal from SharePoint Central Administration.
01:14Now you may or may not have access to SharePoint Central Administration, but
01:18just to show what it looks like,
01:20if I was in SharePoint Central Administration, and I said, I want to make a new
01:24site collection, one of my options, apart from the normal team sites and blank
01:29sites and document workspaces, would be a Collaboration Portal.
01:34There are two kinds of portals that can be created in SharePoint 2007:
01:38Collaboration Portal and a Publishing Portal, and you might as well say
01:42Intranet, Internet for Collaboration Portal and Publishing Portal.
01:48Both of these can only be created as a top-level site in a new Site Collection,
01:53which is why they must be done from SharePoint Central Administration.
01:57Really, to say that it's a site is not really giving it its due respect.
02:02When you create a Collaboration Portal, you're actually creating a series of
02:06sites inside a Site Collection.
02:08Now in fact, I can really tell that what has happened just by looking at the top link bar.
02:12This is a Collaboration Portal as it exists out of the box.
02:16What happens is it creates five or six sites, depending on if you have an
02:20Enterprise license of MOSS or a Standard license of MOSS.
02:23The Collaboration Portal is at the top, and then there is a subsite called the
02:27Document Center, a subsite called a News site, a subsite called a Reports
02:32Center, which is only there if you have MOSS Enterprise, so you may not see it,
02:37a Search Center and a Sites Directory.
02:41These tabs all actually represent separate SharePoint Sites inside this Site Collection.
02:48Once again, like many other SharePoint site templates, there is nothing
02:51magical about this.
02:53You could create your own structure.
02:55You can even make the sites individually, but this is the typical way you
02:59come across things like the Search Center and the Sites Directory and the Reports Center.
03:04When you create the Collaboration Portal, it has the publishing feature turned
03:08on, by default, which is why you see the big menu with all the different options on it.
03:13But like everything else in SharePoint, this is designed to be customized.
03:17It's designed to be changed.
03:19It's not supposed to be fantastically useful out of the box.
03:23You're supposed to change it.
03:24You're supposed to customize it.
03:25That does mean that we need to kind of go through each of the subsites, because
03:30they are different, and learn a little bit about how to customize the News Site
03:34or the Reports Center or the Search Center.
03:37So understand that the Collaboration Portal is a collection of different
03:41SharePoint sites and to customize it successfully, you need to understand
03:45its different parts.
Collapse this transcript
Customizing the Home site
00:01So if the Collaboration Portal creates five or six sites when it is created,
00:06Let's talk about the first one, the Home Site.
00:08This is the first part of the Collaboration Portal and when it begins, it is
00:12really just one page, the home page for the portal.
00:15But it is a SharePoint site.
00:17If I really want to understand what this site is made of, I go to my View
00:21All Site Content link.
00:22I'll see that there's seven document libraries.
00:25There is about seven lists.
00:26There's a discussion board and underneath that, my list of sites and workspaces
00:31is where I'm seeing my subsites, the Document Center the News site and so on.
00:35So this site seems to have a lot to it, but many of these libraries are just
00:41here because the Publishing feature is turned on and because we're at the
00:46top-level site of this site collection, that's where were seeing these
00:49supporting libraries like the Style Library for our CSS.
00:53For site collection documents and site collection images, really this site is
00:58made of two things, the Pages Library and the Images Library.
01:02Right now, the Pages Library has one thing in it, which is our home page. That's it.
01:08SharePoint is using itself to manage itself.
01:11It's storing its own page in its own library.
01:14If I click back a couple of times, and I go to the Images Library, I just see
01:19that image that's being used on the home page.
01:22This is pretty much how this site is put together.
01:25You can create new pages on this site from the Site Actions menu and click Create Page.
01:30It is up to if you want to do that.
01:32You can, you don't have to.
01:33If you choose to do that, you'll get several choices for Page Layouts and
01:38Templates that you can choose.
01:40These are what SharePoint provides out of the box, and they are typically going
01:43to be customized, so I'll cancel that.
01:46If you do add a new page, you're going to have to create your
01:50navigation yourself.
01:51You can edit the Top Link Bar.
01:53You can edit the Quick Launch Bar.
01:55Because this site has Publishing turned on, they are actually referred to as the
01:59Global Navigation and Current Navigation and they, like many other things, are
02:04accessible from this Site Actions menu.
02:07You actually have a Site Settings > Navigation option here where that
02:12information can actually be changed.
02:15If I want to edit this home page, and let's face it, I typically will, I don't
02:19want the generic bland content, you might think that you need to find the address
02:23of it and open it up in SharePoint Designer.
02:25But you don't, and you can't. If you try to open this up in SharePoint Designer,
02:30it will actually say, This page cant be edited in SharePoint Designer, it must
02:34be edited using the browser.
02:36That means we go to the Site Actions menu and click Edit Page.
02:40It blows apart into a series of areas and zones for Web Parts.
02:45We're seeing this Editing toolbar appear over here.
02:48That's actually controlling the status of this page and how many versions it has
02:53and whether this is publicly viewable or published or just in a draft mode.
02:57But all of these are individual modular pieces.
03:00I can click on the Edit Content button here and see that this default content is
03:05actually being provided to us as a table with a bunch of information inside.
03:09I can just go through and start to delete some of that content and enter in
03:14my own information.
03:16Same kind of idea over here.
03:17I can click the page image.
03:19I can see what it is originally pointing to, but if I wanted to, I could click
03:23Browse, which would even allow me to upload a new image into that directory.
03:28I'm not going to do that right now, but this is how we'd manage it, always being
03:32done through the browser.
03:33Like a WSS Site, this page also has multiple Web part zones. Several of them are
03:40empty, by default, but you can click the button to add a Web part, and you'll
03:44see a bunch of suggested ones.
03:46You'll also see the button saying All Web Parts, which will give you a lot of
03:50different ones, depending on which version of SharePoint you have.
03:53Lot of the Enterprise Web Parts is what I'm looking at right now.
03:56But there are things like Content Query Web Parts, which will allow you to bring
04:00in information from subsites, for example.
04:02There's an RSS Viewer, there's This Week in Pictures.
04:06A lot of these are self-explanatory, you really just need to explore them and
04:09play around with them.
04:10So it's easy to think there's a lot on the Home site or the Collaboration
04:15Portal, but there really isn't. There's really just one page.
04:18Very, very simple, it just has a lot of options to it, and that's where the
04:22complexity comes in.
Collapse this transcript
Customizing the News site
00:00The Collaboration Portal is targeted to small to medium-sized businesses or
00:06departments for creating their own portals for a lot of people.
00:10One typical thing you need in this idea of an Intranet Portal is a central
00:14location that everybody comes to for news. This is why:
00:18In the Collaboration Portal one of the sites that you get is called the News site.
00:23You see the tab over here with a couple of dropdowns underneath it.
00:27You can also get to it from the Quick Launch or the left-hand sidebar
00:31whatever term you prefer.
00:33This is a completely separate, independent site inside SharePoint.
00:37Like any other site, you can view its contents by saying View All Site Content.
00:42I can see that I have three libraries, one picture library and one list.
00:46Going back to the home page, I've got a Sample News Article that's very unexciting.
00:52It's a bunch of dummy Latin text, but I could shift into Edit Page mode, and the
00:57editing has to be done on this page through the browser.
01:00It cannot be done using SharePoint Designer.
01:03SharePoint Designer would not let you edit this page.
01:06I'm not going to make any changes here, but I am going to use the Page menu to
01:10just discard the checkout, yes I am sure. Going back to the News site.
01:15There is a couple of things that they have on this page, by default, such as an
01:19RSS Viewer and a This Week in Pictures Web part.
01:24Even the RSS Viewer here says the Web part is not bound to a feed.
01:28Open the tool pane to set the feed Url.
01:30It might as well just say this Web Part needs to be set up.
01:33Open the Settings pane.
01:35So we're going to open that tool pane.
01:38It has a bunch of things inside it , such as the Appearance, which is what's the title of it,
01:44the main thing being this RSS Feed URL. I'm going to use the RSS feed of the
01:49lynda.com Blog, which is just feeds2.feedburner.com/lyndablog and say that I
01:57want to see 10 articles at a time.
01:59I might even change the title of this to say lynda.com news and click OK.
02:06We're bringing information back, some central information there.
02:10If I click on the This Week in Pictures item, it's kind of a strange one here,
02:15what we look at is a library.
02:17This is actually an Image library, which not surprisingly, is just a place
02:21to dump your images.
02:23But if you have a bunch of images uploaded into this library, this Web part over
02:29here will actually automatically start to kind of rotate through those and
02:33itself like any other Web part has a whole bunch of settings that you can change
02:38to change how the Appearance works and whether it should have a fixed height
02:41and what the title is and how the slideshow should work, that kind of thing.
02:45I'm just going to leave it because I don't have any images uploaded.
02:48Now because I've made changes to these Web parts, I've got the toolbar appearing
02:53again, saying this version is checked out, and right now I'm the only person who
02:57can see and modify this page, which means nobody else coming to the News site
03:02sees the changes I've made until I choose to publish this.
03:07If I wasn't completely sure that I was done, I might just check it into Share
03:10Draft, and that means that anyone else who's a contributor on the site could see
03:15it and view it and edit it.
03:17But I'm going to say yup.
03:18I think it's great. I'm going to hit Publish and go ahead and see what that looks like.
03:23Okay so we're customizing this particular page, but what else?
03:27Well, the News site is really made up of these news articles and in fact, if I
03:32look at my All Site Content link, I can see what I really have in here is Pages
03:37Directory with three things in it.
03:39You might think why three, because I can see two on the dropdown list, the Sample
03:45News article, the News Archive. Well, what we're really seeing is both of those two
03:50options and the home page for the News site.
03:53Those are the three options in that Pages directory.
03:56Default is the home page, and we've got the first article, and then we've got
04:01News Archive, nothing really there.
04:04Not surprisingly, I could also add something else to that.
04:08If I go into my Pages Library directly, or if I go to Site Actions > Create
04:15Page, I can actually start to create a New News Article.
04:22I'll say this is an article page with the body only and click Create.
04:26It is very simple one here.
04:28We basically have one place for a title, a place for content and a place for an image.
04:33I'll just put some example text in here, and this page cannot be edited using
04:38SharePoint Designer.
04:39The only thing you can do in SharePoint Designer is edit the template for this
04:43page, the page layout.
04:45So I'm just going to save it as that and say immediately publish this.
04:49The reason that I'm doing that is just to show what the end effect is.
04:52Because I've added this to that Pages Library, I now have it
04:56immediately available as the New News Article on the dropdown list
04:59across this Site Collection.
05:01That's just the way that this is actually configured.
05:03Now as you get further into customizing this, you're likely to create specialized
05:08News Layout Pages rather than accepting the SharePoint generic ones, and those
05:12would be creating page layouts themselves.
05:15But again, a very focused site for news presentation across an intranet portal.
Collapse this transcript
Customizing the Search Center site
00:01One of the sites created in a Collaboration Portal is a site all about search,
00:05and it's called the Search Center.
00:07And your first thought may be something along the lines of, why did they bother
00:11making this a SharePoint site? After all, search is everywhere in SharePoint.
00:15If we are on the portal, we'll see it on the top-right of pretty much every page.
00:21The thing is, creating Search as a site by itself gives you the ability to
00:26customize it, to customize your Search page, to customize your Advanced Search
00:31page ,to customize your results page, to have multiple advanced pages for
00:36searching complex content.
00:38In short, you don't need to customize your search center.
00:41You could just leave it alone.
00:42But here is one to know if you do want to do it. One, it is, of course, a
00:46regular SharePoint site.
00:48Now when you go to the search center, you may not see the quick launch bar. It's
00:52just not shown on this page, by default.
00:54But we can still get to our View All Site Content link from under the Site Actions menu.
01:00And that'll tell us that yes, sure enough indeed, this site is made up of pages
01:05and lists and libraries the same as any other SharePoint site.
01:08In fact, our Pages library has five items in it, which is more than most of the
01:13default sites created.
01:14What we actually have here is the default page, which is the home page of the search site.
01:19There is an advanced search page, there is a people search page, there is a
01:23general results page, and then there is a people results page.
01:27And all of these are created as pages, and they are all editable.
01:31Now, it's a question of how much you want to edit them, if you'd say go to your
01:35default search page, it's quite nice, it's quite simple.
01:38If you did want to edit some of this content in the white area, you could do
01:42that, add some suggestions, for example.
01:44Let's say I search for something, just a random phrase.
01:47We are not going to get any results here, but I'm on the Results page now, the
01:52classic results page in SharePoint, and I could edit this page too.
01:55Let's say that what I want to do is go into Edit Page and see what it's made of.
02:00You might be quite surprised here. The Search Results page have a lot of Web
02:05parts on them, because the search in SharePoint, which is a very powerful search
02:10engine, is delivering back information like how long did the search take?
02:15Did you find any items?
02:16Are there anything that should be more prioritized than others?
02:20So there is Search High Confidence Results. Best Bets are things you can do to
02:25recommend certain links.
02:27They are almost like having little sponsored Google ads in your search results.
02:33Not something I typically go through in this course, but you can look at those
02:36in the search settings of your site collection.
02:39We have got, what are called Federated Results, which at the moment, the way it's
02:42configured is it's drawing suggested results from online search engines. That can
02:47be configured and changed.
02:49But it's all made up Web parts like everything else, and let's say I just want
02:52to do something simple.
02:53On the right-hand side, in the right zone, I am going to click Add a Web Part.
02:58It's got a whole bunch of suggested Web parts. As you can see, there are many
03:01searched ones, so you can experiment with those.
03:04They are all quite customizable.
03:07But if I collapse that and shrink down, go through quite a few, many of these
03:12Web parts wouldn't really make sense on this site.
03:15But let's say I just want to put in some content and type some
03:19information myself.
03:20I'm going to select the Content Editor Web Part, click Add. That's going to
03:24immediately say, well to do anything meaningful with it, open the Tool pane and
03:28open up the Rich Text Editor.
03:30And here is where I could type some content. I'll click OK.
03:37And after I've edited that content, I can just Publish this page, and again,
03:43nothing particularly remarkable here.
03:45Obviously, I would want to change the title, and in fact, I can do things about
03:49suggested results by using that Best Bets idea.
03:52What I'm trying to illustrate is that the search center in SharePoint is like
03:56any other SharePoint site.
03:57It's customizable, it's changeable, and you can change it the way you customize
04:01anything else in SharePoint.
Collapse this transcript
Customizing the Site Directory
00:01There is a disadvantage to SharePoint being such an effective site engine.
00:05It's so good at churning out Web sites that after it has been unused for a few
00:09months, you may have hundreds or thousands of SharePoint Web sites around and
00:12everyone is finding it difficult to actually find what they are looking for.
00:15I am often asked, where's the built-in SharePoint site map?
00:20And there isn't one. Seriously, there is no one place to go to in SharePoint
00:24that will tell you what exists in your SharePoint farm.
00:26You have to make it yourself, or make your own version anyway.
00:30The perfect place to put this information would be in your Intranet Portal.
00:34The way Microsoft has tried to help is by giving you something called the Site Directory.
00:39By now, you should have guessed that, yes, this is indeed another SharePoint site.
00:44This is a way that you can organize links, not only to sites inside this site
00:49collection, but to sites outside this site collection, as long as you know
00:53the address of them.
00:54It is not automatic.
00:56People often assume there must be some secret button they can click to make it
01:00go and index all the site collections and all the sites and have them appear in
01:03some kind of meaningful structure.
01:05And no, that's not going to happen.
01:07You have to impose your own taxonomy, your own organization, on this.
01:12The Site Directory is another SharePoint site, not surprisingly, still has its
01:16own view or Site Content link.
01:18It's consisted of lists and the libraries.
01:21And really, the primary one here is there is a list of sites.
01:26Now as it starts off out of the box, there is really nothing in there.
01:30I'm going to show you, if I go back to the Home page of the Site Directory,
01:34is this thing here.
01:35We've got Categories, Top Sites, Site Map.
01:38Site Map you might often click and think okay, is this taking me
01:41automatically to anything?
01:43Not really, unfortunately.
01:45We've got some ability to go through our sibling sites, like the News site, the
01:51Document Center, the Search site, the Reports site.
01:54But the first tab we have is Categories, which right now we see Division, and
02:00Region, and Tasks and Tools.
02:02And Microsoft has given you some example of Divisions: Information Technology,
02:06Research and Development, Sales and Finance.
02:09You might immediately look at this and go okay.
02:11I have to reorganize these into departments and locations, or what have you.
02:17This stuff is meant to be changed.
02:19It is meant to be organized and reorganized, but that is somewhat non-intuitive
02:25in terms of how you actually do that.
02:27Before I start messing around with the Categories, let me just point out a
02:31couple of links up here on the right.
02:33You've got an option called Create Site.
02:36And this really does the same kind of thing as the Site Actions > Create Site
02:40here, but you also have Add Link to Site.
02:44This does allow you to add a link, not surprisingly, to a site that's not in this
02:49site collection. It could even be a link to a public Web site.
02:52It doesn't really matter.
02:53Let me just go and switch a tab and grab the address of another site.
02:57So, for example, this team site that I've been playing around with some of the
03:00other movies is at the address ldcsharepoint.com/sites/team.
03:06I am going to copy that location.
03:08Go back over here, and I'm going to just put in a link to my Demonstration Team Site.
03:17I can give it a description.
03:18I can choose which of the divisions I want to put it in, Information Technology
03:23and Research & Development.
03:25I'll have that to be Local and National.
03:28Then I have to give it the URL, the URL is required.
03:31There is a little button here.
03:33There is a little link here saying Click here to test.
03:35All that's going to do is take that URL that you've pasted in, or typed in, and
03:40open it in another window, and you get to check, oh did it work?
03:43And in this case, yes, it did.
03:45I have got a couple of other check boxes, like the Top Site.
03:48I am going to check that.
03:49I'll show what it does in a minute.
03:51And Top Tasks, let's do that too.
03:54And there is even the potential of giving an Owner, and that really means
03:57the owner of the link.
03:58So if you have multiple people contributing links here, and you don't know where
04:02one came from, you might start stipulating the people put the owner in there.
04:06I am going to click OK.
04:08We're immediately back to the Site Directory, and I don't see any change whatsoever.
04:13That's because I have to actually go into the individual divisions, like the IT
04:18one, to see that Demonstration Team Site.
04:20I did check the box to say it was in Top Sites, which means when I go over
04:24there it does appear.
04:26But this site is not in this Site Directory, so it's nice to be able to link to it.
04:31One of the things that I get from checking Top Sites, if I go all the way up to
04:35the top home page of the portal, is anything that's checked as a Top Site
04:39will appear in this Web part over here as a Top Site.
04:43So if you want to make it kind of known and quite public at the top-level of the
04:47portal that that site exists, this is one way to do it.
04:50Back into the Site Directory, here is the one thing that I wanted to show you,
04:54which is how do I organize these Divisions and Regions in a way that makes sense to me?
04:59Well, what you might think is do I shift into my Site Actions > Edit Page mode?
05:05And when I do that, I can see that this page, like many others, is made up of a
05:10bunch of Web parts and areas.
05:12And if I look at this Web part for Categories here, it even says, do you want
05:16to create a new category, do you want to Edit Sites and Categories? And I can
05:20think, sure let's do that.
05:21Well this is all about customization.
05:23Let's Edit Sites and Categories.
05:25I click that link, and it takes me to what looks like a fairly normal SharePoint list.
05:31And this might look a little weird.
05:32We were saying, well, no I wanted to edit the categories here.
05:37I wanted to edit Information Technology and Research & Development, and it's
05:40taking me to a list of sites.
05:43And really that's because the details about things like Division and Region are
05:47actually embedded inside this list.
05:50And what does that mean?
05:51Well, they're really in there as columns of this sites list.
05:56Again, that might still sound a little vague.
05:57Well, let me hopefully make it a bit clearer.
05:59I am going to go into the Settings of this list and see the Columns that are
06:04made up of my site entries, which is the URL and the Title and the Description
06:11and Division and Region are here listed as choices.
06:15These are directly editable through the list.
06:17It's a normal SharePoint list.
06:19I click on Division and come down, and it says, here is my choices.
06:24We've used this before when we've created our own custom columns.
06:27Maybe I would change that to IT, Development, Sales & Marketing, Operations.
06:37I am going to come down and click OK.
06:39Now here is the interesting thing.
06:42If I go back to my Site Directory, I'll instantaneously actually see that my
06:46divisions have changed to what I changed them to the IT Development, Sales &
06:50Marketing, and you might think, depending on your background, that anything that
06:55was previously in the Information Technology one will have been re-coded in
06:59that, but that's not what happens in SharePoint. Kind of to prove that, I'm
07:03going to go directly into the list itself.
07:06We had our sites list, and I had my Demonstration Team Site entered. That still
07:12has the old data in it. Even though I changed it so there is new options aren't
07:16available anymore, they will still remain.
07:19That's the way that SharePoint tends to work.
07:21It tries to keep any data. Even when you think that data might disappear, it doesn't.
07:25But real,y the sites directory, these categories that you're looking at are
07:29choices defined in the settings of that site list.
07:34And that's the way that you have to customize them, very kind of non-intuitive,
07:38but once you get the hang of it, it's actually quite easy to do.
07:41You can also create a site directly here.
07:44If I create a site, and this could be a Team Site, a Document Workspace, a Wiki
07:49Site, a Blog; anything can be created directly under it.
07:52I am going to create this as another demo.
07:56I'll just do a blank site.
07:58Notice the URL. Notice that because we were in the position of being inside
08:03the Site Directory that this new site will be created as a subsite of the site directory.
08:09Don't really have much of a choice about that.
08:11However, because we are in this place, you'll get a few new questions.
08:16Do you want to list this in the Site Directory? Yes, I do.
08:19What divisions?
08:20Let's have it in Sales, Marketing and Operations, and have it International.
08:24Create. It'll go away create and spawn up that new SharePoint site, but it will
08:30add it to the Site Directory.
08:32Again, we could go back to the Tab to prove that it's there. It should be in
08:36Operations, and there we go, Demo Blank Site.
08:40Once again, we're seeing this thing with the sites directory as a part of
08:44SharePoint that really needs customization to make it worthwhile.
08:47And that really is the truth for all of SharePoint.
08:50It doesn't need a lot of customization. A little goes a long way. Thinking
08:55about your different categories, how you group your sites together makes it
08:58much more useful.
Collapse this transcript
11. Customizing the Publishing Portal
What is the Publishing Portal?
00:00SharePoint's main reason for existence, at least for most people, is as an
00:05internal platform within an organization.
00:08And it does a really good job of that.
00:10Document Management and Workflow, Content Collaboration, Enterprise Search
00:15whether it's creating collaboration sites, focused on teams, or documents, or
00:20Intranet Portals like the Collaboration Portal,
00:22well, it was only natural for people to think
00:26well, one of the things SharePoint does really well is make Web sites.
00:29So can it help make my public Web site?
00:32And with the earlier versions of SharePoint, SharePoint2003, SharePoint Team
00:36Services, the answer was, 'No not really.'
00:39It was possible but very, very difficult and challenging to do.
00:43With SharePoint 2007, the answer is yes, it can.
00:46There's something in SharePoint 2007 called the Publishing Portal, and the
00:50Publishing Portal is that part of SharePoint suggested for a public Internet
00:55site as a starting point.
00:57Once again, like most other sites in SharePoint, it is just a suggestion.
01:02You don't have to use it.
01:04You can construct a public site from the other building blocks that we have seen.
01:08But if you want to know what part of MOSS Microsoft provides as a suggested
01:12starting point for an Internet site, this is it.
01:15Now, I'm looking at a Publishing Portal as it was created right out of
01:20Central Administration.
01:21Like a collaboration portal, this site can only be created as a site collection,
01:26and you have got to understand it this way.
01:28The publishing portal is a site collection by itself, and it's very important
01:34into understanding how we start to build it out.
01:36Now, if you're fairly new to SharePoint, you probably get somewhat overwhelmed
01:40with the word publishing just appearing again and again and again.
01:44We have the Publishing Feature.
01:46We have the Publishing Portal.
01:48We have things called Publishing Sites.
01:50And occasionally, people make the mistake of thinking, oh, if I want use
01:54SharePoint Publishing, I have to use the Publishing Portal. No.
01:58You really don't.
01:59This really would have been better called the Internet Portal or something like that.
02:04It does have Publishing turned on, which I can tell just from looking at my Site Actions menu.
02:10I've got the big Publishing menu.
02:12But it's the same as Collaboration Portal, or the same as turning it on yourself.
02:16You could turn that on for different sites.
02:19So the Publishing Portal that we're looking at uses the Publishing Feature.
02:24Now, making one of these, which can be done in SharePoint Central Administration,
02:29does nothing magical to make this suddenly public and out there on the Web.
02:34All SharePoint sites behave as if they're internal.
02:37They will authenticate everybody, and this one is no different, and one other
02:40things you'll see on the Default Publishing Portal is a message saying that you
02:45must enable anonymous access on the site collection for the forms authentication
02:50logon page to work from Office SharePoint Server, and you may not have any idea
02:54what this means, but it's really telling you that just because you made a
02:57publishing portal, it doesn't mean people can get to this over the Web.
03:01You're going to have to get involved with your farm administrators to make sure
03:05that first off, that the machine this is running on is reachable, and then that
03:09the Web Application this is running on is reachable, and then that this site
03:13collection has Anonymous Access turned on, because until that point, it tries to
03:18authenticate everybody, and if it doesn't know who you are, you will get an
03:22Access Denied message.
03:23But we're not really focused on the technical side of allowing this site to be
03:28visible over the Internet.
03:30We're really talking about how do you work with this site?
03:32Well, it is a SharePoint site.
03:34If I go to my Site Actions > View All Site Content, which I get here because I
03:39don't have a Quick Launch Bar,
03:42I can see it's a SharePoint site.
03:45It has Document libraries in it, and lists in it, and that's what it's made off.
03:50In fact, I can actually see it has two Sub sites in it, Press Releases and Search.
03:55These are really kind of provided as examples.
03:58I'll go into that very shortly.
04:00This exists as a Site Collection.
04:02When a Publishing Portal is created, you actually get three SharePoint sites in
04:07that Site Collection:
04:08the Top-level site, then a Press Releases site and then a Search site.
04:13Once again, it's using the Publishing Feature, which means the individual pages
04:17are stored in the Pages Library.
04:19Right now, all we really have there is the default page.
04:22If I click on that, it should be no surprise that this is actually just the home page.
04:27And again, no surprise that I can edit this by shifting into the Edit Page mode.
04:31I can't edit this page using SharePoint Designer, and if I try, it will refuse.
04:36But it's made up of its own blocks.
04:39I've got the Page Image here.
04:40I've got what's called a Summary Links Web part, which is a Web part
04:44showing hyperlinks, which can be dragged and dropped and moved around quite configurable.
04:48And that's kind of really it.
04:49There's not an awful lot more information to this.
04:52Obviously, you're going to customize this and change things around, but just showing
04:56you what's there, by default.
04:58So how do I start to work with this site?
05:00Well, I'm going to get into that very shortly.
05:02But understand that really, this is actually one of the most simplest SharePoint
05:07site collections you can run into.
05:09Yes, we've got Publishing on.
05:11Yes there's a few Web parts we haven't really explored, and there is certainly a
05:15bit of an out-of-date look to it.
05:16But it is simple, no Quick Launch Bar.
05:20It's using the same features we been exploring all along:
05:23the Publishing Feature,
05:24Master Pages and Page Layout, Document Libraries.
05:27It's still a SharePoint site, and using that knowledge, we can customize it.
Collapse this transcript
Understanding security concerns for internet-facing sites
00:01If you are using SharePoint for your Public Website, you've got a few
00:04things to consider.
00:05First off, Licensing.
00:07SharePoint is typically licensed per user, but that obviously isn't going to
00:11work for a Public Website where you could have hundreds of thousands, or millions
00:15of people visiting you.
00:16So Microsoft has a One-off License you need for SharePoint for Internet sites.
00:21We're not going to cover licensing at all in this course.
00:24There are many, many different options there.
00:26So talk to your rep is there is something you need.
00:29The key technical question is how do people get to your site?
00:32Just creating a Publishing Portal does nothing to make it accessible via the Web.
00:36Well first off, the machine that this is installed on has to be available and
00:40visible on the public Internet.
00:42That's going to be your administrator's job to make sure the domain names hook
00:45up correctly, and point to the correct Site Collection in SharePoint.
00:49Now, your farm administrators will need to do some work in SharePoint Central
00:53Administration to make this visible over the Web.
00:56You'll also have to turn on Anonymous Access.
00:59The first link that you get on a Publishing Portal, if you click it, it
01:03takes you to one of the Site Settings that says What can Anonymous Users
01:06access on this site?
01:07And the default is Nothing at all.
01:10This Anonymous Access is actually something you have to do at several places.
01:14It needs to be done for the Site Collection, needs to be done in Central
01:17Administration for something called the Web Application as well, as well as just
01:21the Web server as a whole.
01:23Now one of the issues here is this:
01:26If I want is putting this Site Collection on the same side as my Internal
01:30content, well I would be very, very careful about doing that at all.
01:35Typical practice with using SharePoint as a public Web site is this is really on
01:40its own machine out there on the Web.
01:43So if it does get compromised, people are not also working on the same machine
01:48that contains your Internet and your internal pages.
01:51A question that I get asked is is there some way that SharePoint can save off
01:56its pages as static pages, and we can just FTP those up to some location on
02:00the public Internet?
02:01And it really doesn't work that way.
02:03That's not how SharePoint does things.
02:06However, the idea is kind of sound.
02:09The idea is you probably want to work on this portal and develop your pages on a
02:14machine that's internal to your organization, within your own firewall, and then
02:18move the pages that you've created to a public location.
02:23You can do that. Both of those machines need to have SharePoint installed, but
02:27there is an option in Central Administration to do what are called Content
02:32Deployment jobs, where you could develop on an internal machine.
02:35When you finish developing all your pages, on a nightly, or a weekly, or
02:40hourly basis, it can find all the latest published pages and move them to a
02:44new SharePoint server.
02:46Now, while these are mostly systems engineering tasks, they are things
02:50you should be aware of if you're using SharePoint to make a public Web
02:54site available.
Collapse this transcript
Building out the Publishing Portal with Publishing Sites
00:01So if you are going to use the Publishing Portal, let's take a look at how you
00:04start to build this thing out.
00:06Take a look at the Navigation Bar along the top here.
00:10We've got one link to something called Press Releases and if I click that link,
00:14it takes us to this rather bland page.
00:17What it's really doing here is taking us from the Publishing Portal home
00:21page into a subsite.
00:24That might sound like a strange thing to do.
00:26It's just the way that the Publishing Portal is built.
00:30You're probably very used to building out Web sites and building out your,
00:33say, navigation bars to have perhaps a product catalog, or an About Us section,
00:38or a Contact Us section.
00:40Well, the way that we start to build out different sections of a Publishing
00:44Portal is by adding new Web sites to this site collection.
00:48That might sound like a bit of overkill, but in fact, it's really, really
00:51simple, because you expand the publishing portal by creating new sites.
00:56And if I use my Site Actions menu and say Create Site, you might think well,
01:01what kind of site do I add?
01:02Do add a Team site, a Blank site, a Document Workspace, a Wiki site, a Blog? What do I do?
01:08You have exactly one choice.
01:11When you've got a publishing portal, the only way you can build this out is by
01:15adding publishing sites with workflow.
01:18Now, what does that actually mean?
01:19Well, you can think of the publishing site as really being a section of
01:24your public Web site.
01:26So if I wanted to build an About Us section with 10 bio pages inside it, I
01:32might create a new site, call it About Us, give it the URL, and it has to be at
01:38the location of the parent site, which right now is at ldcsharepoint.com/site/Internet.
01:44So I have to be underneath that and say that's about.
01:46I can only have publishing site with workflow.
01:49I have no other templates available to me. I come down.
01:53I'm going to use the same permissions.
01:54I'm going to use the Top- link bar. I click Create.
01:57And what it's doing is creating a site underneath my publishing portal home
02:01site, and it's adding it to the bar at the top where we've got the About Us
02:06section, and the About Us section, not surprisingly, is another SharePoint site
02:11with its own View All Site Content section, with its own Document Library,
02:16Images Library, Pages Library in it.
02:18It's a very simple site, and this is how you start to build out the different
02:23pages in different sections of the portal.
02:26It's going to give you navigation to the subsites, by default.
02:30This navigation, of course, is still changeable and styleable.
02:33It's still using Master Pages and Page Layouts that we've seen all along the way
02:38here and, of course, it's very simple to build this out because there's only one
02:42kind of site that you can build out in a Publishing Portal.
02:45Now, when it created that About Us site, it did create one page here The
02:50Homepage, which immediately is in a draft status.
02:54If I want to edit that, I can, and I can see here that it's comprised of a
02:59fairly simple page layout with some links on it, some Page Content, that kind of thing.
03:03I can start to add content to that.
03:06If I hit my Site Actions menu and say I want to create a page, it's going to
03:10take me to the typical Create Page site.
03:13It's going to look up all the different Page Layouts.
03:16Once again, the suggestion here is that you will be adding to this, you'll
03:20be creating your own page layouts for your own Public Content for this site collection.
03:25I'm just going to create a Demonstration Page.
03:30It will be saved into the Pages directory with that name.
03:33I click Create, and I can start now adding pages to this publishing portal.
03:38The structure of a publishing portal is really very simple, one of the simplest
03:42SharePoint sites there is.
03:44Yes, because we've got the Publishing Feature on top of it, we do always have the toolbars.
03:50We have to think about Versioning and Status, whether this is published, whether
03:54this is approved, but we're working with the same master pages and page layouts
03:59and css that we've been working with all along.
Collapse this transcript
Understanding the Publishing Portal workflow
00:01If I'm in a Collaboration Portal or a Publishing Portal, I can tell that the
00:04Publishing Feature is turned on just by looking at the Site Actions menu with
00:10not just two or three options, but multiple options and dropdown settings inside it.
00:14That's the same for either the Collaboration Portal or the Publishing Portal.
00:19Or, as well, if I see this toolbar, when I'm editing or creating a page, I know
00:24that I'm using the Publishing feature.
00:26However, there is a little difference between the toolbar in this Publishing
00:30Portal versus this Collaboration Portal.
00:33If I look at the Collaboration Portal here, it thinks I'm editing this page or
00:37have it checked out. It's checked out.
00:40I can check it into Share Draft, or I can immediately Publish it.
00:44In the Publishing Portal, it's checked out.
00:47I can check into Share Draft, or I can submit for approval.
00:51I don't have the Option right here just to directly publish this page.
00:57So what's the difference?
00:58Well, it's not Security Settings.
01:01I have the same permissions on both of these sites.
01:05I am a Site Collection Administrator.
01:07I can certainly mark something as Approved.
01:10I can certainly publish it.
01:12That's not the difference that's going on.
01:14Then you might think, well, are they using a different version of the
01:17Publishing feature?
01:18Is there one for Publishing Portal and another for Collaboration Portal?
01:22No, there's no difference there either.
01:25Both of these sites are using a Pages Directory to store the Web pages.
01:29If I go to my Site Actions > View all Site Content menu, I can see that I'm using
01:34a Pages Directory in my Publishing Portal.
01:37If I go over to my Collaboration Portal, same thing.
01:41In my All Site Content, I've got a Pages Directory.
01:44If I'm flicking back and forth between the two, it really looks no
01:48difference whatsoever.
01:49There is one underlying difference that's causing that behavioral change.
01:55In a Collaboration Portal, the settings on this Pages Library, which is where I
02:00have all these things like do I create Versions of this,
02:04is there a Draft and a Published Version,
02:06well, the first Option I have in this library says, do you require content
02:11approval for submitted items?
02:13And it's set to no.
02:14And that's the default way it will come once created.
02:18It can be changed, but that's the default way it comes.
02:21In the Publishing Portal, if I go to the same Settings part of the Document
02:25Library, Versioning Settings, it says, yes I do.
02:30I require content approval for submitted items.
02:33And what the end result of that means is even if I have very, very high-level
02:38privileges, I can't publish directly.
02:41I have to run through the numbers.
02:43I have to run through the process of approval.
02:46So I could make a change to this page and then say, check in to Share Draft.
02:51I still don't have a Publish button, but I do have Submit for Approval.
02:56When I click that button, what it's going to do is say I'm going to start an
03:00approval workflow this behind the scenes feature.
03:03Again, the real benefit here is that you can have multiple people creating Web pages.
03:08They're not allowed to publish them directly.
03:10But they can kick off this approval workflow.
03:13It comes, by default, with some information that it's going to send an e-mail to
03:18a group called Approvers.
03:20Now the moment, I do have high-level privileges, so I know I'm in the Approvers
03:25group, and that's fine.
03:26You've got some optional information, such as a message you can include, a
03:30due date and so on.
03:31I'm going to click Start to kick this workflow off.
03:34It is actually going to send an e-mail out to anyone in that group to say, hey!
03:38This Page needs to be approved, but notice it's kind of detected who I am?
03:43Even though I said submit for approval myself, it's now refreshed, and the
03:48buttons that I get up here, are the two options, do you want to approve it, or
03:51do you want to reject it?
03:52Well, I'm going to say, Approve.
03:55And then I'm completing the workflow.
03:57I can have some comments to include. Looks good!
04:00Bear in mind, whatever I do here is actually being kept in my workflow history.
04:04So we will have some history about how this actually works and who
04:07approved pages and so on.
04:10So it is one more step that you have to go through, and that's often what you
04:15want for a Web site that's going to end up being a public Internet Web site.
04:20The assumption is that for public content, we want to impose more control.
04:25So the default Publishing Portal has that Require content approval turned on, on
04:30the setting of the pages library.
04:31There's nothing stopping you from relaxing that on the Publishing Portal, or from
04:36the other side of things, even tightening it on a Collaboration Portal.
04:40So let's say on the Collaboration Portal, I couldn't just hit Publish.
04:44I'd have to submit for Approval here, but those are both done by affecting the
04:48settings of the Page's Document Library.
Collapse this transcript
12. Creating Themes
Exploring the existing SharePoint themes
00:00Let's talk a bit more about Themes.
00:03Themes, as you've seen, start off very simple.
00:06In every Site and every Site collection, you have a Look and Feel area with
00:10a Site Theme option where you can start choosing from a selection of prewritten themes.
00:16But let's face it.
00:17They're not really all that impressive.
00:20They do look as if they were kind of created by the same guy with about five
00:24minutes to go before the product shipped.
00:26The problem is what many designers and developers do is kind of ignore themes.
00:31They play with themes early on, they're unimpressed, and they walk away.
00:35But just because the built-in themes are kind of dull, doesn't mean they're not useful.
00:40They are.
00:41It's quite often that I work with designers who are trying to do everything
00:45with master pages, when what they really want to do could be accomplished using Themes.
00:50So what are we doing when we select a theme?
00:53Well, I'm going to go to one of the simpler ones here. This is Belltown.
00:59What's actually happening is when I select a theme in my Site Settings, over on
01:04the Web Server, I'm going to just go to my Remote Desktop, where I'm logged
01:08into the Web Server.
01:10I've mentioned this location before.
01:12You don't have access to it, if you don't have access to the Web Server.
01:15But SharePoint, the actual program, that's located at C/Program Files/Common
01:22Files/Microsoft Shared/Web Server Extensions/12, and a lot of developers of
01:28SharePoint become very familiar with this.
01:30And inside the TEMPLATE folder here is a folder called THEMES.
01:35And if you look at the names of the folders here, they appear to match the
01:39names of the themes that you can select from, and that, of course, is what's
01:42happening, BELLTOWN, BREEZE, CARDINAL that kind of thing.
01:46So these are theme folders and really what a Theme is, if I select say CITRUS
01:51here, it's a selection of Images and some CSS, and that's pretty much it.
01:58They are CSS and images packaged together and given a name, and they are
02:02effectively used on top of your master page.
02:05We're still using master pages here.
02:07Themes are just coming along after the fact and changing a few things.
02:11But here's the deal. When you say that you want to use one, if I were to say
02:17that I want to use the JET theme, and I'll go and select JET over here and click Apply,
02:23well if I go back to SharePoint Designer, where I have this site open, I'm just
02:28going to notice this folder list here.
02:31That was the way it was before I selected a theme.
02:34I'm going to refresh it, and you're going to see a new folder pop-up.
02:38I've now got an _themes folder inside it, having Jet, it's basically going to
02:44the Web Server, taking a copy of that theme folder and then copying it into
02:50the content database for this particular site, just for this site, and that's important.
02:58When you apply a theme, you're really copying it.
03:02That means that if I make a change to some of the CSS in here, and the classic
03:08example is that we have a theme file with a very odd name here, which is the
03:12name of the theme and usually a set of numbers like typical in U.S. 1011-65001,
03:18which is the code page of the theme.
03:20It's not really important.
03:21You'll just find a file with the name of the theme ending in CSS, and there is a
03:26whole bunch of stuff here. These are the changes that the theme is making over
03:30and above what's being done in core.css.
03:34So it's not an either/or. Sometimes I'm asked should I use themes or master pages?
03:39Well, you'd often use both, really.
03:41All depends on what you're trying to do.
03:43If you just need to change a color, or a font, or an image, use Themes.
03:48If you need to change the actual layout of the page, use Master Pages.
03:52If SharePoint have been created with superb structural HTML, you might have been
03:57able to use themes for everything.
04:00It's quite common to see CSS applying a whole bunch of layout to a well-written site.
04:05Well, Microsoft didn't write it that way so you can't, so you're really using
04:09themes for the small stuff, the fonts and the images.
04:12Now one of the questions I'm often asked is what about the default theme? How do
04:16I get back to the default theme?
04:19And really, there actually isn't a default theme.
04:22There's basically SharePoint with a theme applied and SharePoint without themes.
04:26If I were to highlight this _themes directory, right-click it and delete it, and
04:31then go back to the Web site, I'm back to my Classic SharePoint Basic Blue. This
04:38is the way it looks with core.css being applied.
04:41There is no theme on top of this one.
04:43The two things to remember about Themes that may not seem obvious:
04:48One, if you apply a theme and then go into SharePoint Designer to change it, you
04:53are only changing it for yourself, for that one site;
04:56two, if you change the theme on the Web Server, and that can be useful, you're
05:03not changing it for anyone that's already chosen that theme, because they made
05:07their own copies, but we're going to see how to do both.
Collapse this transcript
Copying a SharePoint theme
00:01If you want to edit one of the existing SharePoint themes, there is a very big question.
00:05Do you want to edit a theme just for one site that uses it, or do you want to
00:09edit that theme for every site that uses it?
00:12Remember that when you choose to apply a theme, you're copying it from the
00:17theme definition files on the server and storing it in the content database for that one site.
00:23That means you have two places you can edit it, directly on the SharePoint
00:27Server, and this is possible.
00:28I could go into one of these folders directly, find the CSS files, which we'll
00:33typically find two: theme.css and mossExtension.css, which as you might guess, is
00:41extra theme stuff for MOSS only.
00:43What happens is when this theme is chosen by a site, it combines the CSS files
00:50into a theme.css file with a longer name, something like in this case,
00:55Belltown1001-65001.css.
01:00That's really the theme file, and any file that ends in extension .CSS is being
01:05combined on the fly.
01:07If, for example, I choose Belltown over here in the Site, and click Apply, and
01:16then look at it in SharePoint Designer, I will find my new themes folder with
01:21a copy of Belltown inside it and this Belltown1001-65001.css, which is the
01:30combined CSS files.
01:32Now the reason that you might change, for example, Belltown is if you wanted to
01:37have a Theme that was quite close to say Belltown.
01:41If you just want to have the most basic Theme there is, one of the themes, which
01:45is called Simple, is probably your best choice.
01:48Simple has the minimum amount of styling to it.
01:51There is still some.
01:52There are some images involved. There is some CSS.
01:55But if I go back over into my _themes folder here, I'm going to Refresh it by pressing F5.
02:01Belltown folder has disappeared.
02:02I now have the simple folder, which does have my combined CSS file, but not an
02:08awful lot of stuff there.
02:10I can quite happily make changes to this.
02:13One of the reasons I might do it is I can treat this almost as a custom CSS folder.
02:18Anything you put in your theme.css will be applied after core.css.
02:24So it's not a bad place to put your own changes.
02:27If, for example, I just wanted a way of working with this, I could even go into
02:30this file, delete everything out of it, and just apply my own changes.
02:36It would really be like adding my own CSS on top of the default theme, which is
02:41really just core.css.
02:43But what about the alternative? What about changing them on the server? Can you do this?
02:48Well, the answer is yes, of course you can. I wouldn't.
02:52I'm not a big fan of editing the existing theme files on a server.
02:55One of the reasons why is Microsoft has basically gone on record to say if you
03:00are changing one of the existing themes or anything in the 12 Hive, we kind of
03:04reserve the right to overwrite any of your changes, because these are our files,
03:09and if we do a Service Pack or a Hotfix, these belong to us.
03:13But could I directly edit these files? Sure!
03:17I could open these up in, say, a Text Editor like Notepad, and make some changes,
03:22and they would instantly now be part of that theme file on the Web Server.
03:25Here is the only problem. Because anyone who is using this theme has already
03:31copied it, it would not affect existing users of the theme.
03:35You'd have to apply it again.
03:37Someone would have to go into their site settings, change their theme to
03:40something else, and then change it back to this one before they'd actually copy
03:45down all those changes again.
03:46So that's not all that useful either.
03:48But if you do want to create say your own corporate theme, and that's not a bad thing to do,
03:54one thing you can bear in mind, apart from changing them directly on the server,
03:58which wouldn't be a great way of doing it, is get a test site, copy one of the
04:02other themes into a particular site, and apply it like this one, like the Simple
04:07theme, which is a good choice.
04:09Remove a lot of the CSS, start adding your own, and you can test it on
04:14this particular site.
04:16And then when you're happy with your changes, copy this CSS across onto the Web
04:21Server, and make it available for other people to use.
04:24Then it can be applied to multiple sites.
Collapse this transcript
Editing a SharePoint theme
00:01Just like master pages, if you want to make a new theme, the easiest way is to
00:05copy an existing one and change it.
00:08Now to do this, I'm going directly onto the web server here.
00:13So I need to have access to the 12 Hive on the web server.
00:17I'm going to grab one of the folders.
00:18If you have a theme that you want that you want to change, perhaps one of the
00:22themes is quite close to what you want to do, feel free to grab that one.
00:26Otherwise, my suggestion is grab the one called Simple, because it is the
00:30smallest one with the least amount of images to it.
00:33I'm going to right-click and say Copy, and then I'm going to Paste.
00:37So I have both the Simple theme, which is the original one there, and the Copy,
00:42and I'm going to create a wonderful, awesome theme here.
00:45So I'm going to call my theme Awesome. Well, then what?
00:50Well, what's inside it?
00:52We've got a series of GIFs.
00:54Most of these are background images and images for borders, that kind of thing.
00:58I do have two CSS files.
01:00I'm going to sort by Type here.
01:01I've got mossExtension.css and theme.css.
01:06Theme.css is the key place where you're going to put your own CSS styles, IDs and classes.
01:13I'd leave mossExtension.css alone for the most part, because again, that's very
01:17specific to the MOSS stuff itself.
01:20But if you want to take a look at some of those hover styles, feel free to do
01:23that, because remember, both of these are going to be combined when this theme is applied.
01:28The issue is just renaming this folder to the word Awesome is not going to do it for us.
01:34What I need to do, apart from the CSS themselves, is in this folder, I'm going
01:38to find this file called SIMPLE.INF.
01:40That needs to be renamed, and just for the purposes of convention, I'll keep it
01:46with any case sensitivity that seems to compare.
01:49So it was all in uppercase.
01:51So I'll rename it to the same name as my theme, all in uppercase.
01:55I'm going to double-click it and take a look, and here it says, oh, the title is Simple.
02:00Nope, the actual title here is Awesome, and in fact, I can see that this title
02:05is all the way down.
02:06These are for different country codes and so on.
02:08So let's just do a quick Find / Replace, and then Save that.
02:18We have at least here now done all the changes that we need to do to actually
02:22make this theme available.
02:24Obviously, at the moment, it's going to be identical to the Simple theme, but we
02:27can at least prove to ourselves that it works.
02:30However, there is one more thing that we're going to have to do to make
02:33this theme available.
02:35If I went back over onto the server right now, and said that I want to select it,
02:40I'm not going to find it.
02:41It won't appear in my Site Theme list yet.
02:45But this screen is actually a good reminder that the themes have their own
02:49preview files as well.
02:51Can we do one of those?
02:52Absolutely, we could do.
02:54If you want to create your own Theme Preview file, you're going to take a
02:58screenshot of what the site looks like with that theme applied.
03:02Shrink it down to about 375 x 231.
03:06It would need to be saved up on the 12 Hive on the Server.
03:10It needs to be in Template > Images.
03:15I'd probably make a custom folder here, and save it in there to make it accessible.
03:20If you are wanting to make it accessible across every Site and every Site
03:23collection, it's going to have to be on the server.
03:25There would be no location, no Document Library you could save it.
03:29You'd have to put it on the server itself.
03:31I'm not going to do that right now, but you could create your own Preview
03:34image and use that one.
03:36We'll see a little later where you would put the path to that image.
03:40So after creating this Theme, you will find that it won't be available yet.
03:43That's okay, because you wouldn't want people selecting it while you're
03:47still working on it.
03:48We're going to have to do one more thing, before our theme is ready to
03:51be selected.
Collapse this transcript
Showing themes
00:00Just because a theme folder exists, it doesn't mean it'll show up in this Site
00:04Settings Theme page.
00:06I'm going to go back over to the Web Server, where my themes are, go into my 12
00:11Hive and into TEMPLATE > THEMES.
00:14That's where I can see all my themes, including my new one that I created.
00:19SharePoint is not looking at this folder list to see what's available, so you
00:24can experiment with themes here to your heart's content.
00:27I'm going to go back up the folder structure a level, to the Template area, and
00:32then I'm going to go into the LAYOUTS folder.
00:36Inside the LAYOUTS folder, I'm going to see another folder called 1033.
00:40This could be 1057 or another number depending on what country code you're using.
00:45This is English for the U.S. Inside that, going to come down a little further,
00:50we're going to have a file called SPTHEMES.XML.
00:57Now, what I'm going to do is first copy and paste this file, because I don't
01:03want to mess this one up.
01:04So I'm just going to kind of rename this one as SPTHEMES.old, while I work on
01:11the new one and make my changes to it, but I certainly want to make sure I've
01:15got a copy I can recover.
01:17I'm going to open that up with Notepad.
01:19And what I'm looking at here is a series of blocks, each of these template
01:25blocks written in XML that are describing a theme, what it's called and what
01:31any Thumbnail or Preview Image is.
01:34And all I have to do is copy one of these blogs across.
01:38I'm going to copy this one here. In fact, let me find the simple one, because
01:43that's the one I was working with. Copy it. Paste it. Again, I'm going to go with
01:51the typical matching case sensitivity, so where it's Lowercase, I'll use
01:55Lowercase, where it's Uppercase I'll use Uppercase.
01:59I've even got a Description here.
02:03This is my new awesome theme.
02:08This would be where I put a link to any images that I wanted to use as a preview.
02:14I did not actually create any and it's using the images/thsimple.gif.
02:20You'll find that this is under the Layouts folder in the 12 Hive, so you can
02:24find out where this file is and put your own stuff beside it, or create a custom
02:28folder, which would probably be the better idea to do.
02:31I'm going to save this file.
02:33I'm going to go back over into my Site Actions > Site Settings and click the Site Theme again.
02:39Now I do see it here.
02:42It's now showing up under the Awesome theme. If it doesn't, it might just be
02:46that the Server needs to be refreshed, and you could tell it to your Farm
02:50Administrator about doing what's called an IISReset, or Recycling the Application Pool.
02:55I'm not going to bother doing that, but that's something that we could do.
02:58If you have multiple Web Servers, you would have to repeat these changes
03:03across all of them, which is one of the downsides of themes, but it does mean
03:07that you now have CSS and images that can be repeated across multiple sites
03:11and multiple site collections.
03:13So I'm going to Apply that, and not surprisingly, it's just giving us
03:17the equivalent of the Simple theme, because I haven't done any
03:20particular CSS changes.
03:22If I did want to do CSS changes on this Server, I'd have to remember.
03:26I'd have to reapply them and have to change this theme to something else, then
03:30change it back, because it is copying all those theme files down to the content
03:35database for this particular Web site.
03:38Bear in mind that theme development can seem like it's a bit of a pain, but it's
03:41something that you wouldn't have to expect to do very often.
03:45You'd expect to develop it once, put it up on the Web Server and just have
03:49dozens, or even hundreds of Web sites apply the same theme.
Collapse this transcript
13. Customizing Navigation
Default navigation in SharePoint
00:01Every SharePoint Site has built-in navigation.
00:03By default, you have got the Navigation Bar along the top, and you've got the
00:07Navigation Bar down the left-hand side.
00:09What's not so obvious is what they can and what they do represent.
00:13And really, you need to know two things: what do they show, by default, and what
00:17can they be changed to show.
00:20And if you assume that whether you're on a Publishing Site or a Collaboration
00:23Site, these links can be changed to show pretty much anything,
00:27the main thing to understand is what do they show when you leave them to their own devices?
00:32Because bear in mind, SharePoint is trying to help you.
00:35It will automatically create a lot of these navigation links for you.
00:40So step one, assume that out of the box without customization, the Top Bar
00:46represents pointers to different sites in this Site Collection, and this Top
00:51Link Bar can be shared.
00:53This Top Link Bar can be shared across different sites in the site collection,
00:58whereas the left-hand side, the Quick Launch Bar, is things inside this
01:03particular site and is not shared across sites.
01:06Even if it might look similar, it'll be a different Quick Launch Bar for every
01:10site in the Site collection.
01:12So in a Collaboration Portal like we're looking at here, right out of the box,
01:16the Top bar is going between the different sites in this Portal.
01:19That's a little simplistic, because it can and does go deeper.
01:22Sometimes, for example, we don't have a left-hand bar.
01:26Sometimes the Top Bar can be changed to point the sites in other Site
01:29collections or even Public Websites.
01:32If, for example, you create a Team Site with a whole bunch of sites underneath
01:36it, it will try and add these links to the Top Link Bar, and you can check that
01:40for yourself, just by having a site collection and adding a bunch of sites.
01:44However, what you'll find is that, by default, the Top Navigation Bar shows the
01:47top-level site, in this case Home, and one level of subsites directly
01:53underneath the Top Site.
01:55It doesn't show a subsite of the Marketing Site or a subsite of the Benefits
01:59Site, or a subsite of the Second Benefits Site.
02:02Now it doesn't even let you know whether those exist or not.
02:04I'd have to go into those individual sites and see if that were the case.
02:09One of the reasons it doesn't list all of the sites in the Site Collection is
02:12because that could potentially be very confusing.
02:14You could have 100 tabs along the top.
02:16Now these links are Security trimmed.
02:19If you don't have permission to go to one of these sites, SharePoint won't
02:23show you the link to that site, and that's whether you're in WSS or in a MOSS Publishing Site.
02:28But if the Top Link Bar is going between different sites, the Quick Launch Bar
02:31is the content on this particular site, though it may show subsites.
02:35But as we've seen multiple times, this is not authoritative. This can be changed.
02:40It doesn't tell you exactly what's in this site.
02:42If you want to see that, you're going to use the View All Site Content Link.
02:46Now one all the challenges that Designers first come across is even though the
02:50Navigation Links look very similar in WSS Sites and in MOSS Publishing Sites,
02:55the places to change these Navigation Options are very different, and we're
02:59going to explore both of them.
Collapse this transcript
Customizing the Quick Launch bar and Top Link bar
00:01Let's talk about editing Navigation Options in a WSS site.
00:05This is pretty easy because really, at the end of the day it's quite dumb.
00:09So I'm looking at a very simple WSS Site here.
00:12I'm at the top-level site of a site collection, which I can see by the fact that
00:16this first Tab is highlighted, and I have nothing above me in my breadcrumbs.
00:21The way that I have built this Site Collection is I have one top-level site and
00:25three subsites directly underneath it.
00:27If I were to add a new site to this site collection, and I'm at the top-level
00:32site, so I'll be creating a First level Sub-site.
00:35I'll just make a Blank Site, giving it a Title, which can be changed later.
00:41Giving it a URL which can't, and selecting one of the Templates.
00:45I'm going to select all the default values, which says, Yes,
00:48I'm going to display on the Quick Launch Bar, Yes,
00:51I'm going to display on the top link bar and Yes, I'm going to use the top link
00:54bar from the parent site.
00:56Remember, the Top Link Bar can be shared across multiple sites.
01:00Quick Launch Bar is really always individual to a particular site.
01:05Hit Create and what we'll see now is I am in this new site, but I can see that
01:12this top link bar is shared across multiple sites.
01:15I'm jumping between the Home Pages of multiple sites here and even if
01:19they're using different themes, this Top link bar is shared, whereas the
01:23Quick Launch Bar is different.
01:25That's the default behavior of SharePoint.
01:28When you're creating a site, that's a first- level subsite, it will add to the Top Link bar.
01:33You can, of course, change this, and to change anything that we're looking at
01:38here, we want to go to the Site Actions > Site Settings, and there's a Top link
01:44bar and Quick Launch link in the Look and Feel section.
01:48If I select the Top link bar and again, I want to be very careful about where I am,
01:52I can see exactly what the tabs are.
01:55I can manually add a New Link, which gives me a fairly dumb entry here.
01:59I just get a URL and a description.
02:01I'm going to cancel that, or I can click Change Order and not surprisingly, I
02:05can move some of these things around.
02:08What's not so obvious is how I might say change the text that's in there?
02:12Because I can't mouse over any of these.
02:13However, the Icon is actually clickable beside each one.
02:16So if I select Second Benefits here, for example, I can jump in and perhaps
02:22change the name to something else, click OK and change that Top link bar that's
02:27being shared across all these different sites.
02:32If I were in one of the subsites and go to the Site Actions > Site Settings of
02:36the subsite, jump to Top link bar, it'll tell me This Website inherits its top
02:42link bar from its Parent Website.
02:44If I did want to have my own Top link bar in this subsite, I could, not
02:49surprisingly, click this Link to say Stop Inheriting Links and then create my own.
02:54Right now, you can see I'm back to just one.
02:56This Home actually represent the Blank Site, the subsite, and the only way I
03:01could navigate up to the parent is by using the Breadcrumb up at the top.
03:05I'm going to select to Use Links from Parent, and we go back to where we were before.
03:10So that's how to Edit the Top Link Bar in WSS, very straightforward, not really
03:14a lot to it, a little bit manual, you might be thinking, and you'd be right.
03:18If I go back to my Site Settings, I've got the Quick Launch Bar, and this will
03:22different for every site.
03:24Again, this is typically showing the contents of this site you're actually in.
03:28In this case, it's got a to Pointer to a Shared Documents Library.
03:32I've got a pointer to a single Web Part Page that was created earlier in the course.
03:36I've got links to three Lists, to the Discussion Board, then I also have links to
03:41the subsites, because they are contained inside this one.
03:44Again, you can add a New Link.
03:47You can add a Heading.
03:48So, for example, the default headings are Documents, Lists, Discussions and
03:52Sites, but you can add your own.
03:54Once again, the Icon here is clickable on these, so if I wanted to change the
03:59Title of any of these, this is one of the built-in ones, Documents, and change
04:03it to Site Documents, I can do that.
04:08Clicking back on the Home Page, we can see how that changes the Quick Launch Bar.
04:12Yes, it's a very manual process and one of the things I'm often asked is how do
04:16I get rid of one of these links temporarily?
04:19And really there is no 'temporarily' when you're working with the Quick Launch
04:23Bar or the Top Link Bar in the WSS Site.
04:26If I wanted to get rid of one of these links, the only way I can do it is by
04:29clicking the icon that exists and clicking Delete.
04:32It says, are you sure? Yes I am.
04:34Click OK. It has gone.
04:36If I want to re-add that link, I have to add it again.
04:39I have to find the URL and manually add it as a New Link.
04:43So although this might seem quite manual, and it is truly only an issue if you
04:47are changing the default navigation, remember that SharePoint will add many of
04:51these links for you, and it will take care of security trimming them.
Collapse this transcript
Editing navigation in Publishing Sites
00:01If you're working with MOSS publishing sites, your navigation options go a little deeper.
00:05How you edit them is going to change, and you can do some things you can't do
00:09with WSS out of the box, like having dropdown items.
00:13There is also a couple of interesting things we can do with SharePoint Designer,
00:16and we'll see that in a moment.
00:18One of the first things we have to deal with is a name change.
00:21Instead of having the Top Link bar and the Quick Launch bar, we still have these
00:25navigation sections, but they are now referred to as Global Navigation and
00:29Current Navigation, and I'll show you exactly where they're called that.
00:33I'm going to go to my Navigation Settings.
00:35So down to my Site Actions > Site Settings menu and across to Modify All Site Settings.
00:42Now in WSS, if I were to look in my Look and Feel section, I would see two links,
00:47one for the Top link bar and one for Quick Launch.
00:50Those have disappeared
00:52now that the Publishing feature is enabled, and what I have is Navigation, which
00:56has both of them inside it.
00:58I could also get to this directly from the Site Actions menu.
01:02Site Actions > Site Settings > Modify Navigation takes us directly to the same
01:09link that you'd get if you clicked it under the Look and Feel section.
01:12This is SharePoint.
01:13There is often a dozen ways to get to the same place.
01:17So what are looking at here?
01:18Well, I can tell, just by looking at this, there is a little more to it than
01:21there was in a WSS site.
01:23I've got this first section here saying Subsites and Pages.
01:27Do I show subsites? Yes.
01:28I do. Do I show pages?
01:30Well, apparently, I do.
01:31I may not know the impact of that right now, but we'll explore that in a second.
01:35Do I sort these things manually, and that's checked, by default, and that really
01:40just means you have the option of moving these links around.
01:43This lower section here in the Navigation Editing is showing me what's being
01:48shown in Global Navigation, what's being shown in Current Navigation and again,
01:52that means Top link bar and Quick Launch bar.
01:56I do wish that the SharePoint guys had made it so the terms were consistent
02:00across WSS and MOSS, but we're just going to have to deal with it.
02:04Think about it this way.
02:05The Top Link bar is the one that can be shared across multiple sites in the site
02:09collection, so it's kind of global.
02:11The Quick Launch bar is independent for each individual site.
02:15It's what the site you're currently in, so that's the Current Navigation.
02:20Now right now, they look like they're showing the same content.
02:22They would appear a little different, but they are showing the same content.
02:26We do have the ability to mess around with these.
02:28I could decide to take my Site Directory and make that one the first link by moving it up.
02:34I could decide to Hide the link to the Document Center, and that would not show
02:38up, maybe I am doing some work with it.
02:40I don't want it show up immediately.
02:42I could Add a Heading. It's not going to do much work in my Global Navigation,
02:46but in my Current Navigation it'll have more of an impact.
02:48I could manually Add a Link.
02:50There is a bit more of a robust screen here for adding a link to somewhere else,
02:54which includes having an Audience and do we Open this in a new window.
02:58We'll talk about Audiences a little later on, but it's a way of targeting these
03:02links to suggested groups of people, not security.
03:06It's really all about making your content a bit more useful.
03:10As I mouse over and select each of the items, in the lower section of the page,
03:14it's telling me a bit about what this is and right out of the box, by default,
03:19everything is going to be a subsite that's actually showing up.
03:22And it's telling me the URL and what this kind of site actually is.
03:25But I've made a couple of simple changes there, so let's persist those.
03:29We've got Sites now at the top and Document Center is hidden.
03:32If I click OK, we have that rearranged navigation across the top.
03:36Now we are going to go deeper into a few of these pieces, such as how do we get
03:40dropdowns, how can we change this, but while we can do other things to control
03:45how these menus appear, this is the core way that you and your contributing
03:49users will be working with navigation in your publishing sites.
Collapse this transcript
Editing and styling navigation controls
00:01So you are going to add, edit and delete your actual navigational links using the browser.
00:06You're going to do those through your Site Actions > Site Settings > Modify Navigation.
00:11But using SharePoint Designer, you can actually work some magic about how those
00:16links are going to appear, because your navigational links, both the Top Link bar
00:21and the Quick Launch bar, or if you prefer Global Navigation and Current
00:25Navigation, are part of the Master Page.
00:28So I am going to go into SharePoint Designer where I have this site open, and I
00:32have default.master checked out.
00:36Both the Top Link bar, or Global Navigation, and the left-hand side the Quick
00:41Launch bar, or Current Navigation, are part of the master page.
00:45And in fact, even though they look very different, they are being generated the same way.
00:50They're both actually using an ASP.NET control.
00:53What that really means for you, as a designer, is they are drawing their
00:56information from some data from the database.
00:59We know that must be the case.
01:00But the benefit is these are customizable.
01:04We can change things about how they appear, and in fact, we must be able to do
01:08that because one of them right now is appearing horizontally and one of them is
01:12appearing vertically.
01:13But they're both actually using the same piece of code.
01:16What do I mean by that?
01:17Well, if I highlight one of them and move into Split view,
01:21I can see that there is a whole bunch of stuff selected here.
01:24Now you might look at this and go, I don't want to mess with any of this, and
01:28you don't really have to, but just clicking between the two I can see that there
01:32is a whole bunch of settings being selected.
01:35If I want to avoid the code and just use Design view, when I have the top
01:39navigation selected, I actually have a window over here I'll just expand it a
01:43bit, called Tag Properties, which is saying I've got a
01:46SharePoint:ASPmenuTopNavigation.
01:49Now what does that mean?
01:51Well it really means generate the navigation option using these settings.
01:55And if I actually browse through the settings, we won't go through all of them,
01:58I've got something very straightforward.
02:00For example, here, Orientation that shows up in blue because it's actually got a setting to it.
02:05That's not the default.
02:07It says Horizontal.
02:09This is going to show up from left to right, across the top, wherever it's positioned.
02:13Whereas if I was to select the Quick Launch section and come down to the same
02:17setting, it would say well my Orientation is Vertical, and that's the first key
02:22difference between the two.
02:23Well what else can we do?
02:24Well, if I start to browse through that, I can see a whole bunch of styles.
02:29I have got things like DynamicHoverStyle, what's the Background Color,
02:32what's the Border Color?
02:34You can minimize and open these up.
02:35DynamicmenuItemStyle.
02:36Let me drag this a little wider so we can see more of it, StaticHoverStyle.
02:41And when it talks about Dynamic and Static it means what am I displaying all the
02:46time, which is the static stuff,
02:48and what might I display as a dropdown or a flyout, which is the dynamic stuff?
02:53So it's very customizable, actually straight in SharePoint Designer.
02:57Not only that, but if we know what's meant by static and dynamic, static is what
03:01shown all the time, dynamic is what shown with a mouse over, for example,
03:05we've got some settings we can play around with.
03:09I'm highlighting the Quick Launch bar here, and it says the
03:12MaximumDynamicDisplayLevels is zero.
03:15I'm not going to do any kind of dropdown or flyout, but I am going to show two
03:19levels all the time, which in this case might be the News site and any pages
03:25beneath the News site.
03:26I am going to change those just to play around with them.
03:29I'm going to change DynamicDisplayLevels to one, and StaticDisplayLevels to one.
03:34And when I click off this, it's going to kind refresh itself and shrink down,
03:39because now it's not showing two levels statically.
03:42It's only showing one level statically.
03:44Okay, what does this actually mean?
03:45Well, I'm going to save this default.master, make sure you've clicked off any of
03:51the controls that you're editing, otherwise you'll get a message.
03:53Now because this is in my master page gallery, I am going to have to go through
03:57the whole process of checking it in and publishing it and approving it.
04:01I can do that either from SharePoint Designer, I'll say Check In and Publish a major version.
04:06It will say, The document requires content approval.
04:09Do you want to view or modify that?
04:11Well, I am going to say No right here because I have to do that through
04:14the browser anyway.
04:15I'm going to go to my Site Actions > Site Settings.
04:18I need to find my way to my master page and Page Layout Gallery, jump in there
04:23where I should see my page marked as pending, which it is.
04:27Here is default.master with the Pending status. Because I do have the correct
04:31permissions, I can say Approve/Reject this.
04:34Click Approved, click OK.
04:36Then go back to the Collaboration Portal.
04:39Now I don't have to change anything about using this default.master, because
04:44this is the one I'm using, but notice that immediately I have got the Quick
04:47Launch bar, and now having flyouts being generated.
04:50And we didn't have to do anything.
04:52I didn't have to write any JavaScript.
04:53This is actually happening automatically.
04:56So back in SharePoint Designer, again, the great thing is that just by working
05:00with the settings of these controls, you can affect quite a lot of things.
05:04I do recommend that you particularly take a look at the Styles section, where
05:07you can see how you can build out your different styles for both the static and
05:12dynamic parts of the menu.
05:14You have things like Orientation.
05:16If you wanted to, you could make your Quick Launch bar Horizontal and your Top
05:20Link bar Vertical. It's up to you.
05:22Going back up with some of the settings, obviously we had experimented there
05:26with dynamic and static display levels, but there is a lot that you can
05:30experiment with, and using these you can really do a major part of rewriting how
05:35your navigation is presented in your own designs.
Collapse this transcript
Customizing navigation with audiences
00:00The links shown in your Navigation Controls, both the Top link bar and the
00:04Quick Launch Bar, are security trimmed.
00:07What that means is SharePoint is looking at them and making sure that nobody
00:11should be shown a link they couldn't click on.
00:13You don't want to have a link you click on and immediately get access denied.
00:18But sometimes it's not so black and white, whether you should show a link to someone or not.
00:23You may have Links that you want to show to one group of people and not to
00:27another, but you are not trying to prevent the second group from going to that link.
00:31You don't think it's useful for them.
00:32Let me give you an example.
00:34Let's say I have a site called New Hire Information, and it's somewhere in my portal.
00:41It doesn't really matter where.
00:43And it's common information for New Hires.
00:45So how do get to the 401(K)?
00:46How do I register for the health plan?
00:48That kind of thing.
00:49Now this is the kind of site that I don't want to always show to everybody.
00:54I don't mind if everybody gets to read this.
00:56I just don't want to always hit them over the head with it.
00:58So I'm going to take the link to that site.
01:01Again, it doesn't really matter where it is.
01:02It could be in a completely different site collection.
01:06And back on the home page off my portal, I would like it to show up here, just
01:11for people who've joined the company in the past six months.
01:14And what we're going to do is use something called Audiences for this.
01:16I'm going to add a link to the site.
01:19So I'll go into my Site Settings > Modify Navigation.
01:24And then I'm going to manually add a link to my Global Navigation, which is my
01:27top link bar, Add Link, and I'll say it's New Hire Info, paste in the address of that site.
01:38I'm going to leave the Description and Audience, because we're going to come back to this.
01:41I'm going to click OK.
01:43I'm going to put that right at the start.
01:46So the first link after the Home tab, click OK, and there we go, and it's
01:53right there at the top.
01:54It might be very useful.
01:55I could also put it in the Quick Launch Bar, if I want to, but let's say this is
01:59the quick and easy way of doing it. Okay, so what?
02:02Well in another browser right now, I'm logged in as a different user,
02:06in this case Administrator.
02:07Let's say this person has been with the company for five years.
02:10They don't need to see New Hire Info.
02:13Now I could do that with security.
02:15I could say they're not allowed to see it, and then SharePoint would take care
02:18of hiding that from them.
02:20But it's not really what I'm after.
02:22I just don't think it's all that useful.
02:24So back in my portal here, I'm going to go back into that Navigation Options,
02:29select that link and click Edit, and I could've done this when I first created it.
02:34I have this section here called Audiences.
02:37An Audience is something that gets created in SharePoint Central Administration.
02:41It's a set of rules.
02:43You could have an Audience that would be everybody who reports to Bob Smith.
02:48You could have an Audience that is anyone who's got a last name beginning
02:51with B. You could have an Audience of anyone who's start date was in the past six months.
02:57Now those get created in central Admin.
02:59I'm not actually going through the process of creating them, but I am going
03:02through the process of using them.
03:04If I know what it's called, I could type it in, but I do have a little button
03:08here where I can see that I've got a couple of demonstration Audiences and
03:13here I've got New Hires.
03:14I am going to double-click and add it, and I know because I just created the
03:19Audience, that right now, I, as Simon A, I'm in that Audience.
03:24So I'm going to click OK and come back to this portal, and I see that link,
03:28and I can click on it.
03:30If I go over to the other browser where I'm signed on as the Administrator, and
03:34refresh that page, I don't see that link.
03:37It's just not useful.
03:38It doesn't mean I don't get to go there.
03:41If I paste it in the address of that site, I can still see it.
03:45I am allowed to see it, but I don't need it to be shown to me all the time
03:49whereas over here it's very obvious.
03:51And what can happen is your Audiences can be a rolling set of rules.
03:55So if it's based on, for example, a hire date, which is stored in my user
04:00profile, and the user profile is all the information that's stored about a particular user:
04:04their e-mail address, their name, their birth date, whatever information your
04:08organization is storing,
04:10you can make an Audience based on that.
04:13Audiences are easy to set up and a way to make your content presentation much
04:17more useful to the people looking at it.
04:19You can use Audiences on links.
04:21You can use Audiences on Web Parts, and even on individual pieces.
04:25Again, it's not security.
04:27You are not trying to prevent people from seeing certain content.
04:30You're just trying to make it more useful.
Collapse this transcript
Customizing the breadcrumbs
00:00Breadcrumbs are those lists or the links that should tell you where you are in a
00:05site hierarchy, and they should be pretty simple but, unfortunately in
00:09SharePoint, they are small but annoying part of creating a custom look, because
00:13they're not that friendly to customize. Let's see why.
00:16Well first off, let's talk about breadcrumb basics here, and you might think
00:19they're not worth discussing, but have you noticed that you have at least two of them.
00:24We have the what's called the page level breadcrumb here, typically found
00:28underneath the top link bar, that's going to tell me I am in the Sample News
00:31Article, inside the News site, which is clickable inside the
00:35Collaboration portal.
00:37And I can go up one level, and I can go up another level and so on.
00:40They behave kind of like you'd expect them to.
00:43But there's also a global breadcrumb up at the top.
00:46This one doesn't give us too much trouble most of the time.
00:49So the question is what can we do with them?
00:51Well the answer is yes.
00:52They can be customized.
00:54But there's not a great deal you're going to do with the breadcrumbs themselves.
00:57I'm jumping over into SharePoint Designer and taking a look at the
01:01default master page.
01:02Like I could select the navigation sections, I can also select the
01:07breadcrumb sections.
01:08I'll go up the global breadcrumb up here, and I've got the page level breadcrumb here.
01:14Like the navigation section, they both have their own set of settings that
01:19you can either look at directly in the code or by looking at the Tag Properties Pane.
01:24However, unlike navigation, there's not an awful lot you would do here.
01:28You might do things like change the path separator from a greater than sign to a forward slash.
01:33Little things like that are possible.
01:35Now if I wish to jump into Split view here with this breadcrumb highlighted, I
01:40can even see a couple of small hints here that I've got a NodeStyle-CssClass
01:46is ms-sitemapdirectional, and that really means what CSS is being applied to
01:52the individual nodes?
01:53Then it's a very kind of key question here.
01:55This CSS class is being applied to the nodes, not to the separators.
02:01So if I suddenly made this one a very large CSS class, it would be applied to
02:06the individual words, but you wouldn't see it being applied to the greater than
02:09sign in between the words.
02:12And that might be okay.
02:13But you need to be aware of that.
02:15So on the master page, this one is applying a CSS class to the individual nodes.
02:20It's also being wrapped in a table cell, the classes ms-titlearea.
02:25So you could overwrite those in your own custom CSS and see how that impacts it.
02:30However, you might run into more problems than that.
02:34So sure, it would be easy to make this grow, or shrink, or change the font.
02:39Here's what you'll also run into.
02:40I am going to go over into my Master Page Gallery and open up one of the
02:45pre-created page layouts, like ArticleLeft.
02:48I don't want to check it out because I'm not going to edit it right now.
02:51I just want to let you know about something.
02:53In a lot of the page layout files that Microsoft provides, they're not actually
02:58using the breadcrumb in the master page.
03:01They're actually doing their own one.
03:03They're replacing it.
03:04It looks very, very similar, but in this one, they have actually got the CSS
03:08class for each individual node, and they also currently have another CSS class
03:13for the current node, breadcrumb.
03:15This is all wrapped in a different div where the class equal to breadcrumb.
03:21What that means is if you just use the master page as being the only place that
03:25you think that your breadcrumbs are styled, you may find that they don't show up
03:29the way you expect, because other people are creating pages based on this page
03:34layout, which does things somewhat differently.
03:37Really, the most you are going to do with breadcrumbs is either change the CSS
03:41classes that are being applied to them, or just hiding them entirely.
03:45Breadcrumbs are unfortunately not all that friendly to designers.
03:48There is not a lot to be done just using SharePoint Designer and the
03:51alternative, if you wanted to completely rewrite this, is using code, which is
03:56somewhat beyond the scope of this class.
03:58But understanding what the breadcrumbs show, will at least make it easier to
04:01figure out if you need to change them or just change the way they look.
Collapse this transcript
Creating a link back to the portal
00:00We've seen how to link from a portal to a different site collection.
00:05So, for example, I have a link here to a top site called Demonstration Team Site.
00:10If I go into my Sites directory, it's just something that I added in here.
00:15This site is in a completely different site collection.
00:18And what that really means is right now my top breadcrumb says
00:22Collaboration Portal.
00:24But if I jump over to this Team Site, I'm in a completely different site
00:27collection, and there is no easy way back to the portal.
00:31But the way that a lot of people think about a collaboration portal, or any kind
00:36of Intranet portal, is it's above everything.
00:38It's at the top of everything.
00:40And what I'm often asked is how do I jump from the portal into that Team Site,
00:44into that other site collection and still have an easy way to get back, even
00:48though this is a different site collection?
00:50Well, here is one way you can do it.
00:52And you can only really do this back to one portal.
00:55So I'm in the top-level site of a different site collection.
00:59I'm going to go to my Site Actions > Site Settings.
01:02And if I am a Site Collection Administrator, in the Site Collection
01:06Administration section, I've got something that says Portal site connection.
01:11This sounds very complex.
01:13We are connecting to a portal site.
01:15It really doesn't do very much, though it is useful.
01:19I'm going to say yes.
01:20I want to connect to a portal site.
01:22I'm going to give it the address of my Collaboration Portal.
01:26Well, I actually have a couple that I have been working with, but I'm going to
01:28give it the address of a fairly standard, straightforward one here.
01:31And I am going to say the Portal Name is Company Portal.
01:37You can say whatever you want.
01:38Now what does this do?
01:40Nothing magical, except this.
01:42When I click OK, now from everywhere in this site collection, I have this link
01:48back to the Company Portal.
01:50Really, Team Site is the top-level site in the site collection, but it kind of
01:55feels like I now have one level above it.
01:59So that's all it really does, and you can actually do this from multiple site
02:03collections in your farm so they all kind of link back and have this global
02:08breadcrumb back to the Company Portal, if that's what you want to do.
02:12It isn't a groundbreaking piece of technology.
02:15It's just a very, very simple fix in those places where you have a central
02:18portal linking to other site collections.
Collapse this transcript
Creating drop-down navigation in SharePoint
00:01In a MOSS Collaboration Portal, one of the sites, the News site, generates a
00:06dropdown menu when it's moused over.
00:09And what I'm often asked is can this be repeated?
00:12Is there something special about the News site that these appear? There isn't.
00:16It's just the way that some of the settings are organized.
00:19Now first off, you can't actually do this in WSS out-of-the-box.
00:23There's no easy way to do dropdown navigation.
00:26It is possible, but you have to jump through quite a few hoops.
00:29But in a MOSS site, it's a lot easier to do.
00:33So what are we looking at?
00:34Well, think about what we're seeing when I mouse over here.
00:37I'm actually seeing four links:
00:38the top link, which is linking directly to the home page of the News site, and
00:42then to three other pages.
00:44And what it's really doing is showing me everything in the Pages directory of this News site.
00:50To prove that, I'll go to the News site, go into its AllSite Content, go into
00:56its Pages directory and I see four pages there, which match with the four links that I have.
01:02It may feel like three, but the top one is a link as well, which is linking to
01:06the default home page.
01:08So why are we seeing this dropdown?
01:10Well, remember, every single site has its own navigation settings.
01:16It's the very common mistake to think that there is one navigational setting for
01:20the entire site collection.
01:21That's really not true.
01:22It kind of feels that way sometimes, but every site in a site collection has its
01:27own navigation settings.
01:28If I'm in the News site, which I'm right now, I'm going to go to Site
01:32Actions > Site Settings > Modify Navigation, it looks kind of similar to the top-level site.
01:38But if I page down, it's certainly different.
01:40There is something else going on here.
01:42So we have Show subsites and Show pages checked, Sort manually.
01:47We're saying that my global navigation, which is my top-link bar, is actually the
01:51same items as the parent site. That's okay.
01:53That's what we'd expect.
01:55But in the current navigation, we're saying Display the current site, then
01:58navigation items below the current site, and the current site's siblings. Okay.
02:02That may not be immediately straightforward, but this is the important thing here.
02:07What's actually appearing in this box is what's going to appear in the dropdown.
02:12And it's automatically going to add new pages from the Pages Library here
02:17because that option up at the top has been checked.
02:20However, I can actually add my own links here.
02:22If I wanted to manually add a link and say I'm going to add this to
02:27www.lynda.com, click OK,
02:30it's add it under there, and you can see that it knows there's a difference
02:34between this link the one above it, that this is a type of page, and the one
02:38below is a type of link. We can manually change that.
02:42I'm going to click OK and by adding that link in our navigation of the News
02:46site, it will appear in the dropdown, but there's nothing magical about
02:50being the News site.
02:51In fact, if I were to go to say the Reports Center.
02:55Now we're not really getting into this.
02:56This is the business intelligence site, and it's really out with the scope of
03:00this course, but to look at the View AllSite Content of this other site, we have
03:04a Pages Document Library here, too.
03:06It's going to ignore the default page because that's just the home page.
03:10I say ignore meaning it's not going to generate a dropdown, because really
03:14that's what the tab link is anyway is a link to this page.
03:19But if I create a new page in here, I'll make a new article, call it Test Article
03:25and just click Create,
03:28because I'm in a Publishing site, this is going to be marked as checked out.
03:32That's what this little icon means.
03:33I'm going to click the dropdown and check it back in as a Major Version,
03:38meaning it's published.
03:39And the difference between Draft and Published in this Publishing site means
03:42viewable by everybody, or just viewable by people who have edit permissions.
03:48I'm saying viewable by everybody.
03:50As soon as I've published it, notice what's happened over here in the Reports tab.
03:54I have got a dropdown to Test Article.
03:57And that's, again, because the navigation settings of this particular site
04:02have the ability to show subsites and show pages, and they are actually
04:06showing that page underneath it.
04:08This is going to be what's shown in the Quick Launch bar or the current
04:12navigation, but because I've added that page, it would appear in the dropdown.
04:15Now, I do suggest that you use dropdowns sparingly.
04:20I think that they are a bad idea, unless proven otherwise.
04:22I don't think they always help navigation.
04:25And they can be useful but only when you're alternatives have been excluded
04:28because they're not always obvious for users.
04:31But this is how to allow dropdowns to show pages under your subsites.
Collapse this transcript
Conclusion
Goodbye
00:00Thanks for joining us for this SharePoint 2007 Designer course.
00:03You should now be able to begin with branding your own SharePoint sites.
00:07In just a few hours, we've covered the core of the application, and explored the
00:11concepts that you need to know:
00:12Master Pages and Page Layouts, Content Types and themes, things that you need to
00:17be able to take your own designs and bring them into the SharePoint framework.
00:20Good luck with your own sites in SharePoint.
Collapse this transcript


Suggested courses to watch next:

SharePoint 2010 New Features (1h 59m)
Simon Allardice

SharePoint 2010 Essential Training (6h 58m)
Simon Allardice



Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,141 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked