• Resolved mungbean

    (@mungbean)


    Since this plugin is intended to be lightweight, such that a VLP can’t be reused in multiple places on a website, is there a way to get access to the VLP code so that it could potentially be used in a template that populates the URL programmatically?

    I am using Pods to create custom post types, and each post type can be styled with a template that can programmatically generate content. It’d be great to be able to use VLP in this manner, such that URLs can be automatically generate/update the VLP with the Pod post content. This appears to provide a way to dynamically update/reuse a VLP, without necessarily changing the core purpose and positioning of the plugin. The Pod form would pass a URL to the VLP snippet in the template, and when the post is rendered, would also generate a VLP.

    I imagine the snippet would handle VLP styling and API calls, and just ingest a URL. (Does VLP use Open Graph?)

    Is it possible to get VLP source code snippet that can be added to a Pod post template (HTML, JS etc.)?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brecht

    (@brechtvds)

    When you download the plugin you are downloading the full source code and are free to do whatever you want with it.

    There is not 1 simple snippet that can be added like that though, I’m afraid.

    Thread Starter mungbean

    (@mungbean)

    Thanks, I wasn’t aware that it was all shipped in the plugin file itself.

    Would you be able to specify the sections/components/snippets that would be needed to generate a VLP from a URL? I’ll then reach out to the Pods plugin team and inquire about possibly integrating it into a Pod template.

    Plugin Author Brecht

    (@brechtvds)

    It’s handled in the /visual-link-preview/assets/js/admin/form/index.js file but it own’t be easy to extract that.

    I don’t think you’ll find an easy solution for this, I’m afraid.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘VLP source code for PODs template?’ is closed to new replies.