I would like to know how can I set certain tags to the template so whenever a page is created the tag is prepoulated for that page?
Any pointers would be great.
Anything in the jcr:content node of the template seems to get apllied as initial content on page creation. So adding a cq:tags string property to the /apps/myapp/templates/contentpage/jcr:content node with something like: marketing:interest/business will cause any page built with that template to start out with the Marketing Business tag.
General tip: just create a page, configure the page properties, configure your components and/or add components to paragraph systems etc. as you'd like it for the template. Then copy the page's jcr:content node back to the template.
Maybe you need to remove some of the metadata like jcr/cq:lastModified from the template to have it "clean", but that's the way to go, using the authoring interface.
Europe, Middle East and Africa