hi TaW,
yes, that's what I want. Sorry for making my description not clear enough. So, like TAW wrote. I would like a section title on the outside of pages and move down with every new section.
It's not really possible to do this entirely automatically in InDesign.
Your best best is to create as many master pages as there are sections. In each master page, move the text frame containing the section name, together with the blue line, down a little to where you want it.
The actual text inside the text frame could be created with a text variable, as my colleagues here are describing -- so you wouldn't need to actually type it out yourself.
You would then need to apply the appropriate masters to the appropriate pages. Thing is, if pages move around or text reflows, you would need to do this again and again. To avoid that, it's probably best to detach the thread between the separate sections, so each is its own story. That way, if text reflows, it will go into overset, and then you can manually add a page or two at the end of the section, and apply the necessary master. Whereas if everything is a single story, text reflow will cause all those carefully applied master pages to be completely out of sync.
Ariel