cancel
Showing results for 
Search instead for 
Did you mean: 

xMII Version 12.0 Change the theme

Former Member
0 Kudos

I have searched the forum and read many of the threads on this. So here is what I did:

1. Copied the sample project.

2. Moved all the files in the themes folder to my project/themes.

3. Changed a user to have the theme in my project.

It doesn't seem to change the heading - theme of the page when the user logs onto xMII.

I must have an error in the code. But I can't see it. I'll cut and past the code here. If anyone can see the error and let me know - I'd appreciate it. I just want to remove xmii and put the word development in the heading.

Thank you!

Michelle

DynamicHomePage.xsl

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html" media-type="text/html" encoding="UTF-8"/>

<!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>

<!USER CONFIGURABLE PARAMETERS>

<!This is the Cascading Style Sheet that defines the style of the home page. It is defined with a relative or absolute path.>

<xsl:param name="HomePageCSS">HomePage.css</xsl:param>

<!This is the xml document to include as the header. The file must be well-formed and contain at least one item with the 'height' attribute defined. The path to this file must be absolute.>

<xsl:param name="HeaderURL">/XMII/CM/Dashboard/Themes/DefaultHeader.xml</xsl:param>

<!Show or hide the tab items. Set this to 1 or 0, true or false.>

<!NOTE: The first tab item is also the start page for the main content area, whether tabs are displayed or not.>

<xsl:param name="ShowTabs">1</xsl:param>

<!Show or hide the navigation item tree. Set this to 1 or 0, true or false.>

<xsl:param name="ShowNavigationTree">1</xsl:param>

<!This is a flag to determine whether to wrap long navigation items. Set this to 1 or 0, true or false.>

<xsl:param name="WrapNavigationItems">0</xsl:param>

<!Show or hide the footer. Set this to 1 or 0, true or false.>

<xsl:param name="ShowFooter">0</xsl:param>

<!This is the xml document to include as the footer. The file must be well-formed and contain at least one item with the 'height' attribute defined. The path to this file must be absolute.>

<xsl:param name="FooterURL">DefaultFooter.xml</xsl:param>

<!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>

<!PRIVATE PARAMETERS...DO NOT MODIFY!!!>

<xsl:param name="FILE_LOCATION"/>

<xsl:param name="URL_LOCATION"/>

<xsl:param name="BrowserType">Unknown</xsl:param>

<xsl:param name="BrowserVersion">4.0</xsl:param>

<xsl:param name="PageWidth">1024</xsl:param>

<xsl:param name="PageHeight">596</xsl:param>

<!LOCALIZATION>

<xsl:param name="XTOL_SHOW_NAV_TREE"/>

<xsl:param name="XTOL_HIDE_NAV_TREE"/>

<xsl:param name="XLBL_ILLUMINATOR_MIP"/>

<xsl:param name="XLNK_LOGOUT"/>

<xsl:param name="XBUT_REFRESH"/>

<xsl:param name="XTNT_HELP_DOCS"/>

<!END LOCALIZATION>

<!END PRIVATE PARAMETERS>

<xsl:include href="DynamicHomePageLibrary.xsl"/>

</xsl:stylesheet>

DefaultHeader.xml

<?xml version="1.0"?>

<!BEGIN HOME PAGE HEADER INCLUDE//>

<!--THIS FILE MUST BE SAVED WITH A .XML EXTENSION!!

IT MUST BE WELL FORMED!! EVERY NODE MUST HAVE A CLOSING NODE OR /.

ADDITIONALLY, AT LEAST ONE ELEMENT MUST HAVE A height ATTRIBUTE DEFINED!!

THIS ALLOWS THE HOME PAGE TO KNOW THE SIZE OF THE HEADER. IF YOU WANT IT

A CERTAIN SIZE, ADD A height ATTRIBUTE TO THE table ELEMENT, OR OUTERMOST ELEMENT.//-->

<table cellpadding="0" cellspacing="0" border="1" class="HeaderTable" style="border-style:solid;border-color:white;">

<tr>

<td><img src="/XMII/Images/header_notch.gif" style="width:15px;height:30px;"/></td>

<td align="center" nowrap="true" class="HeaderTitle" >DevI</td>

<td><img src="/XMII/Images/customer_brand_image.jpg" /></td>

<td width="100%" align="left">&#160;</td>

<td bgcolor="white"><img src="/XMII/Images/sap_logo.gif" /></td>

</tr>

</table>

<!END HOME PAGE HEADER INCLUDE//>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I tried the change, it didn't work. I think I still have something wrong.

Thank you!

Michelle

jcgood25
Active Contributor
0 Kudos

Are you seeing any stylesheet errors in the NetWeaver app logs?

I also assume that your user is actually supposed to get this new theme you created, but assigning the DynamicHomePage.xsl file to an associated Role or directly to the User?

Regards,

Jeremy

Answers (2)

Answers (2)

Former Member
0 Kudos

Which logs should I look at?

Actually it is a role that I'd like to use. But I thought I'd start with a test user getting the correct theme, and then move it to the role.

Former Member
0 Kudos

Try using the following in Header XML

<?xml version="1.0"?>

<table cellpadding="0" cellspacing="0" border="1" class="HeaderTable" style="border-style:solid;border-color:white;">

<tr>

<td></td>

<td align="center" nowrap="true" class="HeaderTitle" >DevI</td>

<td></td>

<td width="100%" align="left">&#160;</td>

<td bgcolor="white"></td>

</tr>

</table>