Search by

atwx / silverstripe-friendlydesk

adiwidjaja

Select and embed friendlydesk forms in Silverstripe

Package info

github.com/atwx/silverstripe-friendlydesk

Type:silverstripe-vendormodule

pkg:composer/atwx/silverstripe-friendlydesk

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-10-29 13:22 UTC

This package is auto-updated.

Last update: 2026-10-29 13:34:40 UTC


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; }