-
AuthorPosts
-
February 21, 2019 at 12:48 pm #1069907Hudson AtwellGuest
Hello!
I’ve a popular Landing Pages framework plugin where some of my customers are asking for help integrating with Enfold’s Avia Template Builder.
I’d love to work with a developer who can help me fix an integration.
I’ve gotten pretty far, but have become stuck when it comes to attempting to pull the saved builder shortcode from a custom saved meta location. (I can catch the save and store the shortcode to a meta pair, but I can’t replace the loaded shortcode with the saved metapair value)
Most instances of get_posts_alb_content run through avia_builder_precompile filter in AviaBuilder class, but there’s a line below that doesn’t:
$clean_data = $this->get_posts_alb_content( $post_ID );
If we can get that into a filter I think I can successfully switch the shortcode located in post_content with the shortcode stored inside a postmeta pair.
Then I’ll need to make sure the swap happens at render level too (frontend).
If I can fix the integration, I can list the asset for my users and they can use the AviaBuilder with our splittesting features.
Would love to hammer our a solution on Slack, or email.
Warm regards,
Hudson AtwellFebruary 25, 2019 at 11:22 pm #1071525Hey Hudson Atwell,
I have forwarded the ticket to our main developer, he will check further with you if there is a way to contact you and help with the integration…
Best regards,
BasilisFebruary 26, 2019 at 12:15 am #1071554Hudson AtwellGuestHi Basilis,
Awesome thank you!
I’ve a public git repo here where I’m storing my work. Maybe it will help with guiding me?
https://github.com/atwellpub/inbound-avia-builder-scratchworkThanks again,
Hudson AtwellFebruary 26, 2019 at 11:23 am #1071711Hi,
I added a filter to our dev repo:
public function get_posts_alb_content( $post_id ) { /** * @since 4.5.5 * @return string */ return apply_filters( 'avf_posts_alb_content', get_post_meta( $post_id, '_aviaLayoutBuilderCleanData', true ), $post_id ); }
But be aware that changing the content might break the shortcode tree and the final output.
Best regards,
GünterFebruary 26, 2019 at 7:13 pm #1071919Hudson AtwellGuestAwesome!
Thanks!
So far my tests are looking good with the added filter.
When 4.5.5 is released I’ll get the client onboard with testing the new integration asset.
Do you have a tentative release date for Enfold with the updated code?
Best regards,
HudsonMarch 1, 2019 at 1:24 pm #1073168 -
AuthorPosts
- You must be logged in to reply to this topic.