Now I want to get this to work like the little orange clickers in the docs which have a Dynamic state in the second arg to their CellGroupData. Is there a way to make this function do that or any method that does not involve NotebookWrite/Put?
I don’t think it can as docs seem to work on higher level. (TaggingRules).
Also, this example DOES NOT work but is close. I assumed "ExampleSection" | "ExampleSubsection" have appropriate CounterIncrements but they do not. If you edit Reference.nb so they have, then you could use this code. Currently it works well only for "NotesSection" | "PrimaryExamplesSection" and the very first ExampleSection or ExampleSubsection as the counter is fixed at 0.