Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.

Commit

Permalink
Instructions added for creating Candidate Details
Browse files Browse the repository at this point in the history
references #80
  • Loading branch information
sumeetpareek committed Jan 15, 2014
1 parent a4d8676 commit 3ba20a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ function f_candidate_details_field_default_fields() {
'bundle' => 'ct_candidate_details',
'default_value' => NULL,
'deleted' => '0',
'description' => '',
'description' => 'Enter the candidate\'s full name here without any special characters like apostrophe, hyphen etc.',
'display' => array(
'default' => array(
'label' => 'inline',
Expand Down Expand Up @@ -1009,6 +1009,7 @@ function f_candidate_details_field_default_fields() {
t('Election');
t('Email');
t('Enter a long textual description of the candidate that otherwise does not fit into the specific fields.');
t('Enter the candidate\'s full name here without any special characters like apostrophe, hyphen etc.');
t('Gender');
t('Ignore the N/A value and chose between Male, Female or Other.');
t('Ignore the N/A value and chose between the other values.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@ function f_candidate_details_node_info() {
'description' => t('Holds details of a candidate (shortlisted or selected) nominated for elections.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => t('Enter details of the candidate below in relevant fields. An example candidate profile can be seen here - http://myneta.info/delhi2013/candidate.php?candidate_id=65'),
'help' => t('<p><strong>Read and follow the below steps for creating content</strong></p>
<p>
<ol>
<li>Every field is made non-compulsory to allow adding the data flexibly (in case some data for some candidates is missing). But it is HIGHLY recommended that you add AS MANY details as you can enter for each candidate.</li>
<li>Title = Enter candidate\'s full name followed by the constituency name here. Eg = "Kumar Vishwas - Amethi" (without quotes). Make sure the spelling of the constituency name is same as that which automatically shows in the Parliament Constituency field when you start typing.</li>
<li>Candidate Description = This is the place where you can enter paragraph style of data. Any alternate hindi data should also go in this field. NOTE: Please leave the \'summary\' field (similar to the candidate description\' field blank.</li>
<li>All other fields = Enter data in them as per the instructions given just below that particular field.</li>
<li><strong>*important*</strong> Meta tags (page title) = Replace the default value here ([node:title] | [site:name]) with the value <strong>[node:field_cd_name] | [node:field_cd_pc] Constituency Candidate | India Lok Sabha Elections 2014 | [site:name]</strong></li>
<li>URL path settings, Revision Information, Authoring Information = Leave default </li>
<li>Publishing Options = It is recommended that you save the content without publishing it first. This will give you a better preview of the cotent, then you can \'EDIT\' the content again, and publish it if everything is alright</li>
<li><a href="https://github.com/AamAadmiParty/india-standalone-drupal/issues/80#issuecomment-32337755" target="_blank">Click here to look at a sample of how the final content should look like.</a></li>
</ol>
</p>
'),
),
);
return $items;
Expand Down

0 comments on commit 3ba20a2

Please sign in to comment.