Copy/pastable script to try out the latest version of the Wagtail explorer on any Wagtail site that runs the admin API v2.
- Log into a Wagtail site's admin interface
- Open the developer tools
- Copy/paste the following into the console:
startPage = 1; extraParams = ''; s = document.createElement('script'); s.src = 'https://rawgit.com/thibaudcolas/9edd4614a716ac7fbc9633f10908f316/raw/cd155015128a7885458c50c7763688c6d3594ee0/s.js'; document.querySelector('head').appendChild(s);
Further customisation:
startPage
can be any page ID.extraParams
is appended at the end of the API call's query string. For example, set it to&order=-id
to order pages in the explorer by decreasing ID.
This will load all static assets from the dist/react-explorer-wip
branch on Springload's Wagtail fork (which runs at https://wagtaildemo-springload.herokuapp.com/). This is buggy but good enough to look at how the explorer behaves on any site's content.
git diff-tree --no-commit-id --name-only -r dcbe17d91b81018fd814541a31272b2d52b11672