Blog Sections Open

Counting Child Resources for Ditto Output with a Small Evo Snippet

A lightweight pattern for calculating child counts and feeding them into listings.

Sometimes the simplest requirements produce awkward template logic: for example, showing how many child resources live under a given section and then using that number in a Ditto-driven listing. This older solution took the usual Evo route: build a small helper snippet and expose the value where Ditto can use it.

Why it was useful

  • it avoided manual counts
  • it let list pages reflect structure dynamically
  • it fit well with PHx or Ditto placeholder-based output

Why it belongs in history

Small helper snippets like this are part of the real Evo DNA. They show how often the platform was extended through focused, project-specific utilities rather than giant general-purpose packages.

Why this belongs in the timeline

Utility snippets like this are historically important because they reflect the everyday extension style of old Evo projects: solve one concrete output problem cleanly and reuse it where needed.

Newer post

Formatting Unix TV Dates for Ditto Without Relying on PHx

A practical date-formatting pattern for TV values stored as Unix timestamps.

Older post

Building Positive and Negative Reviews with Jot in Evolution CMS

A historical review-pattern article about extending Jot beyond plain comments.