stafftastic Docs
praktikum.io Organization Posting Embeds

Advanced Usage

Configuration

praktikum.io Organization Posting Embeds can be configured using attributes on the <script> element. The following attributes are supported:

AttributeDefaultType
data-embed-idstring The embed ID provided to you by stafftastic
data-targetstring The ID of the element where the embed will be mounted
data-localedestring Either en or de
data-param-namespacestring Scope the URL query parameters used by the embed
data-param-namespace is optional. You usually only need it if you want to avoid conflicts with other URL parameters on the same page. The namespace is prepended to all URL parameters used by the embed, separated by a colon. For example, if you set data-param-namespace="stafftastic", the page parameter will be stored in the URL as stafftastic:page[number] instead of just page[number].
data-locale will not change the language of the embed if the user has a different language preference set in their browser. It will only be used as a fallback if no preference is set or a preference is set that is not supported by the embed.

Query parameters

Query ParameterDefaultType
page[number]1number
filter[distance]25000number Search radius in meters
filter[latitude]number Latitude of the search origin
filter[longitude]number Longitude of the search origin
filter[location]string Human-readable label for the search location
These query parameters will be prefixed with the data-param-namespace if it is set. For example, if data-param-namespace="stafftastic", the page parameter will be stored in the URL as stafftastic:page[number] instead of just page[number].