Support Tickets - Regarding Contact Form

Regarding Contact Form

CMS 02.05.2016 3006 Support Status: Closed Solution: Yes gaurav


Hi,

I want to know i have created a contact form at backend so how could i integrate the same at the frontend.

Thanks

Gaurav


Replies (6)

  • avatar gaurav

    hi,

    I want to integrate that in the footer.

    Thanks

    02.05.2016 0
  • avatar Jerome

    Thank you for opening a suppor ticket with us.

    After adding the contact form to the database you can select your created forms from the grid tab on each page.

    See this video how to connect to a page of your choice: https://jakweb.ch/faq/a/100/contact-form-builder

    02.05.2016 0
  • avatar gaurav

    Thanks for the reply, Jerome.

    I want the newsletter module to integrate so could you please send me the tutorial link for the newsletter plugin.

    thanks

    02.05.2016 0
  • avatar Jerome

    The newsletter plugin needs to be installed and configured like any other plugin.

    1. Install the plugin
    2. Set permissions in user-group
    3. Change settings to your needs under the plugin you have installed
    4. Start using it.

    To display the sign up form for the newsletter in the footer, go to your style manager (change to active) and go to your front end and select the newsletter form wherever you want to display it.

    02.05.2016 0
  • avatar gaurav

    Hi,

    Could you please brief this.

    "select the newsletter form wherever you want to display it"

    Thanks

    02.05.2016 0
  • avatar Jerome

    When you turn on the style manager you will have a tab called sections where you can choose the Footer - Newsletter Form. When selected the form will be shown in the footer section.

    You can also select the newsletter form on each page under the tab grid.

    Should you want to show the form in the footer then you have to add the form into one of the footer block like this:

    <form id="nlSubmit" action="/newsletter/signup" method="post">
    <div class="form-group">
    <label class="control-label" for="nlUser">Name</label>
    <div class="controls">
    <input type="text" name="nlUser" id="nlUser" value="" placeholder="Name" />
    </div>
    </div>
    <div class="form-group">
    <label class="control-label" for="nlEmail">Email</label>
    <div class="controls">
    <input type="text" name="nlEmail" id="nlEmail" value="" placeholder="Email" />
    </div>
    </div>

    <button type="submit" name="newsletter" id="formsubmit" class="btn btn-default">Submit</button>
    </form>

    Important here is to have the correct action that points to the newsletter url.

    action="/newsletter/signup"

    However that is not a prefered solution because the form does not show any error or success messages.

    A better way would be to link the file direct in your template/your_template/footer.php file.

    For that you need to open the footer.php (mosaic template) file and find:

    <?php echo $jkv["fcont2_mosaic_tpl"];?>

    replace with:

    <?php include_once APP_PATH.'plugins/newsletter/template/footer_widget.php';?>

    That will show the correct form with all the goodies like success and error message. I can't go any further because it would go into custom modifications, thank you for your understanding.

    02.05.2016 0