cancel
Showing results for 
Search instead for 
Did you mean: 

html default portal themes

Former Member
0 Kudos

Hello everyone.

First, thanks for read this questions, which is very short and clear.

I have a hmtl page in KM, and I adopting an specific portal theme, with this code:

<link href="http://enapbwqas:50100/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal /Intranet_MVC /ur/ur_7.0_ie6.css?7.0.15.1.0" rel="stylesheet" type="text/css">

But now I need to adopting the "default" portal theme, so this html page would change with differents themes... with something like this:

href="http://enapbwqas:50100/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/ <% default theme %> /ur/ur_7.0_ie6.css?7.0.15.1.0"

anyone knows what is the correct code of " <% default theme %> " ?? so the html style would change dynamically...

Thanks for your help !!!

Tony.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I am suprised that you need to include the link to the CSS file at all - since I thought that perhaps the link is generally included in the portal by default and should be available to your KM resource. My first suggestion would be to remove the CSS link and see what happens (e.g. if you can still reference the CSS classes).

Remember also that a KM document is just a KM document and not a dynamic resource with scripting capabilities - so you cannot use <%=theme%> placeholder that get populated at runtime. You could write a KM resource filter that parsed the KM document content and replaced the placeholder at runtime -but that is a bit messy in my opinion.

Hope that helps,

Simon