cancel
Showing results for 
Search instead for 
Did you mean: 

Apply custom theme to specific iview

former_member182374
Active Contributor
0 Kudos
356

Hi,

I know I asked this question before:

http://scn.sap.com/thread/1862639

I'm asking again: is it possible to apply custom theme to a specific iview (iview is par/url iview) and not WD.

Regards,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Omri,

Please create a Role and assign the required iview to the role and create a new Portal Desktop and add the custom theme to the desktop and in the rule for the new role which you have created assign the new portal desktop and see if your custom theme is reflecting for the iview.

Thanks and Regards,

Sowmya

former_member182374
Active Contributor
0 Kudos

Hi,
Thanks for the answer but as far as I know portal desktop is evaluated when the user logs in (it's not dynamic).

I searched through SCN (which is very hard in our days) and I found Sven Kannengiesser's bloghttp://scn.sap.com/people/sven.kannengiesser/blog/2005/07/26/switching-themes-by-topic--a-color-code.... I'll try to implement it.

Omri

anja_engelhardt2
Active Contributor
0 Kudos

Hi Omri,

you are correct: portal desktop is not dynamic.

Anja

Former Member
0 Kudos

Hello,

In the master rule collection, you can assign the portal desktop to the role and this makes the theme available for the role when it is accessed. Please note that the priorities of the master rule collection should be set in such a way that the desktop for role is assigned first.

ie as below

IF Role = "role"

THEN portal desktop = "Desktop for the role"

IF User = *

THEN portal desktop = "Default Desktop that should be available for other roles"

Thanks & Regards,

Usha K

Answers (2)

Answers (2)

Sreejith1
Contributor
0 Kudos

Hi,

Most of the time we dont want to change the entire theme but minor changes.Like for a particular iview we need some changes in some css class.In that senario no need to play with entire theme.Instead through some custom iview we can invoke java script or we can change/over write css class.so that no need to be more cautious about the side effects of change.

Regards,

Ram

former_member186017
Active Participant
0 Kudos

Hi Omri,

When using AI iViews, there is a parameter to pass to the application that represents the css url which is the url of the style you wish the application to use.

The name of this parameter is sap-cssurl, the application should know how to handle this parameter when passed on the request.

BTW- there is a parameter on the iView that determinse whether this parameted will be passed automatically, however that will forward the application the css url of the current thme in use.

In your case, don't activate that property and pass the application the parameter "sap-cssurl" with the css url you want to ues.

If your reuirement is to use URL iView then you can also pass this value on the request, however, the site you are referring to must know how to deal with this parameter, for example if the CSS URL is on the same server as the portals, the other site must have access to it, it should request it and buld the HTML with this CSS.

I hope this will help you with your requirement.

Best Regards,

Nadav.

former_member182374
Active Contributor
0 Kudos

Hi Nadav,

I did the following test with no success:

1) I created an activity report iview by using AI iview (iView has a buttton so theme should be applied)

2) For 'URL Template' I tried:

a. /irj/servlet/prt/portal/prtroot/com.sap.portal.activityreport.frontend.ActivityReport

b. http://<server>:<port>/irj/servlet/prt/portal/prtroot/com.sap.portal.activityreport.frontend.ActivityReport

I created an iview and tried to put the preview url of the iView

c. /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.company.OmriFolder!2fActivityReport

d. http://<server>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.company.OmriFolder!

2fActivityReport

3) For 'Application Parameters' I entered: sap-cssurl=http://<server>:<port>/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/sap_highcont/ur/ur_7.0_ie6.css

I tried it for 7.00 SP13 and 7.02 SP3.

Do I need to disable default theme in some way? what am I missing?

Regards,

Omri