Monday, April 7, 2008

Change the "Sign in" text

If you want to change the "Sign in" link text on a Sharepoint page, then do this:

Open the beloved folder C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES

Open "Welcome.ascx" and go to the end of the file
Change the tag:

SharePoint:ApplicationPageLink runat="server" id="ExplicitLogin"
ApplicationPageFileName="Authenticate.aspx" AppendCurrentPageUrl=true
Text="<%$Resources:wss,login_pagetitle%>" style="display:none" Visible="false" />

to this:

SharePoint:ApplicationPageLink runat="server" id="ExplicitLogin"
ApplicationPageFileName="Authenticate.aspx" AppendCurrentPageUrl=true
Text="Your text here" style="display:none" Visible="false" />

18 comments:

Vadim said...

Hi Lise,
Thanks for your post!
I have a question regarding "Sign in" URL.
Is it possible to change it somehow? For instance to change the scheme to HTTPS.
Your thoughts will be very much appreciated.

Lise said...

Hi Vadim!
Thanks for your comment.
Regarding the link to the sign in-page, wouldn't it be to just enter the whole URL to that aspx-file?
instead of "Authenticate.aspx" you could write "https://yoursite/authenticate.aspx"?
Good luck!
Take care,
/Lise

Vadim said...

Hi again!
Sounds promising, but what if I have several sites (https://site1, https://site2, etc.)?
Thanks again!
//Vadim

Lise said...

Hi!
I am not sure really, perhaps you could use a javascript to redirect the users but that is something that I've never tested. You can use javascript to redirect depending on URL, IP, and so on.
/Lise

Phoenix said...

Hello Lise, I tried your solution by editing the Welcome.ascx file however here is what mine looks like by default:
Text="<$Resources:wss,login_pagetitle%>" style="display:none" Visible="true"/>

As soon as I remove the stuff after the text and update with a new language Welcome, the page crashes.

Lise said...

Hi Phoenix,
Thanks for posting.
Just make sure that you only remove what is inside of the "" on the Text tag. Nothing else, or the page will probably crash.
Like this Text="Välkommen" and let the other tags remain intact.
Let me know if it does not work, send me your code!
/Lise

Phoenix said...

Hello Lise, thank you for responding so quick. Everything on the Welcome.ascx page is exactly the same except for what is between the text qoutations. %$Resources:wss,login_pagetitle%
When I remove the child control between the qoutations and place for instance "Bienvenidos.." the page crashes. Could this be due to me stopring the Welcome.ascx page locally instead of back on the server? I had to ask our server admin for a copy of the welcome.ascx file and instructed them I would just change the path on my master pages.

Lise said...

Hi Phoenix!
Yeah that is spot on! You must edit the ascx file that resides inside the 12 hive. Or else it wont work.
/Lise

Phoenix said...

Thanks again Lise!! I appreciate you responding so quick. Are you aware if I could have different variations of the Welcome.ascx file. For instance Welcome_Spanish.ascx, store this at the server level, and then merely change the master page end reference URL to show ~/_controltemplates/Welcome_Spanish.ascx ??

Thanks again :)

Lise said...

No problem!
Well usually when you have lang templates then you have different folders for different languages (it does not add _language after the file name, it uses folders), but this is a control template and it does not work like that.
What I did was to open the ascx file from the Controls-folder, in the 12 hive, which is C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES and opened it in Notepad (NOT SHAREPOINT DESIGNER!) and edited directly from there. Be sure to copy your welcome.ascx file first :)
(Nice blog you have, keep posting there :))

Lise said...

One more thing.. if you change this welcome-file then you change it for all sites on your server.
/Lise

Lise said...

And yes, you might do what you suggested if you only want to edit the welcome page for a specific site!

Phoenix said...

Ok thanks again for all your help Lise!!! Very Helpful. My company does not allow for us to have server access so I typically have to circumvent the system to develop solutions. Hopefully I will be getting my own SP farm soon which should help. Thank you so much. :)

Lise said...

No problem! And sorry for the comment spam ;)
Take care,
/Lise

min said...

Hi Lise,

Thanks for your post!
I have question regarding "SignIn".
I have changed as per ur post,but its changing the all webapplication(sites).I want for only one Particular site(site).can u give reply as soon as possible.

Thanks again!
obulreddy

Lise said...

Hi min,
I guess you need to create a feature, but I have not done that myself. Google on features and welcome.ascx page, then maybe you will find an answer.
Good luck!
/Lise

min said...

Hi Lise,


Thanks for u reply.

Im working in virtualPC.I have created some many webapplication.
Im working on portal site.In site its display "SignIn".Instead of "signIn" .I want to change "Employee Login".As per ur article i followed.Its working fine for the site.Its changed for all the sites(portal sites).

please can u call me
if ur free can u call me.Im staying in India.This is my mobile number.

+91 9962592139.

with Regards,
obulreddy

M.obulreddy said...

Hi lise,

Thanks for your post.
Im a having a question on our article.Im facing issue on our article.Its working good.But its working for all sites(web Application).It should work for only one particular site.

if u dont mind can u call me .I will tell clearly what im facing the issue.
Im staying in India.
my mobile number is +919962592139.
It is urgent to me

with Regards,
obulreddy