Design and CSS styles
Version 5.x > Design and CSS styles > Adding code in "HTML envelope" View modes: 
User avatar
Member
Member
merete-grape - 11/18/2010 5:39:37 AM
   
Adding code in "HTML envelope"
In "content before" I have:
<div class="BGfane"><img style=alt="" src="/fghrevisjon.no/media/faner{%cmscontext.currentdocument.documentnamepath%}.jpg" border="0">
<% endif %>
<br /><img style=alt="" src="/fghrevisjon.no/media/webgrafikk/BGfaneBue.jpg" border="0">

Please help me get this right

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/18/2010 6:50:28 AM
   
RE:Adding code in "HTML envelope"
Hello,


you could create a custom macro which can contain the condition about current context and can return the appropriate HTML code. Please see the Macro documetation for more details.


Best regards,
Helena Grulichova