Getting section information and passing whether section is primary or not into section detail templates.