Add contribution page tokens to contribution tokens #27201
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Add contribution page tokens to contribution tokens
Before
Tokens not available
After
A small handful are
Technical Details
@larssandergreen this is a reviewers cut of the token portion of the changes in #27173 - the main change is that I added some extra tokens that I could see would be required in the online contribution template
My other focus was to work through the code & understand where the html handling would best be done. I have some thoughts based on this - which I will put up separately. Note the test I put up is just where I was most comfortable putting it - I suggest we add both this one & your test tweaks (once this all passes)
Comments
Update - I think the line break handling best lives in the coversion within the token - ie #27204 and #27203