How to implement a contact page

Topics: Customizing Orchard
Jan 7, 2012 at 7:58 PM

This is probably a very basic question, so feel free to direct me to a tutorial where there is an explanation. I tried to google a dozen different terms, but it always offers pages explaining how to write modules, and when I search orchard documentation it seems to just give me 404s (e.g. http://docs.orchardproject.net/configuring-email)

Question: I have installed the email contact module (http://gallery.orchardproject.net/List/Modules/Orchard.Module.Orchard.Email/1.3.0).
How do I put the contact form that I suppose this module provides inside a page?

Coordinator
Jan 7, 2012 at 9:36 PM

Orchard.Email is not an email contact module (not sure what could have given you that impression), it's a generic module that enables other modules to send e-mail. It's basically headless and a framework piece.

For contact forms, I personally use this: http://gallery.orchardproject.net/List/Modules/Orchard.Module.CyberStride.Contacts

You can see it in action here: http://www.pix6t4.com/contact

As for the 404s you've been getting on Google searches, would you mind giving me an example of a query you made on google that gave you that url?

Jan 7, 2012 at 9:57 PM

Thank you for the links, I'm going to check them out right now.

I am a total orchard novice so far, so didn't know what modules are exactly just yet - I assumed they'd be "bits" that can be included inside a page as they were exactly that in joomla - another CMS among the ones I tried.

You can see a bunch of 404s in this page under "Suggestions for New Topics": http://docs.orchardproject.net/Search.cshtml?q=email 
I just wanted to search on the documentation to check if there's a walkthrough on how to setup a contact page, but most I got (from google) was http://docs.orchardproject.net/Documentation/configuring-email, which is blank.

Coordinator
Jan 7, 2012 at 11:46 PM

The links on "suggestions for new topics" are suggestions, which means that those documents don't exist yet, so 404s would be normal there.

Configuring email is also a stub for a future topic.

Jan 8, 2012 at 12:33 PM
erethnor wrote:

I am a total orchard novice so far, so didn't know what modules are exactly just yet - I assumed they'd be "bits" that can be included inside a page as they were exactly that in joomla - another CMS among the ones I tried.

A module in Orchard is just any collection of code and resources. Modules can extend and reconfigure most parts of Orchard. The analogs to what you describe are called "Content Parts" in Orchard. A lot of modules will provide new content parts, but there are many more things a module can add. You construct a "content type" which is basically a template consisting of any Content Parts you want to glue together (again, some modules may provide pre-defined content types). So that's how you build pages and how modules can surface bits to include on the page.

Coordinator
Jan 9, 2012 at 6:29 AM

You'll find equivalent concepts in all CMS, with different names. Those bits look like widgets in Orchard parlance.

Jan 12, 2012 at 11:05 AM
Edited Jan 12, 2012 at 11:11 AM

Hello!


I use the module CyberStride.Contacts. When you run a departure form, the table CyberStride_Contacts_ContactFormPartRecord written two messages. The first report of uncertain date, and the second is normal.

Please help me solve this problem. How to do that would be in the table CyberStride_Contacts_ContactFormPartRecord was one record?

Coordinator
Jan 19, 2012 at 6:35 AM

It's a known issue of that module. It's been fixed by several people, and you can find an example of that here: https://hg01.codeplex.com/forks/luizbon/orchardcontactform but unfortunately Cyberstride has never taken the pull requests on their code. Maybe it's time someone posted a fork directly on the gallery.