on 10-11-2007 1:11 PM
Hi,
while branding the portal theme I run into the question, which exact property of the theme editor would be responsible for the style of a certain html element on a portal page.
In my case, I have a BeX variable entry dialog.
The style I want to change is set by a stylesheet class named urSTTDRo2. What is the procedure to conclude from this stylesheet class name to the responsible theme editor property?
When I export a theme, I can see that it uses a lot of parameter properties. The parameter names are concatenated abbreviations of words. Has anyone a list thereof or is this left as guess work for us? Is there a chance to relate the parameter to the portal theme property?
Any clues appreciated ;o)
Hi,
Sorry for my last reply, it got a little mixed up...
I developet a support tool that enables to find the entry in the theme editor, you can download it from :
in the next 80 days.
This is basucally a portal component (par file) that you have to deploy in the portal and create an iView from.
when launching the iView you will have to enter the class name taken from the DOM inspector and the result will be the
location of that entry in the theme editor.
This toll is not official yet, and works only for servers installed on windows OS.
I would like to hear your feedback.
Best Regards,
Nadav.
Edited by: Nadav Nuri on Dec 24, 2009 3:03 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Well this is very tricky ...
1. First you have to find the class name using the DOM inspector as you did,
for example "PrtlHdrWelcome"
2. Find the Parameter that represents the class in the designpart file that within:
...\usr\sap\<SID>\JC<XX>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\
portalapps\com.sap.portal.design.portaldesigndata\config\data
(in this case the designpart file is 'prtl.designpart' -> parPrtlHdrWelcome,
in your case look for the Bex file under com.sap.portal.design.urdesigndata.)
<p id="parPrtlHdrWelcome" sdps="" c=".prtlHdrWelcome">
<ld p="parPrtlMastHeadWelcomeFontColor"/>
<ld p="parPrtlMastHeadWelcomeFontStyle"/>
<ld p="parPrtlMastHeadWelcomeFontFamily"/>
<ld p="parPrtlMastHeadWelcomeRelFontSize"/>
<ld p="parPrtlMastHeadWelcomeFontWeight"/>
<ld p="parPrtlMastHeadWelcomeTxtAlg"/>
<ld p="parPrtlMastHeadWelcomeBgColor"/>
<ld p="parPrtlMastHeadWelcomePadding"/>
<ld p="parPrtlMastHeadWelcomeDisplay"/>
<ld p="parPrtlMastHeadWelcomeBgRep"/>
<ld p="parPrtlMastHeadWelcomeBgPos"/>
<ld p="parPrtlMastHeadWelcomeWidth"/>
<ld p="parPrtlMastHeadWelcomeHeight"/>
<ld p="parPrtlMastHeadWelcomeBgImg"/>
</p>
3. now you have to find one of the properties from above in the group (Hierarchy) id by search for the id in the 'pageInfoIE0.xml' file:
...\usr\sap\<SID>\JC<XX>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\
portalapps\com.sap.portal.design.portaldesigndata\pageInfo
As you can see when looking for "parPrtlMastHeadWelcomeFontColor" I found it here:
<group groupId="masterGroup">
<group groupId="PageGrpPortalOuterFrame" titleId="PageGrpPortalOuterFrame">
<group groupId="PagePortalMastHead" titleId="PagePortalMastHead">
<preview textId="PagePortalMastHead" eventType="ComponentPreview" event="com.sap.portal.navigation.masthead.default">
<themePart>portal</themePart>
<themePart>ur</themePart>
</preview>
<group groupId="ParGrpMastHeadWelcome" titleId="ParGrpMastHeadWelcome">
<parameter name="parPrtlMastHeadWelcomeFontColor"/>
<parameter name="parPrtlMastHeadWelcomeFontStyle"/>
<parameter name="parPrtlMastHeadWelcomeFontFamily"/>
<parameter name="parPrtlMastHeadWelcomeRelFontSize"/>
<parameter name="parPrtlMastHeadWelcomeFontWeight"/>
<parameter name="parPrtlMastHeadWelcomeTxtAlg"/>
<parameter name="parPrtlMastHeadWelcomeBgColor"/>
<parameter name="parPrtlMastHeadWelcomePadding"/>
<parameter name="parPrtlMastHeadWelcomeDisplay"/>
In case I could'nt find "parPrtlMastHeadWelcomeFontColor" I would look for "parPrtlMastHeadWelcomeFontStyle" and so on.
4. now you know the heirarchy which means where the property you have to change is located in the theme editor, but
you only know the id's...
In order to translate the id's to names you have to go to
...\usr\sap\<SID>\JC<XX>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\
portalapps\com.sap.portal.design.portaldesigndata\classes\com\sap\portal\groupText.properties
and look for the id's as so:
PageGrpPortalOuterFrame=Portal Outer Frame
PagePortalMastHead=Portal Masthead
ParGrpMastHead=Welcome Area
So in my case I have to open the Theme editor, and navigate to
Portal Outer Frame -> Portal Masthead -> Welcome Area
I hope that will help you.
Best Regards,
Nadav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use MS DOM inspector for this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used the DOM inspector already to find out the exact element and its style classes.
Now I want to know, which knobs and switches do I have to play in the theme editor in order to change the attributes of the style classes.
The attribute values of the style classes are generated by the theme editor on save, as far as I can tell.
I had the same problem with the background-color of read-only cells in editable tables. These cells use the css class urSTTDRo2.
The solution is to set the background in simple-elements->Bezeichner und Felder->Schreibgeschützte Eingabefelder (write-protected Input fields)
->Hintergrundfarbe schreibgeschütztes Eingabefeld.
This will also change the background-color of the table cell.
I hope this helps, though the answer is a bit late...
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.