Template with TOC with Section Heading priority and content all priorty

Is there a way to create a template to export all Priority of a Type but allow the TOC to only list Section Headings?