Jump to content


Photo
- - - - -

Best way to set up a form include to use throughout PageLines install

php jQuery Form include

  • Please log in to reply
3 replies to this topic

#1 jinfinite8

jinfinite8

    Member

  • Members

  • 18 posts
  • LocationSouth Florida
  • Framework Version:DMS Developer
  • Country: Country Flag

Posted 29 January 2013 - 05:12 PM

Hi, 

 

I'm using PageLines 2.4 to develop a site located presently at:

Please Login or Register to see this Hidden Content

 

I'm working with my developer to integrate a web form that uses a php include and jQuery validate. 

 

What I'm trying to do:

 

- I want to be able to use the form throughout the site on different pages, on a sidebar, landing pages, and occasionally on a blog post.

- I want to use a template bases approach vs. manually adding the custom form code each time

- Since the form uses php (and other code) it can't be simply cut/pasted in an html area and work

 

I've tested adding the form to the home page of the site above using a PageLines content section. That gets the job done but it seems like it could be setup with a template or include to be added quickly elsewhere. Perhaps a custom PageLines section?

 

My last point is the crux of my question. What's the best way to integrate this form with PageLines? My developer is familiar with WordPress but not PageLines.

 

I would appreciate any ideas or feedback. Thanks very much.

 

~ julian

Attached Files



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 29 January 2013 - 05:16 PM

Why not use one of the hundreds of form plugins available in the wordpress plugins repo? You could simply have a shortcode then to insert your form anywhere you like.



#3 jinfinite8

jinfinite8

    Member

  • Members

  • 18 posts
  • LocationSouth Florida
  • Framework Version:DMS Developer
  • Country: Country Flag

Posted 30 January 2013 - 02:39 PM

Hi, I'm not using a plugin because my form is complex.  I tried using GravityForms with an add on plugin for Infusionsoft but the Infusionsoft plugin doesn't work and support nearly non-existent. I need a 100% reliable solution. 



#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 30 January 2013 - 03:02 PM

Well in that case, i suggest creating a shortcode using your function... then you can insert it anywhere.







Also tagged with one or more of these keywords: php, jQuery, Form, include