atwx / silverstripe-friendlydesk
Select and embed friendlydesk forms in Silverstripe
Package info
github.com/atwx/silverstripe-friendlydesk
Type:silverstripe-vendormodule
pkg:composer/atwx/silverstripe-friendlydesk
1.0.0
2026-10-29 13:22 UTC
Requires
- php: ^8.3
- guzzlehttp/guzzle: ^7.9
- silverstripe/framework: ^6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Select and embed friendlydesk forms in Silverstripe.
Configuration
FRIENDLYDESK_URL="https://<tenant>.friendlydesk.eu" FRIENDLYDESK_TOKEN="fd_…" # API key of the tenant (Team → API-Schlüssel), role "Nur lesen" is enough
Usage
private static array $db = [ 'RegistrationForm' => 'FriendlydeskForm', ];
The field is scaffolded as a dropdown with the forms that currently accept submissions (title and event date). The stored value is the public URL of the form; a form that closed later stays selected.
In templates:
$RegistrationForm.Embed <%-- widget, form title hidden --%>
$RegistrationForm.EmbedWithTitle <%-- widget with the form title --%>
$RegistrationForm <%-- the URL --%>
The widget is styled with CSS variables, e.g.
.friendlydesk-form { --ff-primary: #1c3b80; --ff-radius: 0; }