Dateien leider noch überhaupt nicht beschäftigt und daher keine Ahnung davon.
Weißt Du oder hast Du schon mal probiert einen User-Block an einem anderen Computer einzulesen, denn das sollte doch ebenso funktionieren.
Die User-Blöcke liegen ja unter Windows z.B.
", das ich in diesem Fall verwendet habe, gibt es dann für diesen User-Block ein Verzeichnis "
", die folgenden Inhalt hat.
Eigentlich bräuchte man diese Datei dann doch nur bei sich auch in das Verzeichnis "userblocks" kopieren und in die Datei "list.json" im entsprechenden Verzeichnis eintragen und müsste diese dann auch abrufen können!
Code: Alles auswählen
{
"data": {
"alias": false,
"_styles": {
"padding-top": "(@paddingTop * 1rem)",
"padding-bottom": "(@paddingBottom * 1rem)",
"background-color": "@bgColor",
"*": {
"box-sizing": "border-box"
},
"body": {
"margin": "0",
"font-family": "Jost"
},
"nav": {
"background-color": "#003366",
"padding": "0"
},
".menu-container": {
"display": "flex",
"justify-content": "space-between",
"align-items": "center",
"flex-wrap": "wrap",
"padding": "0 10px"
},
".menu": {
"display": "flex",
"flex-wrap": "wrap",
"list-style": "none",
"margin": "0",
"padding": "0"
},
".menu > li": {
"position": "relative"
},
".menu > li > a": {
"display": "block",
"padding": "15px 20px",
"color": "white",
"text-decoration": "none"
},
".menu > li:hover": {
"background-color": "#0055aa"
},
".mega-menu": {
"position": "absolute",
"left": "0",
"top": "100%",
"width": "600px",
"display": "none",
"background-color": "#e6f0ff",
"padding": "20px",
"box-shadow": "0 2px 10px rgba(0, 0, 0, 0.2)",
"z-index": "1000",
"flex-wrap": "nowrap"
},
".menu > li:hover .mega-menu": {
"display": "flex"
},
".mega-menu .column": {
"flex": "1",
"min-width": "200px",
"padding": "10px"
},
".mega-menu h3": {
"margin-top": "0",
"color": "#003366"
},
".mega-menu a": {
"display": "block",
"color": "#003366",
"text-decoration": "none",
"padding": "5px 0"
},
".mega-menu a:hover": {
"text-decoration": "underline"
},
".mega-menu img": {
"width": "100%",
"height": "auto",
"border-radius": "8px",
"margin": "10px"
},
".home-button a": {
"background-color": "#0055aa",
"color": "white",
"border-radius": "30px",
"padding": "10px 20px",
"margin": "10px",
"display": "inline-block",
"text-decoration": "none",
"transition": "background-color 0.3s ease"
},
".home-button a:hover": {
"background-color": "#0077cc"
},
".menu-toggle": {
"display": "none",
"background-color": "#003366",
"color": "white",
"padding": "15px 20px",
"border": "none",
"width": "100%",
"text-align": "left",
"font-size": "16px"
},
".desktop-only": {
"display": "block"
},
".mobile-only": {
"display": "none"
},
"@media (max-width: 768px)": {
".menu-container": {
"flex-direction": "column",
"align-items": "flex-start"
},
".menu": {
"display": "none",
"flex-direction": "column",
"width": "100%"
},
".menu.show": {
"display": "flex"
},
".menu > li:hover .mega-menu": {
"position": "static",
"display": "flex",
"flex-direction": "column",
"width": "100%",
"box-shadow": "none"
},
".mega-menu": {
"width": "100%",
"flex-direction": "column"
},
".menu-toggle": {
"display": "block"
},
".desktop-only": {
"display": "none"
},
".mobile-only": {
"display": "list-item",
"margin": "0",
"padding": "0"
},
".mobile-only a": {
"display": "inline-block",
"margin": "15px 15px 10px 15px",
"background-color": "#0055aa",
"color": "white",
"border-radius": "30px",
"padding": "10px 20px",
"text-decoration": "none",
"transition": "background-color 0.3s ease"
},
".mobile-only a:hover": {
"background-color": "#0077cc"
}
}
},
"_name": "content5",
"_sourceTheme": "mobirise5",
"_customHTML": "<section data-bs-version=\"5.1\" class=\"content5\" group=\"Content\">\n <mbr-parameters>\n <header>Size</header>\n <input type=\"checkbox\" title=\"Full Width\" name=\"fullWidth\" checked=\"\">\n <input type=\"range\" inline=\"\" title=\"Top\" name=\"paddingTop\" min=\"0\" max=\"10\" step=\"1\" value=\"0\">\n <input type=\"range\" inline=\"\" title=\"Bottom\" name=\"paddingBottom\" min=\"0\" max=\"10\" step=\"1\" value=\"0\">\n <input type=\"range\" name=\"textWidth\" title=\"Width\" min=\"4\" max=\"12\" value=\"12\" step=\"1\">\n <header>Show/Hide</header>\n <input type=\"checkbox\" title=\"Title\" name=\"showTitle\">\n <input type=\"checkbox\" title=\"Subtitle\" name=\"showSubtitle\" checked=\"\">\n <header>Background</header>\n <input type=\"color\" title=\"Color\" name=\"bgColor\" value=\"#003366\">\n </mbr-parameters>\n\n <!-- Start Mega Menu generated by ChatGPT -->\n <button class=\"menu-toggle\" onclick=\"toggleMenu()\">☰ Menü</button>\n <nav>\n <div class=\"menu-container\">\n \n <ul class=\"menu\" id=\"mainMenu\">\n \n <li><a href=\"index.html\">Startseite</a></li>\n <li><a href=\"Tutorial.html\">Tutorial</a></li>\n <li>\n <a href=\"#\">Mega-Menü</a>\n <div class=\"mega-menu\">\n <div class=\"column\">\n <h3>Seiten</h3>\n <a href=\"https://www.mobirise-tutorials.com/Forum/\" target=\"_blank\">Forum</a>\n <a href=\"https://www.mobirise-tutorials.com/Formular/\" target=\"_blank\">Kontakt</a>\n <a href=\"https://www.mobirise-tutorials.com/\" target=\"_blank\">Mobirise Tutorials</a>\n <a href=\"https://www.mobirise-tutorials.com/Suchen.php\" target=\"_blank\">Suchen</a>\n </div>\n <div class=\"column\">\n <h3>AI generierte Bilder</h3>\n <img style=\"max-width: 200px;\" src=\"https://www.mobirise-tutorials.com/AI-Mega-Menu/images/Dreimastbark.jpg\" alt=\"Dreimastbark\">\n <img style=\"max-width: 200px;\" src=\"https://www.mobirise-tutorials.com/AI-Mega-Menu/images/Pferd.jpg\" alt=\"Pferd\">\n </div>\n </div>\n </li>\n <li><a href=\"https://www.mobirise-tutorials.com/Formular/\" target=\"_blank\">Kontakt</a></li>\n \n <!-- Button nur für Mobilgeräte -->\n <li class=\"home-button mobile-only\">\n <a href=\"https://www.mobirise-tutorials.com/\" target=\"_blank\">Mobirise Tutorials</a>\n </li>\n </ul>\n \n <!-- Button nur für Desktop -->\n <div class=\"home-button desktop-only\">\n <a href=\"https://www.mobirise-tutorials.com/\" target=\"_blank\">Mobirise Tutorials</a>\n </div>\n \n </div>\n </nav>\n <!-- End Mega Menu generated by ChatGPT -->\n \n</section>",
"_JSplaceholders": [],
"_PHPplaceholders": [],
"_anchor": "Mega-Menu-ChatGPT",
"_isUserblock": true,
"_cid": "uRLiCezeEF",
"_customCSS": "",
"_protectedParams": [],
"_alwaysBottom": false,
"_alwaysTop": false,
"_global": false,
"_noDrag": false,
"_positionAbsolute": false,
"_once": false,
"_params": {
"fullWidth": true,
"paddingTop": "0",
"paddingBottom": "0",
"textWidth": "12",
"showTitle": false,
"showSubtitle": true,
"bgColor": "#003366"
}
},
"themeName": "mobirise5",
"parent": "content5",
"blockName": "content5_9",
"mediaPaths": "[]",
"isUserblock": "true",
"customName": "Mega-Menu-ChatGPT"
}