Closed Dhrumilcse closed 1 year ago
Hi @Dhrumilcse,
thank you for reporting. Are you using the PHP built-in server, but did not specify the router file? This would be a common reason for the error showing up. In that case, try running e.g. php -S localhost:8765 kirby/router.php
Closing the issue, feel free to reopen if this does not solve the error.
Thanks, @jonathan-reisdorf. Indeed I was using the built-in server. Using the router file worked. I appreciate the help.
Expected Behavior
Should be able to see the button to export the static site
Current Behavior
Throws
Field "staticsitegenerator": The field type "staticSiteGenerator" does not exist
when the fieldstaticSiteGenerator
is added in thesite.yml
blueprint.Steps to Reproduce
Manually download the content of the plugin (
v1.21.1
) and place it in thesite/plugins
. (For added detail - it comes up on thepanel/system
page, so assuming it was installed correctly.)Modify
site/config/config.php
return [ 'debug' => true, 'd4l' => [ 'static_site_generator' => [ 'endpoint' => 'generate-static-site', 'output_folder' => './static', ], ], ];
title: Site fields: staticSiteGenerator: label: Generate a static version of the site