2

I'm creating an intranet company portal website and the HR department requests I create a new Content Type/View for employee records. They sent me a document based on the format they would like. I was hoping to get some input on the easiest way of creating this content type/View

I uploaded the format to the following snapshot: snap

My questions are as follows

  1. How can I format the Expiration Date field to align to the right of it's specific corresponding field
  2. When adding new content with the HR content type, is it possible for the user to click "Add new Incident/Disciplinary/Recognition field"? For example, start with one field for each but if the employee has earned more rewards etc they can add a new field?

Thank you for your help

1

1) Place each expiration field above the corresponding other field and then add the following CSS rules to your theme:

form.node-form .field-name-field-product-EXPIRATION-DATE {
position:absolute;
right:0;
width:200px;
}

On the content creation pages, this will move the expiration field to the top right of the field below.

2) Yes, users can add an unlimited amount of values to each field. To enable this go to the desired field in your content type and edit it. There look for "Number of values" near the bottom of the page. Choose the desired amount. Suppose you choose 5, the user creating the content can add up to 5 values for this one field. I hope this works out for you.

4
  • You are most welcome ^^ Oct 7 '12 at 13:22
  • Would you mind clicking the green check mark on the left? This marks my answer as a good one and gives me a little bit more reputation and privileges on this stack exchange. You can click the up arrow aswell! ;) Oct 7 '12 at 13:24
  • Done! I'm new to Drupal Stack Exchange. Again thank you for your help.
    – user10473
    Oct 7 '12 at 17:04
  • I'm glad I could help :) Oct 7 '12 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.