Coder Social home page Coder Social logo

contact_forms's Introduction

Contact Forms

This module expands the features of the site wide contact form. It eliminates the need for the drop down category menu by generating a form, and a unique path, for each of the contact form categories. It also replaces the contact form at /contact with a themable list of Contacts with links to their contact form.

The path 'contact/{category}' generates a contact form for that category with a title = 'Contact {category}'. e.g. path 'contact/Jill Jones' generates a contact form for the category 'Jill Jones' with a title = 'Contact Jill Jones'. You can use underscore "_" or a dash "-" instead of spaces.

If a path is entered that does not have a category the user will be redirected to 404 page not found.

To define the subject of the generated form the path is as follows 'contact/{category}/Subject goes here' e.g. path 'contact/Jill Jones/Enquiry about Sales' generates a contact form for the category 'Jill Jones' with a title = 'Contact Jill Jones' and the subject 'Enquiry about Sales'.

Requirements

contact.module must be enabled.

Installation

  • Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules

  • Visit the configuration page under Administration > Structure > Contact Form > Settings (admin/structure/contact/settings) and check the settings.

Upgrading from Drupal 7

Make sure the contact and contact_forms modules are installed and enabled.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Current Maintainers

Credits

Thanks to the following people who have helped with suggestions and code for the Drupal version: nancyw alienbrain incrn8 joachim mfredrickson jandd arcaneadam Rob C

contact_forms's People

Contributors

behindthepage avatar yorkshire-pudding avatar

Stargazers

 avatar

Watchers

 avatar Hans Gutknecht avatar Jason Flatt avatar Kevin + Drupal + Beard avatar Jen Lampton avatar  avatar Bill Seremetis avatar Luke McCormick avatar James Cloos avatar  avatar Laryn avatar Kevin Thull avatar Will Long avatar Said elfazni avatar biolithic avatar Joseph Flatt avatar Pablo Romero avatar Greg Netsas avatar Tim Erickson avatar Arthur Turlak avatar Owen Morrill avatar Gor Martsen avatar Geoff St. Pierre avatar Sasha avatar Alejandro Cremaschi avatar Graham Oliver avatar Vladimir avatar CybersecDan avatar Bill Kelly avatar Olaf Grabienski avatar John Franklin avatar  avatar  avatar Alan Mels avatar

contact_forms's Issues

Category list generates incorrect URL for Edit

Steps to reproduce

  1. Install and enable contact_forms module
  2. Navigate to admin/structure/contact
  3. Click Edit (under 'Operations') link for any category

Expected result

Configuration form opens for that category

###Actual result
Page reloads - no config form opens.
The cause of this is that the URL is for admin/structure/contact/edit/1 rather than admin/structure/contact/configure/1
chrome_PGSP6JyIkW

Error message when all categories are deleted and new category is created

Steps to reproduce

  1. Enable the contact_forms module
  2. Go to the configuration screen (Structure > Contact Form > List Categories)
  3. Delete all existing categories
  4. Create a new category and save it

Results

Expected

Category saves and returns to list of categories with success message

Actual

Category saves and returns to list of categories with success message but also with error message

Notice: Undefined variable: cids in contact_forms_edit_form_submit() (line 237 of /home/example1/example.com/modules/contact_forms/contact_forms.module).
Warning: max(): When only one parameter is given, it must be an array in contact_forms_edit_form_submit() (line 237 of /home/example1/example.com/modules/contact_forms/contact_forms.module).

MPJNGwB3ZR

Worked out the fix. Pull request to come shortly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.