kaspo3
kaspo3 is an plugin to interface Typo3 (or any CMS) with data from AirTable.
Demos
This bundle contains the following plugins:- filter: To filter activities/cases by tags
- rightmenu: To generate overview of related focusomraade (overordnet)
- tagbox: To generate list of related tags for activities/cases
Import Airtable
Whenever you make changes in Airtable, remember to login and import.
Remember the following:- Any item (Praksiseksempel, Aktivitet, Fokusområde, osv.) should always have a Danish title.
- If an item doesn't have a PageID, it will be ignored on import. This can be used for items in draft ("Fremtidige").
- If an item doesn't have an English title, the English options wont be enabled.
- If an item is just a tag, the page should be registered as an empty page in Typo3 (e.g. one that says "Coming soon") and linked to a PageID (otherwise it wont appear in the lists).
- Any Praksiseksempel and Aktivitet should always have an Overordnet_fokusområde - otherwise it will be ignored. This Overordnet_fokusområde should also be linked in it's Fokusområder list.
- Danish titles must be unique within the same table. Any duplicates will cause an error in import.
- English titles must be unique within the same table. Any duplicates will cause an error in import.
- PageIDs must be unique within the same table. Any duplicates will cause an error in import.
API endpoints
POST https://kaspo3.au.dk/api/getItems
returns an array of all items under a given formatParameters
format = "aktiviteter" | "praksis" | "fokusomrabader" | "undervisningsformer" | "teknologiformer" | "fakulteter" | "teknologi"
lang = "da" | "en" | null
POST til https://kaspo3.au.dk/api/getItem
returns a single item from a given format and pageid=pageParameters
format = "aktiviteter" | "praksis" | "fokusomraader" | "undervisningsformer" | "teknologiformer" | "fakulteter" | "teknologi"
page = specifik pageid svarende til "pageid" på Typo3 og i Airtable
lang = "da" | "en" | null
GET https://kaspo3.au.dk/api/getItems/{format}/
returns an array of all items in a given format - both Danish and EnglishParameters
format = "aktiviteter" | "praksis" | "fokusomraader" | "undervisningsformer" | "teknologiformer" | "fakulteter" | "teknologi"
GET https://kaspo3.au.dk/api/getItems/{format}/{lang}
returns an array of all items in a given format - either Danish or EnglishParameters
format = "aktiviteter" | "praksis" | "fokusomraader" | "undervisningsformer" | "teknologiformer" | "fakulteter" | "teknologi"
lang = "da" | "en"
GET https://kaspo3.au.dk/api/getItem/{format}/{pageid}
returns a single item under a given format and pageid - both Danish and EnglishParameters
format = "aktiviteter" | "praksis" | "fokusomraader" | "undervisningsformer" | "teknologiformer" | "fakulteter" | "teknologi"
pageid = specifik pageid svarende til "pageid" på Typo3 og i Airtable
GET https://kaspo3.au.dk/api/getItems/{format}/{pageid}/{lang}
returns a single item under a given format and pageid - either Danish or EnglishParameters
format = "aktiviteter" | "praksis" | "fokusomraader" | "undervisningsformer" | "teknologiformer" | "fakulteter" | "teknologi"
pageid = specifik pageid svarende til "pageid" på Typo3 og i Airtable
lang = "da" | "en"