WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
Export cfdb-html to external site (6 posts)

  1. Neighnet
    Member
    Posted 1 year ago #

    Using cfdb-html shortcode and a tiny bit of CSS, I have created a nice looking directory from our membership form. However I must export that to our membership page on an external site to display it for members. I am able to use an iframe to export and display a data table, but do not see the cfdb-html as one of the menu choices for creating the export link. I do see where to put the html template at the bottom of that form, but can't seem to get it all together to export it.

    http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/

  2. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    Go to the Admin Short code page, select a form and [cfdb-html] and fill in the template section. Then copy the the link for "(Test Short Code Results)" and put that as the src for your iframe. That should work unless the length of the URL is too long.

  3. Neighnet
    Member
    Posted 1 year ago #

    You are a star. I kept trying to do something with the export part at the top of the shortcode page. This is perfect and when I apply my CSS I think it will work perfectly for us. Once I make sure my CSS works, I plan to buy the editing plugin for ease of maintaining any data changes. You made my day. :-)

  4. Neighnet
    Member
    Posted 1 year ago #

    Oops, well it exported my data, but didn't pick up the order by and won't respond to my CSS for the class. As I look at the long URL, I can see the words orderby and class in the midst of what I guess are the numerical equivalents of all the characters. Not sure what to do to troubleshoot. It does follow enough of my html to show the data elements on the proper lines. I used some pretty crude html, but that part worked, its just the order by and the class for styling that is not working correctly.

    I will create another shortcode from scratch and see if I get a different result.

  5. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    Clicking the Test Short Code Results should show you what you get. I'm not sure why the order by and class are not working.

    If this is in an iframe, the browser may not allow the CSS from the containing page to style the html in the iframe (I'm not sure if this is supposed to work). In that case, it might be better to forget the iframe and put in a jQuery.ajax call to get the page and populate some div with the contents you get back. Just a thought.

  6. Neighnet
    Member
    Posted 1 year ago #

    I think the order by was an error on my part. I used an iframe because I did not know another way to get my content to the external site. It seems like it ought to use the CSS from either the host site or the external site so I made sure to put it on both. I know nothing about using a jquery Ajax call.

    I will go poke around a bit more. If I make any more progress, or get more educated about jquery, I will come back.

    Thank you for a great product.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic