Hi,
You can move all code for retrieving pages into one 'Pages data source' and then use two repeaters on the page. Both will hit same pages data source, but one of them will be 'dummy' repeater which will have transformation only for number of items in repeater like this: {% DataItemCount %}
, while another will contain everything for showing list of articles.
You can also create custom macro where you will use DocumentApi to retreive all pages (with same configuration as datasource) and then just show number of them on the site, something like this:
var pages = DocumentHelper.GetDocuments("CMS.Articles")
.Path("/Articles/", PathTypeEnum.Children)
.OnSite("CorporateSite")
.Culture("en-us")
.Published();
Best regards,
Dragoljub