๐ท๏ธ Content Tags
Last updated๏ผ2026-11-25
๐ท๏ธ Content tags Tags
A library of tag elements grouped by group in the admin “Tag Management”. Admin path: Admin โ Content Management โ Tag Management
๐ Tag Groups (by group)
- {{range .TagBanners}} banner group (home page hero copy) โ array
- {{range .TagSections}} section group (block copy) โ array
- {{range .TagFeatures}} features group (core feature tag cloud) โ array
- {{range .TagCTAs}} cta group (call-to-action copy) โ array
Each tag object contains Name, Content, Remark, Sort (returned already grouped by group query; the object itself has no Group field โ grouping is expressed via variable names such as TagBanners/TagSections).
๐ป Usage Example
<!-- Tag cloud (home page features group) -->
<div class="tag-cloud">
{{range .TagFeatures}}
<span class="tag-cloud-item">{{if .Content}}{{.Content}}{{else}}{{.Name}}{{end}}</span>
{{end}}
</div>
<!-- Banner title and subtitle (first item of the banner group) -->
{{with index .TagBanners 0}}
<h1>{{.Name}}</h1>
<p>{{.Content}}</p>
{{end}}
<!-- CTA copy (cta group) -->
{{range .TagCTAs}}
<div class="cta">
<h3>{{.Name}}</h3>
<p>{{.Content}}</p>
</div>
{{end}}
๐ About “Content’s Own tags”
Articles / products / cases do not have a per-content tags field (no such column in the data tables). Do not write {{.News.Tags}} / {{.Product.Tags}} / {{.Case.Tags}} in templates โ these always return empty without erroring, which is very hard to debug. To tag content, use the “grouped tag library” above (.TagBanners / .TagSections / .TagFeatures / .TagCTAs), maintained per group in the admin “Tag Management” and injected by the system.
CloudSite SaaS