Features http://drupal8.ovh/en/tags/features en Organize the Features on Drupal http://drupal8.ovh/en/tutoriels/205/organize-features-on-drupal <span class="field field--name-title field--type-string field--label-hidden">Organize the Features on Drupal</span> <div class="clearfix text-formatted field field--name-field-question field--type-text-long field--label-above"> <div class="field__label">Question</div> <div class="field__item"><p>how to organize the features in drupal ?</p> <p>What are the settings to use with each type of features ?</p> </div> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/en/users/editor" typeof="schema:Person" property="schema:name" datatype="">editor</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mon, 07/25/2016 - 10:58</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Settings to use with each type of features.</p> <p>This tutorial is an example for the following Features Structure:</p> <p><code>/site/all/features<br />  - blocks/</code><br /><code> - content_types/<br />  - env/<br />  - feeds/<br />  - menus/<br />  - permissions/<br />  - roles/<br />  - settings/<br />  - taxonomy/<br />  - views/</code></p> <p><strong>Blocs</strong>: (Ex: fe_block_YOURBLOCKNAME)</p> <p>- Block Settings (fe_block_settings). Start with the block name of one per each block</p> <p><strong>Content types</strong>: (Ex: fe_ct_article)</p> <p>- Content types (node)<br /> - STRONGARM (variable) settings with CT name (Ex: <span>additional_settings__active_tab_<strong>article</strong></span> )<br /> -&gt; If not added separately, You can also add <span> FIELD INSTANCES</span> and <span>FIELD GROUP</span> of the CT. But <strong>not</strong> <span>FIELD BASES. Because it is common for all content types.<br /> -&gt; Create a separate feature for FIELD BASES, Like fe_fb_body for the body field.</span></p> <p><strong>Menu</strong>: (Ex fe_menu_main)</p> <p>- Menu (menu_custom)<br /> -&gt; Preferancely, Create one frature per menu.</p> <p><strong>Permissions</strong>: (Ex : fe_permissions)</p> <p>- Permissions (fe_permissions)<br /> - Roles (fe_roles)</p> <p>Settings: (Ex : fe_settings_XXX)</p> <p>- STRONGARM (variable)<br /> - Any other settings. Here you can create one for all or one per each type of settings</p> <p> Taxonomy: (Ex: fe_taxonomy_tags)</p> <p>- Taxonomy (taxonomy)</p> <p> </p> <p> Views: (Ex: fe_views_THEVIEWSNAME)</p> <p>-Views (views_view)</p> <p> </p> <p>You can also add <strong>dependencies </strong>for each features type.</p> <p><u><em><strong>This is Just an Example, you can organize your features as you want. </strong></em></u></p> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-inline clearfix"> <h3 class="field__label inline">Tags</h3> <ul class="links field__items"> <li><a href="/en/tags/drupal-8" hreflang="en">Drupal 8</a></li> <li><a href="/en/tags/drupal-7" hreflang="en">Drupal 7</a></li> <li><a href="/en/tags/features" hreflang="en">Features</a></li> </ul> </div> <div class="field field--name-field-related-contents field--type-entity-reference field--label-hidden field__items"> <div class="field__item"><a href="/en/tutoriels/196/features" hreflang="en">Features</a></div> </div> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=205&amp;2=comment&amp;3=comment" token="c6a91616"></drupal-render-placeholder> </section> Mon, 25 Jul 2016 08:58:08 +0000 editor 205 at http://drupal8.ovh http://drupal8.ovh/en/tutoriels/205/organize-features-on-drupal#comments Features http://drupal8.ovh/en/tutoriels/196/features <span class="field field--name-title field--type-string field--label-hidden">Features</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/en/users/editor" typeof="schema:Person" property="schema:name" datatype="">editor</span></span> <span class="field field--name-created field--type-created field--label-hidden">Tue, 07/12/2016 - 11:54</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Features is a drupal contrib module enables the capture and management of features in Drupal, by providing a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module. A feature created by the 'Features module' can be checked, updated, or reverted programmatically.</p> <p>In Drupal 7, <strong><em>Strongarm </em></strong>module allows to export/import/edit drupal variables. In Drupal 8, It is included with core modules.</p> <p>Organize your Features</p> <p><code>/site/all/features<br />  - blocks/<br />  - content_types/<br />  - env/<br />  - feeds/<br />  - menus/<br />  - permissions/<br />  - roles/<br />  - settings/<br />  - taxonomy/<br />  - views/</code></p> <p> </p> <p>Also visit : <a href="/en/tutoriels/205/organize-features-on-drupal">Organize the Features on Drupal</a></p> <p>Detailing structure (Example)</p> <p><code>site/all/features/<br />  - blocks/<br />     #Create a feature per block or a blocks group, Ex:<br />     - site_fs_block_header/<br />     - site_fs_blocks_menu/<br />  - content_types/<br />     #Create a feature per content type<br />     #Do not add field base, field group and field instance to the content type feature<br />     - site_fs_ct_article<br />     - site_fs_ct_basicpage<br />  - menus/<br />     #Preferancely, Create one feature per menu or one per group of menu if they contains just 2/3... itmes. Do not add other settings<br />     - site_fs_menu_main<br />     - site_fs_menu_footer<br />     - site_fs_menu_mymenu<br />  - permissions/ (and roles)<br />     #You can create one feature for all permissions or split as you want<br />     - site_fs_permissions/<br />      #You can create one feature for all roles or split as you want<br />     - site_fs_roles/<br />  - settings/<br />     #Group all your settings by catagory, Ex:<br />     - site_fs_ckeditor/        #With ckeditor frofiles, settings ...<br />     - site_fs_dependencies/    #dependencies: Modules and also features<br />     - site_fs_field_base/    #Basic fields settings<br />     - site_fs_lang_fr/        #Language settings Ex : French<br />     - site_fs_site_settings/#Other settings of the site<br />     - site_fs_user/            #User settings<br />     - site_fs_worklow/        #Other modules settings Ex: Workflow ...<br />     - site_fs_linkit_prof/    #Linkit Profiles<br />     - site_fs_pathauto/        #Pathauto settings<br />     - ...<br />  - taxonomy/<br />     #Preferancely, Create one feature per vocabulary but you can arrange as you want.<br />     - site_fs_taxo_tags<br />     - site_fs_taxo_all ...<br />  - views/<br />     #Create one feature per view, do not include any other settings the views<br />     - site_fs_view1<br />     - site_fs_view2 ...</code><br />  </p> <p> </p> <p> </p> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-inline clearfix"> <h3 class="field__label inline">Tags</h3> <ul class="links field__items"> <li><a href="/en/tags/drupal-8" hreflang="en">Drupal 8</a></li> <li><a href="/en/tags/drupal-7" hreflang="en">Drupal 7</a></li> <li><a href="/en/tags/features" hreflang="en">Features</a></li> <li><a href="/en/tags/module" hreflang="en">Module</a></li> </ul> </div> <div class="field field--name-field-related-contents field--type-entity-reference field--label-hidden field__items"> <div class="field__item"><a href="/en/tutoriels/205/organize-features-on-drupal" hreflang="en">Organize the Features on Drupal</a></div> </div> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=196&amp;2=comment&amp;3=comment" token="92f59e23"></drupal-render-placeholder> </section> Tue, 12 Jul 2016 09:54:53 +0000 editor 196 at http://drupal8.ovh http://drupal8.ovh/en/tutoriels/196/features#comments Some Features commands (drush) http://drupal8.ovh/en/tutoriels/97/some-features-commands-drush <span class="field field--name-title field--type-string field--label-hidden">Some Features commands (drush)</span> <div class="clearfix text-formatted field field--name-field-question field--type-text-long field--label-above"> <div class="field__label">Question</div> <div class="field__item"><p>How to enable a feature using drush command ?<br /> How to revert a feature using drush cli ?<br /> How to revert all features using drush command ?<br /> How to recreate a feature using drush cli (update a feature) ?</p> </div> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/en/users/editor" typeof="schema:Person" property="schema:name" datatype="">editor</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mon, 01/11/2016 - 16:25</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Enable a Features<br /><code>drush en feature_name</code></p> <p>Revert a feature<br /><code>drush fr freture_name</code></p> <p>Revert all features<br /><code>drush fra -y</code><br /> #OR Also<br /><code>drush fr-all</code></p> <p>Recreate a Feature (Update a Feature)<br /><code>drush fu freture_name</code></p> <h3>Disable a feature</h3> <p>To disable a feature, visit the Feature administration page (/admin/structure/features), deselect the appropriate checkbox and <strong>Save </strong>settings.<br /><em><strong>CAUTION </strong>: Disabling the feature module is supposed to also disable all the functionality that was defined by it. That is, remove node types that were created by it, etc...</em></p> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-inline clearfix"> <h3 class="field__label inline">Tags</h3> <ul class="links field__items"> <li><a href="/en/tags/shell" hreflang="en">Shell</a></li> <li><a href="/en/tags/drush" hreflang="en">Drush</a></li> <li><a href="/en/tags/features" hreflang="en">Features</a></li> </ul> </div> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=97&amp;2=comment&amp;3=comment" token="21c84e5d"></drupal-render-placeholder> </section> Mon, 11 Jan 2016 15:25:24 +0000 editor 97 at http://drupal8.ovh http://drupal8.ovh/en/tutoriels/97/some-features-commands-drush#comments