drupal features module by new tech fusion presentation

Post on 18-Jun-2015

312 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Drupal Features is one of the best module for the smart drupal developers. It gives alot of power to developers and save huge development efforts if some feature needs to be implemented again and again in different websites.

TRANSCRIPT

www.newtechfusion.com 1

Features Drupal Modulea better way to package stuff

www.newtechfusion.com 22 Press Complex, Indore, MP India 452001Phn No : +91-731-4050926

www.newtechfusion.com 2

Introduction

• Features is a Drupal module created by Development Seed.

• It enables ‘Features’ to be created which package CCK types, Views, Contexts and more

• It moves configuration from the database to code

www.newtechfusion.com 3

What is a Feature?

• A Feature is a special kind of module.

• Features consist of generated code

• Features are created via the admin UI

• Features have version numbers

www.newtechfusion.com 4

Why use Features?

Re-use configuration settings; and

Add configuration settings to version control.

www.newtechfusion.com 5

How to create a simple Features mini-module

•Create a new content type and its associated view to export via features.

•Install features module using https://drupal.org/project/features

•Visit the Features administration page you will get message “No Features were found. Please use the Create Feature link to

create a new Feature”

www.newtechfusion.com 6

How to create a simple Features mini-module

At this point, you want to visit the Create Feature tab to begin creating the new feature.

You will need to enter a name and description for the feature.

www.newtechfusion.com 7

How to create a simple Features mini-module

We build the feature by selecting components from the Edit components drop-down menu for both content type and views .

To do this, we select ‘Content types’ from the drop-down, and select ‘News’ from the checkbox list that appears.

www.newtechfusion.com 8

How to create a simple Features mini-module

Once you do this, you will notice a table appear to the right. This shows you the components that make up your mini-module

www.newtechfusion.com 9

Final Step

And the final step is to hit the ‘Download’ button to download the feature.

The feature mini-module is supplied as a TAR file, that you will need to extract to one of the places that Drupal looks for modules.

www.newtechfusion.com 10

Final Step

Once you’ve installed the mini-module you should see something like the following in the Features admin page:

The final step is to enable the mini-module and it’s all done.

www.newtechfusion.com 11

What things can be stored in a Features mini-module?

Content types,Module dependencies,Fields (D7),Menus,Individual menu items,User Roles,Permissions,Taxonomies,Input flter Formats, andImage formats (D7)

www.newtechfusion.com 12

What things can be stored in a Features mini-module?

Context,Strongarm,Boxes,CCK (D6), andRules

Other modules that provide support for exporting to Features include:

www.newtechfusion.com 13

Reference

https://drupal.org/project/features

http://www.opc.com.au/web-development/introduction-drupal-features-module

www.newtechfusion.com 14

+91-731-4050926

info@newtechfusion.comwww.newtechfusion.com

NewTechFusion CyberTech Pvt. Ltd.

https://www.facebook.com/NewtechfusionSolutions

You can also find us at:

Lets Talk

top related