User login

Creating a signup form to list supporters of a campaign

This is the procedure for creating a signup form for individuals and organizations to sign on in support of your site, and be listed.

This is a very simple list but it could easily be extended to gather more information from each organization, to have the listing page link to pages showing this more information rather than directly to the supporting group, to allow them to upload logos (which could be scaled to a uniform height with imagecache), and more.

How to set it up, on a Drupal site with CCK (Content Constructor Kit) and Views installed:

<

ul>

  • Administer » Content Management » Content Types » Add Content Type (admin/content/types/add)
  • Fill in this form such as with the following examples (in emphasized text):
    • Name: Supporter
    • Type: supporter
    • Description: An organization or individual publicly supporting our campaign.
    • Title field label: Name
    • Body field label: Optional Description
    • Explanation or submission guidelines: Our campaign is a coalition of people and organizations working together to do something good. Supporters agree with this need for action and choose to cooperate on a concerted campaign.

      If you wish to sign on, please do so below.

    • Default options: Under this section, uncheck "Published" and probably "Promoted to front page." You may want to check off "Create new revision" to protect data from accidental overwriting.
    • Default comment setting: Probably select "Disabled"
    • Save content type.

  • Click to edit the content type you just created, in this example, you will be on a screen where you can click an "edit" link next to supporter. In the tabs now available at the top of the edit form, press "Add field". The relative URL you will be at in this example is admin/content/types/<em>supporter</em>/add_field.
  • Fill out this form for adding a field to your content type such as with the following examples. CCK content fields in Drupal 5 have a two-part form (and the second part rehashes some information you provided in the first form, so you can skip over that section).
  • <

    ul>

  • Name: Web site
  • So that's setting up CCK the Agaric way! (Actually, we'll be trying to put all this in our collection of install profiles so we never have to go through this again.)

    This would work for user-managed business listings and almost for classified ads, though there is a good Drupal module specifically for classified ads (ed_classified I think).

    This is the procedure for creating a signup form for individuals and organizations to sign on in support of your site, and be listed.

    This is a very simple list but it could easily be extended to gather more information from each organization, to have the listing page link to pages showing this more information rather than directly to the supporting group, to allow them to upload logos (which could be scaled to a uniform height with imagecache), and more.

    How to set it up, on a Drupal site with CCK (Content Constructor Kit) and Views installed:

    <

    ul>

  • Administer » Content Management » Content Types » Add Content Type (admin/content/types/add)
  • Fill in this form such as with the following examples (in emphasized text):
    • Name: Supporter
    • Type: supporter
    • Description: An organization or individual publicly supporting our campaign.
    • Title field label: Name
    • Body field label: Optional Description
    • Explanation or submission guidelines: Our campaign is a coalition of people and organizations working together to do something good. Supporters agree with this need for action and choose to cooperate on a concerted campaign.

      If you wish to sign on, please do so below.

    • Default options: Under this section, uncheck "Published" and probably "Promoted to front page." You may want to check off "Create new revision" to protect data from accidental overwriting.
    • Default comment setting: Probably select "Disabled"
    • Save content type.

  • Click to edit the content type you just created, in this example, you will be on a screen where you can click an "edit" link next to supporter. In the tabs now available at the top of the edit form, press "Add field". The relative URL you will be at in this example is admin/content/types/<em>supporter</em>/add_field.
  • Fill out this form for adding a field to your content type such as with the following examples. CCK content fields in Drupal 5 have a two-part form (and the second part rehashes some information you provided in the first form, so you can skip over that section).
  • <

    ul>

  • Name: Web site
  • So that's setting up CCK the Agaric way! (Actually, we'll be trying to put all this in our collection of install profiles so we never have to go through this again.)

    This would work for user-managed business listings and almost for classified ads, though there is a good Drupal module specifically for classified ads (ed_classified I think).

    Comments

    Post new comment

    The content of this field is kept private and will not be shown publicly.
    • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
    • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
    • Lines and paragraphs break automatically.

    More information about formatting options

    By submitting this form, you accept the Mollom privacy policy.