Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Migrating pages to flex-pages

Started by Christiana 5 years ago · 2 replies · 704 views
5 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
5 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.

5 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 Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago