Skip to content

add media for challenge descriptions#215

Open
d3liri0us wants to merge 2 commits into
CTFd:masterfrom
d3liri0us:master
Open

add media for challenge descriptions#215
d3liri0us wants to merge 2 commits into
CTFd:masterfrom
d3liri0us:master

Conversation

@d3liri0us

@d3liri0us d3liri0us commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Add media files to challenge description by defining "media" key in challenge.yml and use /files/media/ path in description. (#209)

challenge-media.webm

@ColdHeat

Copy link
Copy Markdown
Member

This is a good strategy but I think that in reality we need to be able to access the existing media config values.

The main issue is that we don't have a good way to self-reference the config.

Pages support a feature where you can replace like {{ logo }} with the media URL. Can you change the behavior in your PR to not have the media key in challenge.yml and instead inject with the {{ }} syntax?

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.

2 participants