Outline Numbering

A simple outline numbering system to use with nested pages.

This can be used to create an automatic numbering system for your content.

(prop("Parent") 
	? prop("Parent").at(0).prop("Outline") 
		+ "." + prop("Order") 
	: prop("Order"))
.upper()/* Check if 'Parent' has a value */
(prop("Parent")

	/* If it does, display the parent's 'Outline' value */
	? prop("Parent").at(0).prop("Outline")
		
		/* ... then output a period followed by the value of 'Order' */
		+ "." + prop("Order")

	/* Otherwise, simply display the value of 'Order' */
	: prop("Order"))

/* Convert the result to uppercase */
.upper()
=
1.2.3 "1.2.3"
Duplicate Example
Visit Link