Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Migrating pages to flex-pages

Started by Christiana 6 years ago · 2 replies · 1580 views
6 years ago

When upgrading to the new Grav version from 1.6.x...can all existing pages be converted to flex pages or is there a lot of manually work to do?

There are over 1000 of modular pages in the project.

last edited 02/26/21 by pamtbaau
6 years ago

@christiana83, Not sure why you would want to do that... But, to be honest, I haven't spent much reading time on Flex Pages (not much docs anyway)...

According the 1.7 upgrade guide:

NOTE: Flex Pages feature is not yet used in the frontend of your site.

Then why the wish to 'migrate'?

Admin uses Flex Pages by default (can be disabled from Flex-Objects plugin)

For Admin, you apparently don't need to upgrade anything.

6 years ago

@pamtbaau, thank you for your answer. In Upgrade Info I found the following notice

"In Grav 1.7 we introduced Flex Pages as the new default page management UI. Also, to optimize performance, we stopped initializing pages on every admin call. Switching back to regular Grav Pages might temporarily resolve your issue. This is done by editing the FlexObjects plugin and disabling Pages (Admin) .

To properly address the issue, custom plugins should be updated to support both Grav Pages and Flex Pages by using PageInterface and also should expliclty Pages when required.

So I thought not to use flex pages will be a deprecated issue in next versions of grav and is an performance blocker in admin panel. The problem is that we really have a lot of pages.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 8 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago