Try our conversational search powered by Generative AI!

How to use Html.ShellCssLink ?

Vote:
 

Dear EPISErver Team,

It seems, that Html.ShellCssLink doesn't work properly. 

I tried to use it on view as @Html.ShellCssLink("ClientResources/epi/themes/legacy/ShellCoreLightTheme.css"). But it doesn't generate html markup, it generates text like  

<link href="/EPiServer/Shell/1.0.456/ClientResources/epi/themes/legacy/ShellCoreLightTheme.css" rel="stylesheet"></link>

And as a result I see this text  on my page in browser.

How to use @Html.ShellCssLink to generate html 'link' ?

 

Thank you.

#73754
Aug 08, 2013 9:46
Vote:
 

Try

@Html.Raw(Html.ShellCssLink("ClientResources/epi/themes/legacy/ShellCoreLightTheme.css"))

    

#73767
Aug 08, 2013 15:04
Vote:
 

Thank you.

#73863
Aug 13, 2013 11:39
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.