Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1069907
    Hudson Atwell
    Guest

    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 Atwell

    #1071525

    Hey 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,
    Basilis

    #1071554
    Hudson Atwell
    Guest

    Hi 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-scratchwork

    Thanks again,
    Hudson Atwell

    #1071711

    Hi,

    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ünter

    #1071919
    Hudson Atwell
    Guest

    Awesome!

    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,
    Hudson

    #1073168

    Hi,

    I asked Kriesi to prepare the next release, but no time yet.

    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.