Adding members

These documentation pages are no longer maintained. Please visit the new documentation site.

The previous section explained how to build a custom content class for storing information about members. We'll now use the administration interface to create a couple of instances of this class. In other words, we'll create a bunch of member objects and put some data into them.

Lets create a couple of members. They should all be put into a dedicated "Members" folder. By now, you should be able to do the following operation(s) without following a detailed step-by-step guide.

  1. Create a folder called "Member" (in the root of the content folder).
  2. Assign this folder to the "Members section".
  3. Navigate into the members folder.
  4. Create a couple of member objects.
    Feel free to use the example data provided below.

Example data:

Alexander Ferrari
Happy King
1970.02.02
Male
555-3212
alex@example.com
alex_ferrari.png

Henry Von Metal
Draculaboy
1970.03.02
Male
555-3456
dracula@example.net
henry_metal.png

Pia Pianissimo
LadyQueen
1975.07.06
Female
555-5555
lollipop@example.com
pia_pianissimo.png

Thomas Hellbender
Dark Bishop
1977.05.12
Male
666-0911
hellraiser@example.org
thomas_hellbender.png

Note: It is not possible to store dates earlier than January 1st, 1970.

Comments

Re: It is not possible to store dates earlier than January 1st, 1970

That's because the Date attribute is stored in an Unix timestamp, which is a long integer keeping the number of seconds since Jan 1st, 1970 (the start of the "Unix epoch").

The solution is to create a custom attribute which is stored some other way, and use that instead.

"It is not possible to store dates earlier than January 1st, 1970."

Then how do you deal with members born before that date?

Contents

Building an eZ publish site

Prerequisits
Situation
Creating the TSCM site
Testing the interfaces
Setting up the main layout
Creating sections
The welcome page
The news page
The members page
    Creating a custom content class
    Adding members
    List of members
    Member info page
The guestbook
The links page


Created

07/11/2003
3:01:40 pm
by Balazs Halasy

Last updated

23/11/2004
2:17:15 pm
by Raymond Bosman

Authors

Balazs Halasy
Raymond Bosman



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.