Wednesday, September 30, 2015

StoreFront 3 - Customize the Placeholder text on the username field, and a simple CSS background.

PlaceHolder Text

Many of us are making adjustments to a new StoreFront 3 implementation. I found that in particular circumstances, the placeholder text of "domain\user or domain@user.com" would just be confusing. This is due to the client having only one trusted domain. Username alone is sufficient there. I dug around in Javascript and jQuery for a bit, and came up with a script that works great in web and Mac receivers, but breaks the Windows Native Receiver due to it not dealing well with looping scripts.

Asked on the Citrix boards, and I got this response:
1) Navigate to the resources folder for the Authentication Service, typically C:\inetpub\wwwroot\Citrix\Authentication\App_Data\resources
2) Open ExplicitFormsCommon..resx, e.g. ExplicitFormsCommon.en.resx in a text editor
3) Search for DomainUserAssistiveText
4) Adjust the value and save.
5) Restart IIS

CSS Background

I was also looking at that vast white space around the desktop and app icons in receiver, and didn't care for the void. So I brewed up a stylish background for the "storeViewSection". It displays some blueish tie stripes at an angle behind the icons, all in CSS. Drop this into the "/Citrix/StoreNameWeb/custom/custom.css" to use, and tweak as you need.
.storeViewSection{
 background:
  repeating-linear-gradient(
   225deg,
    /* Blue stripe*/
   #f0f0ff,
   #f0f0ff 3px,
    /*White Stripe*/
   #ffffff 3px,
   #ffffff 6px,
    /*Light Stripe*/
   #f6f6ff 6px,
   #f6f6ff 56px,
    /*White Stripe*/
   #ffffff 56px,
   #ffffff 59px,
    /*Blue Stripe*/
   #f0f0ff 59px,
   #f0f0ff 62px,
    /*White Space*/
   #ffffff 62px,
   #ffffff 124px
 );
}

No comments:

Post a Comment