I created a set of slider repeater images on the home page of my organization. Each slide has a text overlay title. One one of the sliders, I need to add a ® Register Trademark. Adding it inline with the other text works fine, but how can I superscript it? Is there a way to add a field to the page type/transformation that is a Trademark yes/no, then how can I add the code to the transformation that it adds the trademark sign superscripted, only if yes is checked? I need to add it after HomeSliderHeading.
<div class="item <%# Eval("HomeSliderActive")%>"> <img src="<%# Eval("HomeSliderImage") %>" alt="<%# Eval("HomeSliderHeading")%>" class="desktop "/> <a href="<%# Eval("HomeSliderURLTarget") %>"><img src="<%# Eval("HomeSliderImageMobile") %>" alt="<%# Eval("HomeSliderHeading")%>" class="mobile "/> <div class="carousel-caption no-mobile headings"> <a href="<%# Eval("HomeSliderURLTarget") %>"> <div class="outer"> <div class="inner-absolute-top"> <h3><%# Eval("HomeSliderHeading")%></h3> </div> <div class="inner-absolute-bottom"> <p><%# Eval("HomeSliderCaption")%> <span><%# Eval("HomeSliderButton")%></span></p> </div> </div> </a> </div> </div>
You can definitely add the field to page type and check if condition kind of
<% if(Eval("MyField1")) { %> <p> Some text <%# Eval("MyField")%> <% } %>
Please, sign in to be able to submit a new answer.