Hi,
You will not be able to overwrite this using form group per tenant. Below is however a solution to your problem.
This is not the nicer way to implement your requirements but will work and will give you dynamic banner text per tenant.
Hopefully this will give some inspiration to someone in CA for next release
1/ In the admin tab, go edit each of your tenants and add a description where the description will reflect what you want to see in your banner. (I made it quick using the description but you may eventually want create a custom attributes for it.)
2/ Add the variable below to you ahdtop_site.htmpl
<!-- <PDM_IF 0>
@(#)\$Id: ahdtop_site.htmpl,v 1.1 2006/11/01 18:00:42 olsjo01 Exp $
This file modifies variables created in ahdtop or creates new ones.
Access to these variables is available from the ahdtop object in all forms.
You should place your customized version of ahdtop_site.htmpl in
site/mods/htmpl/www/web/default/ahdtop_site.htmpl
</PDM_IF> -->
<PDM_PRAGMA RELEASE=110>
<!-- Start of ahdtop_site.htmpl -->
<script type="text/javascript">
var cstTenantBan = <PDM_FMT PAD=NO ESC_STYLE=C>'${cst.tenant.description:}'</PDM_FMT>;
</script>
<script type="text/javascript" src="$CAisd/scripts/msg_cat_site.js"></script>
<!-- End of ahdtop_site.htmpl -->
Note that if you use a custom attributes in stead of the description you will need to modify the above according (see point 8)
3/ If not already exist create a sitemod.js file under your site/mods/www/wwwroot/scripts.
4/ Copy the code below into the sitemod.js (This is a mods from the original in bopcfg)
//JMAYER overwrite default function to handle different product name by tenant
function zgenerate_logo_product_name_html (product_name_style)
{
if ( typeof ahdtop != "object" || ahdtop == null )
ahdtop = get_ahdtop();
var sdm_product_name_style = "sdm_product_name sdm_product_name_dark_color";
if ( typeof product_name_style == "string" && product_name_style != "" )
{
sdm_product_name_style = product_name_style;
}
var lpn_html = '<table class="product_info_container"><tr>';
if ( typeof ahdframe == "object" && ahdframe != null &&
typeof ahdframe.argTenantLogo == "string" &&
ahdframe.argTenantLogo.length > 0 )
lpn_html += '<td class="gn_container_no_padding"><img id="logoImg" src="' + ahdframe.argTenantLogo + '"' +
' class="logo_img" alt="' + ahdframe.argTenantLogoAlt + '"></td>';
else if ( typeof ahdtop.cfgMultiTenancy == "string" &&
ahdtop.cfgMultiTenancy != "off" &&
typeof ahdtop.cstTenantLogo == "string" &&
ahdtop.cstTenantLogo.length > 0 )
lpn_html += '<td class="gn_container_no_padding"><img id="logoImg" src="' + ahdtop.cstTenantLogo + '"' +
' class="logo_img" alt="' + ahdtop.cstTenantLogoAlt + '"></td>';
else
lpn_html += '<td class="CA_logo"><img id="logoImg" src="' +
ahdtop.usdImg["circleca"] + '" class="logo_img" alt="C A Technologies"></td>';
//modification start here
var zproductName = ahdtop.cfgProductName;
var zproductBan = ahdtop.cstTenantBan;
if((typeof ahdtop.cfgMultiTenancy == "string" && ahdtop.cfgMultiTenancy != "off") && (typeof zproductBan == "string" && zproductBan != "")){
zproductName = zproductBan;
}
lpn_html += '<td class="product_name_container"><span class="' + sdm_product_name_style + '"><nobr>' + zproductName +
'</nobr></span></td></tr></table>';
//modication end here
return lpn_html;
}
5/ Copy gobtn_role.htmpl from the bopcfg folder into your site/mods/www/htmpl/default/ folder
6/ Open your copied gobtn_role.htmpl file and search for the line:
html = generate_logo_product_name_html("sdm_product_name");
and modify the name of the function by adding a z in front
html = zgenerate_logo_product_name_html("sdm_product_name");
7/ Run pdm_webcache (sometime it may be necessary to do a full recycle for ahdtop to be cleared out) and clean your local browser cache.
8/ In the admin tab, go edit each of your tenants and add a description where the description will reflect what you want to see in your banner (I made it quick using the description but you may eventually want create a custom attributes for it.)
Warning: Keep it short if you want to keep a nice display!
9/ Logout/login and you must now see the banner according to your tenant description you belong too.
Hope this help Christmas time
/J