Views 3 api

Where can I learn the views 3 API? I can use the ui to make views but I would like to create views using the API in my modules. I would settle for the views 2 API at this point. I looked at the docs and did not get very far. Anyone know of a good tutorial?

Could really use a little help pointing me in the right direction...

Hey guys-
I am a graphics guy who can fumble through code- but not write it from scratch. I have developed a NUMBER of sites- but this is my first Drupal experience. I've read all the starting documents, been playing with Drupal for DAYS now- even installed and modified different modules, so I'm somewhat familiar with it and the concepts (nodes, vocabularies, etc).

I have installed Drupal 7.2 on MDD Shared Hosting. I am looking to build a community site (actually a NUMBER of them very similar to this one once this is completed). They are very similar to these sites:
colourlovers.com
instructables.com
gdgt.com (somewhat).

The concept is that the users will upload various pictures/video & a description to a page, and then the rest of the community will be able to 'like' it (not a facebook like tho). The pages with the most 'likes' will appear in the home page and various search/sideboxes (top rated by time/date, newest, most viewed, etc). For example- a user uploads a video and/or pictures of some artwork. He'll write a short statement about it and 'publish' it to the community. Once published, other users will be able to see it, comment on it, and 'like' it if they choose to. There are different categories for each type of upload (vocabularies, etc), as well as tagging, comments, etc.

Enable comments on forums.

Somewhere along the line I disabled comments on two forum topics, one is an "About" forum topic and one is a "Guidelines" forum topic. Now, no one can add comments to any forums I create. How do I enable them?
Thx.

'method' => 'replace' can not work in ajax form

this is my code,at the first time it can work,then resubmit the data can't refresh,the same as before.but if change the method to append,it work fine. so how to fix that in replace method?

thank you very much!

'#ajax' => array(
		'wrapper' => 'main-content',
		'callback' => 'submit_callback',
		'method' => 'replace',
		'effect' => 'slide',
),

Full post/teaser theming without hard-coding

How do I customize "Full post" and "Teaser" output of a node without hard-coding?

Failed methods:
1) Theming fields output through "Manage display" at "Content type" settings is too general and insufficient for my task.
2) Using templates (.tpl.php) is stressful because it needs hard-coding. Well yes, I want CMS to do this work.
3) Using Views with "node/%" path provides pretty fast theming process and just perfect output, BUT unfortunately this method has not any distinction between content types so it can only be applied for all nodes at the same time.

Image Gallery For Drupal 7

I am currently looking for some guidance with finding a good image gallery module for Drupal 7. I have tried Media Gallery, and I am getting the same errors as a lot of other users with no response. Just in case this helps I am doing a website for a photography company so I will also be looking to restrict access to some albums from public users (this I am assuming I can do with drupal's access controls.) Does anybody have some suggestions?

Thanks in advance.

Justin

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x