Skip to content

Extended ShortCodes#304

Merged
thmarx merged 16 commits intoCondationCMS:mainfrom
thmarx:shortcode_expressions
Oct 11, 2024
Merged

Extended ShortCodes#304
thmarx merged 16 commits intoCondationCMS:mainfrom
thmarx:shortcode_expressions

Conversation

@thmarx
Copy link
Copy Markdown
Collaborator

@thmarx thmarx commented Oct 11, 2024

This PR brings a new ShortCode parser that is more extendable than the old regex based one.

shortcode parameters can no contains strings, numbers, booleans and expressions.
Tt is possible to access the metadata in these expressions.

e.g.
[[title title="${meta.title}" /]]
[[person age=46 /]]
[[person admin=false /]]

@thmarx thmarx added this to the 6.4.0 milestone Oct 11, 2024
@thmarx thmarx linked an issue Oct 11, 2024 that may be closed by this pull request
@thmarx thmarx marked this pull request as ready for review October 11, 2024 11:10
@thmarx thmarx merged commit 611ebc3 into CondationCMS:main Oct 11, 2024
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.

Expressions in ShortCode parameters

1 participant