Skip to content

FarosCMS 0.1.50

Choose a tag to compare

@github-actions github-actions released this 04 Oct 10:32
  • Admin > Content types is a list of cards. Each type shows its icon, name and address, a one-line description, how many fields and entries it has, how its list looks, who defines it (the theme, the site, both) and, for the ready-made ones, a switch that turns it on or off; a type that is on has Entries and Edit. A new type is made from a small form that opens at the top. The big table is gone
  • The editor of a type is compact. Names and a pointer to the layouts (Archive Layouts, Single Layouts) are in a narrow column; the fields are in rows instead of a table with eight columns: key (marked Theme when the theme defines it), label, kind, and the ways the field is used as chips (Filter for a select, Card, Page, Retired). A field you added also has a help text and, for a select, its options, shown only for that kind. A field you added can now be removed (the page said so, but there was no way to): its row is dimmed and Undo brings it back until the type is saved; the values already in content are kept. A row that was just added can be taken away at once, and a retired field is dimmed
  • Fixed: saving a type no longer wipes the help text of a field that had one (the form did not carry it, so it was read as emptied); it has a box now
  • Tests: a new tests/http/content_types_test.py (the cards, the switch, a new type, a field with options and help, how it comes back, saving as it is, retiring and removing, a field from the theme, who may) and the sidebar test follows SEO in the menu. The full suite and CI were not run