Forums / General / How to create contact form where client information gets stored in admin?

How to create contact form where client information gets stored in admin?

Author Message

Julia Jacobs

Tuesday 24 February 2004 5:57:49 pm

I have an ezpublish corporate package install version 3.2-3. I would like to create a contact form and have the data from the fields show up under a new User Group called Clients in the Users section of the Administration Area.
I looked at the Account Registration Form on the Shop Package of ezpublish version 3.3-3 for some help. I added enabled Template debug so I could see what templates were being used where, and the template of the user registration is design/standard/templates/user/register.tpl.
I do not know how to attach a form template to a new user group. Also when I create a new class Clients with all of the proper Datatypes it won't show up under the Users tab unless I make it a member of the group Users. But I looked at the class User (which I'm sort of modeling the class Clients after) and its part of the group Content. Yet it shows up under the User tab.
Any help for this ezpublish newb would be fabuloso :)

Bruce Morrison

Thursday 26 February 2004 3:56:54 pm

Hi Julia

Unless you want the users to be able to log into the system I don't think that using the user registration is the way to go. I believe that what you want to do is to allow the user to fill out a form and have it stored as an object and accessible from the admin view. If this is the case you should look at http://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_guestbook which will give you some pointers do achieving this.

Hope this helps
Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Julia Jacobs

Friday 27 February 2004 3:05:40 pm

Hi Bruce,

I appreciate your help! I looked over the guestbook example and did not get to far Im afraid. I created the Class and the Section. Made the edits to the settings/siteaccess/corporate/override.ini.append file to correspond with the new template file and modified the Anonymous user roles as specified. The problem I ran into is with the template files. Unlike the guestbook example, I don't want my client info to show up on the public site, just the admin. So I tried modifying the template files from the guestbook example with some bits from the user registration forms and I have a huge mess. I would be grateful for some help at this point as I have reached the end of my knowledge. The mess can be seen here:

http://usdesignsource.com/ezpublish-3.2-3/index.php/content/view/full/95/

admin can be logged into here:

http://usdesignsource.com/ezpublish-3.2-3/index.php/corporate_admin/

site has been backed up, so it can be restored in case of real disaster.

Again, all help is very, very appreciated!