Picture of John Anderson
Automatic numbering of pages?
by John Anderson - Friday, 19 July 2019, 6:50 PM

I'm creating a course with a hierarchy of content. I find myself wanting to number the high-level topics as 1, 2, 3, 4, etc.

Within section 1, I want subtopics numbered as 1.1, 1.2, 1.3, 1.4, etc.

Is there an easy way to do this in the authoring tool? I believe I am using the latest version - 9.0

Picture of Simon Date
Re: Automatic numbering of pages?
by Simon Date - Monday, 22 July 2019, 4:10 PM

Hi John,

If you have access to a theme you could add some Javascript that works out which page it is (and if it has any children) and then assigns the number based on that. Then create a div or span in your template and set the value there.

If you don't have access I'm not sure this is possible as I don't think Adapt core tracks any variables. Perhaps it could be a feature request to have something like {{pageNumber}} available.

Picture of John Anderson
Re: Automatic numbering of pages?
by John Anderson - Monday, 22 July 2019, 5:24 PM


  Thanks for the input. I can accomplish what I want within a single page using CSS. There are articles on the web (e.g. https://2ality.com/2012/01/numbering-headingshtml.html ) that explain how to do this. However, that does not seem to work across pages. I'll keep your suggestions about javascript (yes, I do have access to the theme) in mind.


Many thanks,