Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to retrieve page number?

Avatar

Level 4

Is there any way to retrieve a page's number in AEM? See screenshot for example. I hope use this built numbering system as way for authors to manually order content.

1 Reply

Avatar

Administrator

Hi 

As mentioned by Scott,

There is no API for doing this, but you you want to get it, then the work around it to play with CSS selectors.

1. Command:-$('.x-grid3-col-numberer') would print all the numbers.

2. var b = $('.x-grid3-row*') and b.lenght will give you all the count, b[0],b[1]....b[n] would print all the rows.

 

PS: Write these commands in browser console with page open.

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni