Managing drupal views in code
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Managing drupal views in code

  • 2,768 views
Uploaded on

My presentation for Drupal Developers Day 2012 @ Microsoft Office in Ayala Makati, Philippines. This will show you how to save Drupal views in code and convert it to custom module.

My presentation for Drupal Developers Day 2012 @ Microsoft Office in Ayala Makati, Philippines. This will show you how to save Drupal views in code and convert it to custom module.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,768
On Slideshare
2,768
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
15
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. The proper way ADOLFO G. NASOL
  • 2. YESADOLFO G. NASOL
  • 3. In DATABASE ADOLFO G. NASOL
  • 4. ADOLFO G. NASOL
  • 5.  Views can be stored in the database, which is typical of smaller sites and hobby sites. However, Views may also be stored directly in the code as "default" views, (which simply means theyre available by default). Modules often come with views that are specific to the module data, but its also possible -- and highly recommended -- that sites which have separate "development" and "production" sites export their views into default views in a site-specific module. This makes it very easy to transfer views from dev to production without making database changes. ADOLFO G. NASOL
  • 6.  http://views- help.doc.logrus.com/help/views/api-default- views ADOLFO G. NASOL
  • 7.  Less Database Query You can easily re-use your views You can versioned it, because it’s a code you can use Git or SVN to track changes. You can share it to community ADOLFO G. NASOL
  • 8. ADOLFO G. NASOL
  • 9. ADOLFO G. NASOL
  • 10. ADOLFO G. NASOL
  • 11.  You can use this to create a module to allow users to enable/disable certain website components or features generated by views. Just add hook permission, create menu and a settings page. Check the sample code at https://github.com/danreb/rswd_onepage Note: If you change or adjust your view, just re export the view and override your view file then go to view list page and click on revert. That’s it! Enjoy! ADOLFO G. NASOL
  • 12.  Adolfo G. Nasol Mobile: 09195951276 Website : http://cavhost.com Blog: http://danreb.com Abtik Base Theme: https://github.com/danreb/abtik Abtik Outsource: http://abtikoutsource.com ADOLFO G. NASOL