MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Custom Master Page...

  Asked By: Akhila    Date: Oct 20    Category: MOSS    Views: 1637

I am working with the HOWTO article in the Sharepoint Server 2007 SDK
concerning how to create a minimal custom master page.

It is late in the day so perhaps that is why I am missing something.

I am using Sharepoint Designer (as suggested in the article) so I am a
bit out of my comfort zone (I am used to Visual Studio). I am not
seeing a way to generate a code-behind file for this master page. I
tried inserting some server script in the master page itself but that
doesn't appear to be an option either.

Basically, what I am trying to accomplish is to hide the Welcome user
control if a user is not authenticated (such as will be the case when
the site is presented to the public). Can this even be done?



5 Answers Found

Answer #1    Answered By: Micheal Knight     Answered On: Oct 20

The "Welcome" control will only appear if the user is logged
in anyway. If you configure and internal site and then an external with
anonymous access it will not appear, but a "sign in" option can appear
instead. You shouldn't have to worry about using code to hide the control.

Answer #2    Answered By: Lesley Tate     Answered On: Oct 20

The behavior you have described is what I have accomplished so far.

For the first phase of our project, we will be creating an internal
site that does not allow anonymous access. This site will be
extended as a public (internet zone) site that does allow anonymous
access. For the first phase of our project, we will not be providing
any content that requires authentication to the public. Having said
this, I would like to make it so that the "Sign In" link does not
even appear when the user is not authenticated (when accessing the
site via the public route).

Any suggestions?

Answer #3    Answered By: Chris Daniel     Answered On: Oct 20

this is how we hid the sign in link.
.ms-globallinks,.ms-globallinks a{

Answer #4    Answered By: Addison Peck     Answered On: Oct 20

I have heard it been stated that it is recommended that master  pages
should not be modified using Sharepoint Designer?

My question is why? Does this apply to creating new master pages,
modifying existing master pages, or both?

The article  for creating a minimalist master page  that appears in the
Sharepoint Server 2007 SDK states to use Sharepoint Designer for
creating the master page. I don't understand why the SDK document
would tell me to do something that is not recommended.

I tried using Visual Studio 2005 to create the master page using the
steps in the article. There are references to controls in virtual
paths (such as ~/_controltemplates) that generate tons of error
messages. It seems like Sharepoint Designer is the more friendly

Answer #5    Answered By: Lalit Bhattacharya     Answered On: Oct 20

As a rule, modifying existing (Out of the Box) master  pages
is a bad thing whether you use SharePoint Designer or Visual Studio.
SharePoint Designer is the preferred option as you said it has more of a
SharePoint Context that Visual Studio. You can use Visual Studio if you so
desire but my personal preference is to use SharePoint Designer. In previous
beta versions of SharePoint designer whenever you edited Master Pages it
sometimes messed up the control references. This has seen ben fixed and
works like a treat!

My personal opinion is use SharePoint Designer to make any Master Pages
changes or when building your own and use Visual Studio when you really want
to get your hands dirty with some code.

Didn't find what you were looking for? Find more on Custom Master Page... Or get search suggestion and latest updates.