OleVik / grav-plugin-static-generator

Indexing and static generation of Page(s) for Grav.
MIT License
22 stars 1 forks source link

Flex pages #11

Closed acondura closed 3 years ago

acondura commented 3 years ago

When trying to index search data through the UI I get this error in the logs:

Argument 1 passed to Grav\Plugin\StaticGenerator\Data\AbstractData::content() must be an instance of Grav\Common\Page\Page, instance of Grav\Common\Flex\Types\Pages\PageObject given, called in /var/www/webroot/ROOT/user/plugins/static-generator/classes/Data/SSEData.php on line 155

Does it mean this plugin doesn't support flex objects? I'm using this plugin with the latest 1.7 and Flex pages/users enabled.

Running the index/page command from the cli doesn't produce any index/static content either.

acondura commented 3 years ago

Changing Page to PageInterface in classes/Data/AbstractData::content() and in classes/Data/DataInterface::content(), as well as adding 'use Grav\Common\Page\Interfaces\PageInterface;' at the top helps with index generation (bin/plugin static-generator index -cfw /route).

Generating the static page does work, yet.

OleVik commented 3 years ago

Until Flex Objects and 1.7 of Core are stable, I am not performing any compliance testing. There's just been to much mess with the path to 1.7 and changes to API, to make it worthwhile to branch and lock for that. Until 1.7 is stable, this plugin remains locked to 1.6.

OleVik commented 3 years ago

Solved in v3.1.0.