Managing Drupal Views, the proper way

Comments

5 comments posted
Thanks for the info Damien.

Thanks for the info Damien. I'm still learning Drupal and your tips is highly appreciated...I could surely use them and add them to my knowledge, and I do agree with you when you said that the most useful and powerful modules on Drupal is Views.

Anonymous's picture
Posted by Winni (not verified) on Sun, 01/03/2010 - 7:42am
Great tutorial. Exporting

Great tutorial. Exporting views into a module is essential for smooth deployment.

I am thinking that I will implement my module in a very similar fashion as you have outlined, but I will have the _views_default_views function loop through all .inc files which start with 'views.' so that I don't have to manually write in the include every time I export a new view into code.

Also, I think it would be better if you post your code samples as code instead of screenshots.

Anonymous's picture
Posted by Michael Thorne (not verified) on Tue, 03/16/2010 - 9:38pm
HI, I have implemented this

HI,

I have implemented this thing long time ago.. but now days am working on performance optimization and while looking at queries i am continenously getting this query "SELECT * FROM views_view WHERE name = ?" which means whether we have views declared in files or DB still we cannot reduce no. of query as mentioned above.

or i am doing some thing wrong.. technically views should not look in to DB table to get details of any view because that table is empty as all views were declared in my views module.. any thoughts?

Anonymous's picture
Posted by Anonymous (not verified) on Fri, 04/30/2010 - 12:49pm
My biggest disappointment

My biggest disappointment with the Ipad was that I didn't have full access to edit views. I could access all the major areas and could edit a view if it existed but if I tried to create a view I couldn't access all options available. Anything that required me to scroll through a list was out. So I could select the first few node options but not anything past the first screen. That really bugs me.

Anonymous's picture
Posted by Dallas (not verified) on Mon, 06/07/2010 - 11:21pm
@anonymous, I haven't noticed

@anonymous, I haven't noticed that, but I haven't specifically looked either. It sounds like it is checking to see if there are any overridden views to match the one that is loaded via the default_views hook. Do you have caching enabled on your site?

Damien's picture
Posted by Damien on Sun, 06/20/2010 - 5:18pm

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Spoilers can be placed between [spoiler][/spoiler] tags in order to be masked using CSS. Users will need to highlight the text to read content.

More information about formatting options