๐Ÿท๏ธ 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.

โ† Multiple Images Multi-select Iteration โ†’

This site uses cookies for essential functionality and to improve your experience. See our Privacy Policy.