Hierarchisches Content-Modul mit Hauptkategorien und Kategorien. Jeder Artikel kann Bilder, Video-Streams, Videodateien, Links und Downloads enthalten. Unterstützt User-Zuordnung und Highlight-Flag.
Zwei-stufige Hierarchie: Hauptkategorien → Kategorien. Kategorien können nach Hauptkategorie gefiltert werden.
Code — Hauptkategorien
$config = [];
$config["website"] = '1';
$config["status"] = '1';
$config["label"] = '';
$config["search"] = '';
$config["orderby"] = 'headline'; // id | headline | random
$config["direction"] = 'asc';
$config["start"] = '0';
$config["limit"] = '100';
$mainCats = getArticleMainCategorieList($config);
foreach ($mainCats as $cat) {
echo $cat["id"];
echo $cat["headline"];
echo $cat["image"]["image"];
}
// Einzelne Hauptkategorie
$mainCat = getArticleMainCategorieContent("3");
Code — Kategorien
$config = [];
$config["website"] = '1';
$config["status"] = '1';
$config["maincategorie"] = '3'; // optional: nur Kats. dieser Hauptkat.
$config["label"] = '';
$config["search"] = '';
$config["orderby"] = 'headline';
$config["direction"] = 'asc';
$config["start"] = '0';
$config["limit"] = '100';
$cats = getArticleCategorieList($config);
foreach ($cats as $cat) {
echo $cat["id"];
echo $cat["headline"];
echo $cat["maincategorie"]; // Hauptkategorie-ID
}
// Einzelne Kategorie
$cat = getArticleCategorieContent("5");
Rückgabe-Keys (Hauptkategorien)
| Key | Beschreibung |
|---|---|
| id / key / tags / headline / content / description | Basisdaten |
| label / website | Zuteilungen |
| status / update | Status und letztes Update |
| image.image / .thumbnail / .small | Bild (geprüft) |
| video.video / .width / .height | Video (falls vorhanden) |
Rückgabe-Keys (Kategorien — zusätzlich)
| Key | Beschreibung |
|---|---|
| maincategorie | Zugehörige Hauptkategorie-ID |
Ausgabe (Live) — Hauptkategorien
[
{
"id": "19",
"key": "adfadfadsf-adf19",
"tags": "",
"headline": "adfadfadsf adf",
"content": "",
"description": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-20 13:43:21"
},
{
"id": "20",
"key": "afdadfadf20",
"tags": "",
"headline": "afdadfadf",
"content": "dfasdf adsf<\/p>",
"description": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-20 14:02:48"
},
{
"id": "23",
"key": "Hallo23",
"tags": "",
"headline": "Hallo",
"content": "",
"description": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-22 12:35:07"
},
{
"id": "18",
"key": "Test-Alois18",
"tags": "",
"headline": "Test Alois",
"content": "",
"description": "test",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-20 10:06:08"
},
{
"id": "14",
"key": "Test-nummer-305",
"tags": "Eigenes, Mein, Schlagwort",
"headline": "Test2",
"content": "
Hauptkategorie Test2<\/p>",
"description": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2024-09-19 17:08:07",
"video": {
"video": "media\/article\/articelmaincategory\/video\/14_T1727169510T_X1200X_Y1200Y.mp4",
"width": "1200",
"height": "1200"
}
},
{
"id": "21",
"key": "asdfdsf",
"tags": "26",
"headline": "Test26",
"content": "
asdfdasf<\/p>",
"description": "adfdsafs",
"label": [
"6"
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-22 12:35:38",
"image": {
"image": "media\/article\/articelmaincategory\/image\/21_T1768917639T.webp",
"thumbnail": "media\/article\/articelmaincategory\/image\/thumbnail\/21_T1768917639T.webp",
"small": "media\/article\/articelmaincategory\/image\/small\/21_T1768917639T.webp"
}
},
{
"id": "22",
"key": "12",
"tags": "Winter",
"headline": "Test26-1",
"content": "
adsfasdf<\/p>",
"description": "adfsdaf",
"label": [
"3"
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-21 09:08:58",
"image": {
"image": "media\/article\/articelmaincategory\/image\/22_T1768982932T.webp",
"thumbnail": "media\/article\/articelmaincategory\/image\/thumbnail\/22_T1768982932T.webp",
"small": "media\/article\/articelmaincategory\/image\/small\/22_T1768982932T.webp"
}
},
{
"id": "13",
"key": "Test-Kategorie-MD-12",
"tags": "20",
"headline": "Testasdfadsf",
"content": "
Test Haupkategorie<\/p>",
"description": "test",
"label": [
"4"
],
"website": [
"1",
"2"
],
"status": "1",
"update": "2026-02-09 23:26:08",
"video": {
"video": "media\/article\/articelmaincategory\/video\/13_T1727017089T_X1200X_Y1200Y.mp4",
"width": "1200",
"height": "1200"
}
}
]