HTL currentPage.listChildren component
Hi Guys,
I have an HTL component that displays the title and description of the children of the current page, it works well but there is one thing that is bugging me.
Here's the basic code of my component. I can't get ${cover.link} or ${cover.url} to work for the href to each child page as per the instructions here. As you can see ${cover.path}.html works but it's not ideal.
<div data-sly-repeat.cover="${currentPage.listChildren}" data-sly-attribute.class="${cover.name} industry">
<h4><a href="${cover.path}.html">${cover.title}</a></h4>
<p>${cover.description}</p>
</div>
Any suggestions would be appreciated.
Cheers Jeff