• Resolved dauidus

    (@dauidus)


    Thanks for a great plugin – we love this!

    I’ve added some custom fields directly on the edit popup screen… how can I get those fields to render in my popup? I’m familiar with code, so please let me know what files to look in to directly edit your plugin for my needs.

    Grazie mille!

    Dave

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter dauidus

    (@dauidus)

    Oh, nevermind… I see how you’re handling the data here. I’ll need to extend a function to add my custom fields. I guess it won’t be just a simple template file, then.

    Sygnoos Support

    (@sygnoossupport)

    Dear @dauidus,

    Could you, please, clarify what popup type are you referring to?

    Thread Starter dauidus

    (@dauidus)

    I’d like to display custom fields for all my HTML popups.

    Thanks!

    Sygnoos Support

    (@sygnoossupport)

    Dear @dauidus,

    Could you, please, share an example so we can get you correctly?
    Is it some kind of a form popup, like Subscription, Contact form, or some other?

    Thread Starter dauidus

    (@dauidus)

    Nope, just a content popup. We’re creating a car rental site, and each HTML popup represents a vehicle. When our client eventually goes to edit any HTML popup, they won’t see the WYSIWYG editor… instead, they’ll see a bunch of custom fields with MPG, passenger count, fuel economy, etc. I have all these setup fine.

    When a user clicks that popup (I’ve written a custom query that goes through all the popups and displays them in a template, each as a link to the popup itself) I’d like my custom fields to display formatted within the popup – so I need to be able to edit the output of the HTML popup type.

    I’ve got everything setup and working just fine, but can’t determine where I need to modify code to display my custom fields. I’m used to doing this type of customization with template files for each custom post type, but since you’re loading the plugin content with js and a php function instead, I’m getting a bit stuck. I can provide you with login credentials to view what I’m doing, if you wish.

    Really, I just need to know how to modify the output of an HTML popup.

    Thanks!

    Thread Starter dauidus

    (@dauidus)

    My other option seems to be to do this with an iframe popup… that way, I can create a custom post type called vehicles and create my custom template there… then just load that into a popup. But, I feel it would be confusing (and kinda hack-ish) to make my client add a popup AND a vehicle for every car. I’m looking to streamline this as much as possible.

    Thread Starter dauidus

    (@dauidus)

    Alright – think I’ve figured it out. Need to modify output in the ScriptsLoader.js file, in the LoadToFooter function.

    Sygnoos Support

    (@sygnoossupport)

    Dear @dauidus,

    Is there anything else we can help you with? ??

    Thread Starter dauidus

    (@dauidus)

    That is all. Thanks!

    Sygnoos Support

    (@sygnoossupport)

    Dear @dauidus,

    That’s great! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding custom fields to a popup’ is closed to new replies.