Adding a ® (Register trademark) superscript on text overlay repeater

L Younkins asked on January 29, 2021 16:43

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>

Recent Answers


Sultan Ahmed answered on February 2, 2021 15:26 (last edited on February 2, 2021 15:27)

You can definitely add the field to page type and check if condition kind of

<% if(Eval("MyField1")) { %>
    <p> Some text <%# Eval("MyField")%>
<% } %>
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.