K11 Make Repeater into an Unordered List

Heather Aluma asked on May 19, 2023 19:30

Hi. I am wondering if/how I can add semantic html or aria roles to a transformation to make it an ordered list. Each item that repeats would be the list items (li) and the entire group of them would be the unorder list (ul). This is the transformation that I am working with:

<h2><%# Eval("DocumentName") %></h2>

<div><ul>
<cc1:CMSRepeater ID="CMSFAQ" runat="server" ClassNames="CMS.FAQ" StopProcessing="true"
 TransformationName="CMS.FAQ.QuestionAnswer_Custom"
 Path='<%# Eval("NodeAliasPath") + "/%" %>'
 OrderBy = "NodeLevel, NodeOrder, NodeName" >
</cc1:CMSRepeater>

<script runat="server"> 
protected void Page_PreRender(object sender, EventArgs e)
{
  CMSFAQ.StopProcessing = false; 
  CMSFAQ.ReloadData(true); 
}
</script>
</ul></div>

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