You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I commented out the line remove_post_type_support('page', 'editor'); in inc/blockEditor.php so as to retrieve the WP block editor on my pages and the old content in DB > post_content, in a typical content migration scenario. I notice that, in this configuration, content in post_content is no longer replaced by the shortcode [flyntTheContent id="postID"] every time I save the page.
Although I know I could do {{ post.content }} directly in templates/page.twig I wanted to go further. I created a Block Content component to insert the original post_content content with which I can play Flynt style in flexible content. I can reposition the component and supplement it with new ones and wrap it like a sandwich.
I get my pages to work fine with the Flynt components and this configuration, but this is a development playground. I would like to know how this would behave with heavy content in a real production environment, knowing that the Block Content component should render anything stored in post_content like hard text, shortcodes, embedded code, wp blocks... and display it all on the page along with the other components.
I attach the code (I think it is reused from old documentation), please review because I am not sure if it adheres to Flynt 2.1 standards.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I commented out the line
remove_post_type_support('page', 'editor');
ininc/blockEditor.php
so as to retrieve the WP block editor on my pages and the old content in DB >post_content
, in a typical content migration scenario. I notice that, in this configuration, content inpost_content
is no longer replaced by the shortcode[flyntTheContent id="postID"]
every time I save the page.Although I know I could do
{{ post.content }}
directly intemplates/page.twig
I wanted to go further. I created a Block Content component to insert the originalpost_content
content with which I can play Flynt style in flexible content. I can reposition the component and supplement it with new ones and wrap it like a sandwich.I get my pages to work fine with the Flynt components and this configuration, but this is a development playground. I would like to know how this would behave with heavy content in a real production environment, knowing that the Block Content component should render anything stored in
post_content
like hard text, shortcodes, embedded code, wp blocks... and display it all on the page along with the other components.I attach the code (I think it is reused from old documentation), please review because I am not sure if it adheres to Flynt 2.1 standards.
Beta Was this translation helpful? Give feedback.
All reactions