Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (40 sloc) 2.441 kB
f6564a2 @parndt Initial extraction from RefineryCMS core.
parndt authored
1 # Inquiries
2
1fc7449 @parndt Fixes #9 by updating the readme to mention spam filtering, stop menti…
parndt authored
3 ![Refinery Inquiries](http://refinerycms.com/system/images/BAhbBlsHOgZmSSIqMjAxMS8wNS8wMS8wNF81MF8wMV81MDlfaW5xdWlyaWVzLnBuZwY6BkVU/inquiries.png)
f6564a2 @parndt Initial extraction from RefineryCMS core.
parndt authored
4
81bbc99 @parndt Now we don't need :require => 'inquiries'
parndt authored
5 ### Gem Installation using Bundler (The very best way)
6
7 Include the latest [gem](http://rubygems.org/gems/refinerycms-inquiries) into your Refinery CMS application's Gemfile:
8
a8e3902 @parndt Use CSS for required labels.
parndt authored
9 ```ruby
10 gem 'refinerycms-inquiries', '~> 3.0.0'
11 ```
81bbc99 @parndt Now we don't need :require => 'inquiries'
parndt authored
12
13 Then type the following at command line inside your Refinery CMS application's root directory:
14
15 bundle install
16
c4d3d92 @ugisozols Update readme.
ugisozols authored
17 #### Installation on Refinery 2.0.0 or above.
e5107a5 @awagener Update the install instructions for Refinery 0.9.9
awagener authored
18
428ceca @djones Update to latest versions.
djones authored
19 To install the migrations, run:
e5107a5 @awagener Update the install instructions for Refinery 0.9.9
awagener authored
20
c4d3d92 @ugisozols Update readme.
ugisozols authored
21 rails generate refinery:inquiries
e5107a5 @awagener Update the install instructions for Refinery 0.9.9
awagener authored
22 rake db:migrate
4eed998 @ugisozols Add note to readme about how to use GMail or other services to send e…
ugisozols authored
23
62e2928 @krisf update readme.md with 'rake db:seed'
krisf authored
24 Add pages to the database and you're done:
25
26 rake db:seed
81bbc99 @parndt Now we don't need :require => 'inquiries'
parndt authored
27
a8e3902 @parndt Use CSS for required labels.
parndt authored
28 #### Optionally include the stylesheet.
29
30 Next, you can include the stylesheet that improves the form's display a bit,
31 and also adds an asterisk to each `required` label: `Name *` instead of `Name`.
32
33 To do this, include it in your `application.css` manifest file and insert:
34
35 ```css
192b4a9 @parndt Fix up copy paste fail
parndt authored
36 //= require refinery/inquiries/inquiries
a8e3902 @parndt Use CSS for required labels.
parndt authored
37 ```
38
f6564a2 @parndt Initial extraction from RefineryCMS core.
parndt authored
39 ## About
40
983a893 @parndt more relevant readme.
parndt authored
41 __Add a simple contact form to Refinery that notifies you and the customer when an inquiry is made.__
f6564a2 @parndt Initial extraction from RefineryCMS core.
parndt authored
42
43 In summary you can:
44
45 * Collect and manage inquiries
46 * Specify who is notified when a new inquiry comes in
47 * Customise an auto responder email that is sent to the person making the inquiry
48
1fc7449 @parndt Fixes #9 by updating the readme to mention spam filtering, stop menti…
parndt authored
49 When inquiries come in, you and the customer are generally notified. As we implemented spam filtering through the [filters_spam plugin](https://github.com/resolve/filters_spam#readme) you will not get notified if an inquiry is marked as 'spam'.
f6564a2 @parndt Initial extraction from RefineryCMS core.
parndt authored
50
4eed998 @ugisozols Add note to readme about how to use GMail or other services to send e…
ugisozols authored
51 ## How do I setup email to be sent from GMail, SendGrid or other service?
52
53 Inquiries uses `actionmailer` under the hood so you can refer to [Rails Action Mailer guide](http://guides.rubyonrails.org/action_mailer_basics.html). For example to use GMail see [Action Mailer Configuration for GMail](http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration-for-gmail) guide.
54
f6564a2 @parndt Initial extraction from RefineryCMS core.
parndt authored
55 ## How do I get Notified?
56
57 Go into your 'Inquiries' tab in the Refinery admin area and click on "Update who gets notified"
58
59 ## How do I Edit the Automatic Confirmation Email
60
2dab502 @parndt Explain where tld_length went.
parndt authored
61 Go into your 'Inquiries' tab in the Refinery admin area and click on "Edit confirmation email"
62
63 ## Help! How do I send emails from no-reply@domain.com.au instead of no-reply@com.au?
64
b46f209 @ugisozols ActionDispatch::Http::URL.tld_length -> config.action_dispatch.tld_le…
ugisozols authored
65 Simply set the following in config/application.rb:
2dab502 @parndt Explain where tld_length went.
parndt authored
66
67 ```ruby
b46f209 @ugisozols ActionDispatch::Http::URL.tld_length -> config.action_dispatch.tld_le…
ugisozols authored
68 config.action_dispatch.tld_length = 2
69 ```
Something went wrong with that request. Please try again.