cancel
Showing results for 
Search instead for 
Did you mean: 

Extending the portal themes

0 Kudos
99

Has anyone been able to extend the portal themes to include your own CSS styles. I have tried to simply add a folder under the relevant portal theme, however, when using the standard ILAFService.includeThemePartInResponse method it doesn't recognise my new 'part' in the theme.

I basically want to be able to include some formatting and my own classes in a custom folder beneath the theme. This would then be able to be included whereever necessary using the standard APIs. However, it looks like even though you include the folder, that there is some hard coded place where all of the portal standard theme parts get loaded by the LAFService. I have checked the code of the LAFService class and it isn't done there, so it must be part of the portal runtime somewhere.

Surely there must be some method of being able to extend the theme using the APIs

Anyone ???

Thanks

Darrell

View Entire Topic
0 Kudos

Found out how to do this now. Basically you can add your own folder into the \irj\root\portalapps\com.sap.portal.design.portaldesigndata\themes\portal folder of the portal. You then edit the portal_theme.xml file to include your new folder. Restart the J2EE server and then you can use the standard APIs to include this theme part into a page, i.e.

iLAFService.includeThemePartInResponse("custom", request, response);

Hey presto

Darrell