Nicht ein Bug aber ein potenzielles Problemchen

Hallo zusammen Stellt euch vor, dass ihr eine CMS Webseite für einen Kunden erstellt. Auf der Startseite verbindet ihr ein CMS Item mit einem MD File, z.B. willkommen.md. Darin kann der Kunde was neues schreiben - sofern er diese Datei im Editor nicht umbenennt oder gar löscht. Tut er eines der beiden Möglichkeiten, verliert das CMS die Verbingung zur Datei. Insofern logisch. Gehe ich nun vom Kunden aus (arbeitet im Editor), der dies nicht weiss, dass er an dieser gebundenen Datei NICHTS tun darf, als der Inhalt zu ändern, crasht er die Webseite. Man könnte dies umgehen, indem man die Componenten Collection verwendet. Da die Startseite nur einen Bereich für einen Willkommenstext hat, ist die Componente Collection sinnfern. Dieser Text wird nur gelegentlich verändert. Die Startseite ist kein Blogseite.

Vielleicht könnte man die Componente ITEM auch so gestallten, dass entweder der Ordner oder das md-file ausgewählt werden kann - z.B. für die Startseite ist wilkommen.md im Ordner “start” - Gibt man nur den Ordner an, liesst das CMS immer nur das nach datum neueste File aus diesem Ordner. So würde man diesen potenzielles Problem mit dem Kunden leicht umgehen. Und man müsst in Elements auch nur eine Ordnerstrucktur für das CMS und den Inhalt komplett im Editor erstellen. Elements exportiert momentan keine leeren Ordner.

mfg
Romano

Englisch
@dan
Not a bug, but a potential minor issue.
Hi everyone. Imagine you’re building a CMS website for a client. On the homepage, you link a CMS item to a Markdown file—say, welcome.md. The client can then write new content in it—provided they don’t rename or delete the file within the editor. If they do either of those things, the CMS loses the connection to the file. That makes sense, logically. However, if we consider the client (working in the editor) who doesn’t realize they shouldn’t do anything to that linked file other than edit its content, they could end up crashing the website. You could work around this by using the “Component Collection” feature, but since the homepage only has a single area for a welcome message, a collection doesn’t really make sense there. The text is only updated occasionally; the homepage isn’t a blog page.

Perhaps the “ITEM” component could be designed to allow selecting either a specific folder or a specific Markdown file—for instance, having welcome.md inside a start folder for the homepage. If only the folder were specified, the CMS could simply read the most recent file (by date) from that folder. That would easily avoid this potential issue with the client. Plus, you would only need to set up the folder structure for the CMS in Elements and create all the actual content within the editor. (Elements doesn’t currently export empty folders.)
Alternatively, one could define "sections" to which an MD file is then assigned via the editor.

Best regards,
Romano