Package: wagtailgridder
Wagtail GridderWagtail Gridder is a Bootstrap 4 enabled layout for the Wagtail CMS. Grid Items are created within categories and displayed on a Grid Index Page. The JavaScript libraries Gridder and MixItUp are included.RequirementsDjango >= 3.2Wagtail >= 3.0Bootstrap >= 4InstallationThis installation assumes that you already have Django 3.2+ and Wagtail 3.0+ installed as part of your project.Wagtail Gridder can then be installed like most Django apps. First, install it into yourvenv:pip install wagtailgridderThen addwagtailgridderto your list ofINSTALLED_APPSin your Django settings file. You will also need to addwagtail.contrib.modeladmin, if you haven't already. Your final settings may look something like this:WAGTAIL_APPS=['taggit','modelcluster','wagtail.core','wagtail.admin','wagtail.documents','wagtail.snippets','wagtail.users','wagtail.images','wagtail.embeds','wagtail.search','wagtail.sites',]WAGTAIL_CONTRIB_APPS=['wagtailgridder','wagtail.contrib.modeladmin',]INSTALLED_APPS=INSTALLED_APPS+WAGTAIL_APPS+WAGTAIL_CONTRIB_APPSThis Wagtail Gridder template extendsbase.html, with the hope that this allows inclusion or your site's top and bottom navigation without much effort. There isan example base.html provided.Then log into the Wagtail admin, and you should see a "Grid Layouts" section of the menu. The first thing you will want to do is add some "Grid Categories." After that, you can create "Grid Items" (the cards, pictured below) and put them together on a "Grid Index Page."SettingsWAGTAILGRIDDER_CLEAR_CACHE = FalseThe default Wagtail Gridder template caches the grid display area to reduce the number of queries performed. SettingWAGTAILGRIDDER_CLEAR_CACHE = Truein your Django settings will clear theentireDjango cache after a page is edited. This approach is necessary, as Django does not currently support deletion from the cache by pattern. Setting this toTruewill clear your cache every time you save a Wagtail page. If anyone knows of a better solution that works for Django's supported cache systems, please let us know!WAGTAILGRIDDER_GRID_ITEM_PARENT_PAGE_TYPES = ["GridIndexPage"]By default, GridItem pages may only be created as children of GridIndexPage pages. To
allow GridItem pages under any parent, setWAGTAILGRIDDER_GRID_ITEM_PARENT_PAGE_TYPES = None. See theWagtail Documentationfor moreWAGTAILGRIDDER_GRID_INDEX_PAGE_SUBPAGE_TYPES = ["GridItem"]By default, GridIndexPage pages may only have GridItem pages as children. To allow GridIndexPage pages to have other child types, setWAGTAILGRIDDER_GRID_INDEX_PAGE_SUBPAGE_TYPES = None. See theWagtail Documentationfor more details.GridIndexPageis inherited from an abstract model,GridIndexPageAbstract, which you may wish to customize.ScreenshotsGrid Index Page:Grid Index Page, with Grid Item expanded:Optional featured hero region:Grid Item landing page:Editing a Grid Item:Editing a Grid Index Page:MaintainerTimothy AllenatThe Wharton SchoolThis package is maintained by the staff ofWharton Research Data Services. We are thrilled thatThe Wharton Schoolallows us a certain amount of time to contribute to open-source projects. We add features as they are necessary for our projects, and try to keep up with Issues and Pull Requests as best we can. Due to constraints of time (our full time jobs!), Feature Requests without a Pull Request may not be implemented, but we are always open to new ideas and grateful for contributions and our package users.Contributors (Thank You!)Charles RejonisNoel VictorRyan Sullivan