Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:06:34+00:00 2026-05-27T10:06:34+00:00

In Drupal 7, I’d like to create a Person content type. A person may

  • 0

In Drupal 7, I’d like to create a Person content type. A person may have multiple profiles – an administrator should be able to select which profile will be considered the primary one. So, that means that I need a tuple consisting of:

A textarea, for the profile text
A checkbox, indicating that this is the primary profile
A textbox, for naming this particular profile

I need functionality to behave like that of any of the lists: I can click “Add another Item”, and a set of all three of these fields will appear.

I have a vague idea of how this can be executed, but it involves using the form API to add fields before the form renders each time, as well as the necessary AJAX behavior. This seems a bit overcomplicated, since this would also necessitate creating an additional DB table to hold these tacked-on fields.

Is there a relatively simple way of doing this solely through hook_install()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:06:34+00:00Added an answer on May 27, 2026 at 10:06 am

    You can use drupal.org/project/profile2 or you can complete it using standard Drupal functionality, i.e. create a content type named, let’s say, ‘myprofile’ and add all the fields use need. Then add a nodereferece (http://drupal.org/project/references) field to the user standard profie that would point to your ‘myprofile’ content type.
    So all the ‘myprofile’ content, created by that user would be his profiles and the one pointed in his standard profile will be his default.
    I hope it’s clear enough )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Drupal I have the page content type. I have created a vocublary and
In Drupal 7, I'm trying to have an athlete (which is a content type)
Drupal 6.x I have this module that manages four different content types. For that
[For Drupal 6] Let's say I've created a content type called my_content_type. I can
Drupal 7 divides content in two types: Article Use articles for time-sensitive content like
Drupal 7 and Drupal 6 In page or story content type for example there
[Drupal 6] By installing webform i can create a content typed 'webform' but how
Drupal 6. I have created a node type which consists of just a body
Does drupal have a simple version for reading like drupal_write_record . I want to
Drupal has a very well-architected, jQuery -based autocomplete.js . Usually, you don't have to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.