Ciao, mi è capitato di eliminare per sbaglio il tipo di contenuto Story..
come faccio per reinstallarlo identico allo Story di default? devo aggiungere dei field particolari? se si quali?
oppure potrei fare un "importa" (ma non ho il codice da importare..)
Ho eliminato Story.. come ripristinarlo identico? [Risolto]
Lun, 04/01/2010 - 11:40
#1
Ho eliminato Story.. come ripristinarlo identico? [Risolto]
Ciao!
ecco qua il codice da importare:
$content['type'] = array (
'name' => 'Story',
'type' => 'story',
'description' => 'A <em>story</em>, similar in form to a <em>page</em>, is ideal for creating and displaying content that informs or engages website visitors. Press releases, site announcements, and informal blog-like entries may all be created with a <em>story</em> entry. By default, a <em>story</em> entry is automatically featured on the site\'s initial home page, and provides the ability to post comments.',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => true,
'sticky' => false,
'revision' => false,
'moderate' => false,
),
'language_content_type' => 0,
'old_type' => 'story',
'orig_type' => 'story',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'comment' => 2,
'comment_default_mode' => 4,
'comment_default_order' => 1,
'comment_default_per_page' => 50,
'comment_controls' => 3,
'comment_anonymous' => 0,
'comment_subject_field' => 1,
'comment_preview' => 1,
'comment_form_location' => 0,
);
Se sei su drupal 6, dovresti essere a posto.
ciao!
Mario Vercellotti (Vermario)
Freelance
http://www.verdevelop.com
Ottimo, ti ringrazio!
si sono su drupal 6 :)