User Tools

Site Tools


cms2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cms2 [2011/06/23 06:51]
siva_epari
cms2 [2018/03/24 11:13] (current)
Line 1: Line 1:
-Creating a form in drupal:+==Links==
  
-   1. Navigate to the Content types page (Administer > Structure > Content types). +  ​* [[cms1|Drupal,​ Day1]] 
-   ​2. Click Add Content Type. +  * [[cms2|DrupalDay2]] 
-   3. In the Name fieldadd a name for the content type. The name is required.+  * [[cms_faq|Frequently Asked Questions, CMS]] 
 +  * [[drupal-lms|Library Management System as Assignment]]
  
-      Note that if you start entering a name into the name field, a "​machine name" starts showing to the right of the title. To edit the machine name, click the edit link. +===Content Management System(Focus On Drupal), Day2===
-   4. In the Description field, you can write a description of the content type that will show up on the Add new content page (Administer > Content > Add new content)+
-   5. Set your preferred default values for this content type. Content you create of this content type will have these values by default. The values can be overridden for each content created. You can specify default values for Submission form settings, Publishing options, Display settings, Comment settings and Menu settings. +
-   6. Do one of the following:​ +
-          * To add the content type using only the title and body fields, click Save Content Type. You can add more fields later. +
-          * To add the content type and begin adding more fieldsclick Save and Add Fields+
  
 +==Creating a "​Content type"​==
  
-# TO CREATE FIELDS IN THE CONTENT TYPE FOLLOW THE STEPS:  +   ​- ​Navigate to the Content types page (Administer > Structure > Content types). 
-#Navigate to the Content types page (Administer > Structure > Content types). +   - Click Add Content Type
-# In the table, locate the row that contains your content type and click the manage fields link+   - In the Name field, ​add name for the content typeThe name is required. Note that if you start entering a name into the name field, ​a "machine name" starts showing to the right of the titleTo edit the machine nameclick the edit link
-In the Add new field sectionenter label for the field. +   - In the Description ​field, ​you can write a description ​of the content ​type that will show up on the Add new content page (Administer > Content > Add new content)
-# In the Field name field, ​enter the machine name for the fieldYou can only use numberslower-case letters and the underscore character (_)+   - Set your preferred default values for this content type. Content you create of this content type will have these values by default. The values can be overridden for each content created. You can specify default values for Submission form settings, Publishing ​options, Display settings, Comment settings and Menu settings. 
-In the field type listselect one of the field type you want to  create+   - Do one of the following:​ 
-# In the Widget field, select a widget. The options ​vary depending on the field type. +     - To add the content ​type using only the title and body fields, click Save Content Type.  
-# Click Save.+     - You can add more fields later. 
 +     - To add the content type and begin adding more fields, click Save and Add Fields
  
 +
 +==Adding "​fields"​ to "​Content type"​==
 +
 +   - Navigate to the Content types page (Administer > Structure > Content types).
 +   - In the table, locate the row that contains your content type and click the manage fields link.
 +   - In the Add new field section, enter a label for the field.
 +   - In the Field name field, enter the machine name for the field. You can only use numbers, lower-case letters and the   ​underscore character (_).
 +   - In the field type list, select one of the field type you want to  create.
 +   - In the Widget field, select a widget. The options vary depending on the field type.
 +   - Click Save.
 +
 +==Create a Node reference==
 +   - Download & extract "​References"​ module [[http://​drupal.org/​project/​references|Download]] to sites/​all/​modules
 +   - Goto "​Modules",​ check "Node Reference"​ and "Save Configuration"​
 +   - Goto "​Structure"​ > "​Content types" and click "​Manage fields"​ on a Content type
 +   - Under "Add new Field" provide the label, Choose "Node Reference"​ under "​Field"​ and "Save
 +   - Choose a content type to be referenced under "​Content types that can be referenced"​(Like choose Author when working on Book)
 +   - "Save field settings"​ & "Save settings"​
 +   - Now while creating the content, you will get a Autocomplete field for the referenced Content type
 +
 +==To arrange order of fields==
 +
 +   - Navigate to the Content types page (Administer > Structure > Content types).
 +   - In the table, locate the row that contains your content type and click the manage fields link
 +   - Locate the field you want to re-order, and drag the four-headed arrow icon up or down.
 +   - Click Save.
 +
 +==To create a menu item for form==
 +
 +   - Goto **Structure** > **Menus**
 +   - Click on **edit** near **Main menus**
 +   - Click on **add link**
 +   - Configure the new menu item
 +     - Give **Menu link title** as **Create a event**
 +     - Give **Path** as **node/​add/​event** (event is nothing but the name of the content type you created in previous steps, so if you have created a content type called **registration** the path for that content type will be **node/​add/​registration**
 +     - Save
 +
 +==Links==
 +
 +  * [[cms1|Drupal,​ Day1]]
 +  * [[cms2|Drupal,​ Day2]]
 +  * [[cms_faq|Frequently Asked Questions, CMS]]
 +  * [[drupal-lms|Library Management System as Assignment]]
cms2.1308811914.txt.gz · Last modified: 2018/03/24 11:13 (external edit)