Skip to content

Note the implode and list aliases on the join modifier page - #2004

Open
joshdaugherty wants to merge 1 commit into
statamic:6.xfrom
joshdaugherty:docs/join-modifier-aliases
Open

joshdaugherty wants to merge 1 commit into
statamic:6.xfrom
joshdaugherty:docs/join-modifier-aliases

Conversation

@joshdaugherty

Copy link
Copy Markdown

The join modifier is registered under three names: join, implode and list all map to joinplode in ExtensionServiceProvider. The Join page doesn't mention the other two, so a search for implode (the name of the PHP function) finds nothing.

list already has its own page, which links to Join, but implode isn't documented anywhere. This adds one line to the Join page naming both aliases, in the same form the Option List page uses for piped.

Checked on statamic/cms v6.26.0: with t set to ["a", "b", "c"], {{ t | implode }}, {{ t | list }} and {{ t | join }} all render a, b, c, and {{ t | implode(" + ") }} renders a + b + c.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016o2kMZ4DZaNGJ4pUqPov7D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant