|
|
Line 1: |
Line 1: |
| == Strapi Events Simple Display == | | == Strapi Events Raw JSON == |
|
| |
|
| <!-- 1) Fetch the data with #get_web_data --> | | <!-- 1) Fetch the data with #get_web_data --> |
Line 5: |
Line 5: |
| |url = https://unitapedia.univ-unita.eu/strapi/api/events?populate=events,SupplementaryInfo | | |url = https://unitapedia.univ-unita.eu/strapi/api/events?populate=events,SupplementaryInfo |
| |format = json | | |format = json |
| |data = | | |headers = Authorization: Bearer STRAPI_TOKEN_REPLACEMENT |
| EventID = data.1.id,
| |
| CreatedAt = data.1.attributes.createdAt,
| |
| UpdatedAt = data.1.attributes.updatedAt,
| |
| PublishedAt = data.1.attributes.publishedAt,
| |
| EventType = data.1.attributes.events.1.Type,
| |
| Participants = data.1.attributes.events.1.Participants,
| |
| Certificate = data.1.attributes.events.1.Certificate,
| |
| Category = data.1.attributes.events.1.Category,
| |
| EventDate = data.1.attributes.events.1.Date,
| |
| Publication = data.1.attributes.SupplementaryInfo.1.Publication,
| |
| Seminars = data.1.attributes.SupplementaryInfo.1.Seminars,
| |
| Workshops = data.1.attributes.SupplementaryInfo.1.Workshops
| |
| |debug = 1 | | |debug = 1 |
| }} | | }} |
|
| |
|
| <!-- 2) Display the data --> | | <!-- 2) Display the raw JSON output --> |
| {{#if:{{#external_value:EventID}} |
| | == Raw JSON Output == |
| === Event Details ===
| | {{#external_data_debug}} |
| * **Event ID:** {{#external_value:EventID}}
| |
| * **Created At:** {{#external_value:CreatedAt}}
| |
| * **Updated At:** {{#external_value:UpdatedAt}}
| |
| * **Published At:** {{#external_value:PublishedAt}}
| |
| | |
| * **Type:** {{#external_value:EventType}}
| |
| * **Participants:** {{#external_value:Participants}}
| |
| * **Certificate:** {{#external_value:Certificate}}
| |
| * **Category:** {{#external_value:Category}}
| |
| * **Date:** {{#external_value:EventDate}}
| |
| | |
| * **Publication:** {{#external_value:Publication}}
| |
| * **Seminars:** {{#external_value:Seminars}}
| |
| * **Workshops:** {{#external_value:Workshops}}
| |
| |
| |
| <!-- Error or no data -->
| |
| * **Error:** Unable to retrieve event data. Check the debug output below.
| |
| }} | |