Providing you with categories like smooth jazz. Easy reading.

 

Out of the box, Drupal comes with 3 workflow states for node types: Published, Sticky, and Promote to Frontpage. 'Published' is useful enough to control if content is visible to non-administrative users, but what if you want to mark content as Archived, Featured, or other custom statuses? You could add a Field on the content type, but that comes with some overhead to manage across multiple content types. Plus, you have to remember to remove it from the display, and set user permissions on the Field. That's a lot of work for busy content creators!

Awesomesauce Drupal Websites

We've made a lot of mention in the last week about all the awesome things we've done for Washingtons Green Grocer, there are many other sites we're doing awesome things with as well!

We're excited to announce the launch of the product catalog for Washingtons Green Grocer. Over the last month, we've worked with Zeke and Lisa to restructure their website content and ecommerce products to create a more engaging experience ripe with rich content and photography. We've been monitoring their site with Google Analytics Real Time reporting and its going crazy with all the new visitors!

In a previous post, we took a look at how to collect a customized date in Drupal. You may have noticed that there are warnings that the Day field are undefined, and that Drupal returns a form error saying the 'specified date is invalid'. This is because we are not passing a day part. In most cases, you would, but using the previous example again of submitting a credit card expiration date, you don't need it. So, how can we solve this problem?

The FormAPI, first introduced in Drupal 4, is a very powerful API that allows you to create forms effortlessly. Every major release of Drupal, the FormAPI has become more mature and flexible, allowing you to create full forms with fields, and provide ways of altering them on output with #after_build, or hook_form_alter, for example.

In Drupal 7, the FormAPI has a 'date' type form element. This field generally is used to collect data such as a birthdate, or a date in the future. By default, it provides a month, day, and year option as 3 inline select drop downs.

PHPApacheMySQLDrupal