Skip to main content

Change site name and banner for Aras Innovator

Relevant settings are defined in "InnovatorServerConfig.xml". If you didn't change the default installation path, the file should be located in "C:\Program Files (x86)\Aras\Innovator".
Open the file, we could find a tag named "UI-Tailoring" and contains 3 attributes which are used to define site name and banner image, including "login_splash", "branding_img", and "product_name". As for "banner_url" and "banner_height", are used for customizing banner.

<?xml version="1.0" encoding="UTF-8"?>
<Innovator>
    <UI-Tailoring 
        login_splash="../images/aras-innovator.svg" 
        branding_img="../images/aras-innovator.svg" 
        product_name="Aras Innovator" 
        banner_url="../scripts/banner.aspx" 
        banner_height="50"/>
    ...
</Innovator>

Login Form

Main Window

Banner Customization

There is an important thing we need to know is that banner customization has a little difference between Aras Innovator 11 SP5 and SP9 because webpage structure has changed. In SP5, we could just create a webpage, and then set attributes "banner_url" and "banner_height" which are mentioned above, but these two attributes seem not work in SP9 and we could find their original definition in below picture.

Implement in Aras Innovator 11 SP5

Here I added 2 links to "banner.aspx" (of course you can create a new file and just change referred link in "InnovatorServerConfig.xml"), and the result is shown as below picture. It's very easy to add additional information, isn't it? By the way, if you want to change the height of banner, just set "banner_height" in "InnovatorServerConfig.xml".

...
<body>  
    <div>
        <div><img class="header-logo" src="<%=Client_Config("branding_img")%>" alt="" style="display:block;" /></div>
        <!-- Cutomized content begin -->
        <div style="position:absolute; top:25px; left:270px;">
            External Links:&nbsp;
            <a href="http://google.com" target="_blank">Google</a>&nbsp;|&nbsp;
            <a href="http://yahoo.com" target="_blank">Yahoo</a>
        </div>
        <!-- Cutomized content end -->
    </div>
</body>
...

Implement in Aras Innovator 11 SP9

When you try to change "banner_url" and "banner_height" in SP9, you will find it doesn't work any longer. What's wrong?
Let's see DOM with development tool, banner is embedded in iframe. But in SP9, iframe tag has been hidden with style "display: none". Besides, its parent has been changed to "header" tag which is unlike "div" tag, that's why "banner_height" doesn't work. Now, the height is limited by class "header-logo" whose default value is 45px.


Since banner can't be changed by original way, just open the source to modify. Open "\Innovator\Client\scripts\innovator.aspx" and insert below code, we could get the same result.

...
<header id="header">
    ...
    <img class="header-logo" src="<%=Client_Config("branding_img")%>" alt=""/>
    <!-- Cutomized content begin -->
    <div style="position:absolute; top:25px; left:270px;">
        External Links:&nbsp;
        <a href="http://google.com" target="_blank">Google</a>&nbsp;|&nbsp;
        <a href="http://yahoo.com" target="_blank">Yahoo</a>
    </div>
    <!-- Cutomized content end -->
    ...

Comments

  1. This is really good post. But instead of adding external links, If I want to add some text, for example: If I am part of some group like "Administrators", I want to show it Like "You are logged in as Administrators". Is it feasible, If yes then how to do it.

    Thanks in advance..

    ReplyDelete
    Replies
    1. I consider basic HTML/JS knowledge with Aras client API could achieve your demand.

      Delete

Post a Comment

Popular posts from this blog

Trigger Sequence of Promotion Events in Aras Innovator

There are several Server Event could trigger Method during item promotion: ItemType: OnBeforePromote, OnAfterPromote; Life Cycle: Transition Pre, Transition Post. Trigger sequence of above events is shown in below figure: It's important to note that "Transition Post" cannot rollback while exception throws because item promotion is finished after "OnAfterPromote" That means even if throwing exception, the life cycle will still stay at promoted state. Please note, all above events will not be triggered when "OnPromote" event exists (due to this will overwrite original system process).

aras.uiShowItemEx Method (aras Object)

aras.uiShowItemEx Method Shows Item with Item node. Syntax aras.uiShowItem( itemNd , viewMode , isOpenInTearOff ) Parameters Name Type Description itemNd Object Required. Item node. viewMode String Optional. Unknown purpose but only supports the following values: tab view (Default) openFile new ※Each supported value will get same result. Therefore, call method and pass undefined for this parameter is OK. isOpenInTearOff Boolean Optional. Specifies whether show Item with tear-off window. true - open in a tear-off window. false - open in a tab. (Default) Return Value An AsyncResult object or a Boolean. Returns AsyncResult object if the Item winodw is opened successfully, otherwise returns false. See Also aras Object Aras Innovator Client Framework

Account and Password Policy in Aras Innovator

Aras Innovator has prepared security policy for account and password and very simple to set up. Account Policy There are two system variables could handle account policy: AccountLockoutThreshold_triesNum: The maximum trying number of login, user account will be locked if exceed. AccountLockoutDuration_minutes: User account locking duration after reach maximum trying number. ※Account policy will only be effective when values of above two variables are greater than zero. Password Policy There are two system variables could handle password policy: User_pwd_symbols_min_number: The minimum characters that must be contained when user set new password. User_pwd_digits_min_number: The minimum digits that must be contained when user set new password.