Reactie toevoegen

Notes from Views Mini-Course, Part II: Creating Flexible Views with Drupal

Here are notes from the 2nd class in our Views mini-course.

In today's class we will look at the Views UI in detail. I'll show you how to create flexible views. You'll see, for example, how to add a list of content by a user and have it appear on the user's profile page using a contextual filter like this:

View content by user

We'll talk about and demo:

  • Best practices for Views formatting and display.
  • How to use filters and expose filters
  • Using attachments (touched on last week when we spoke about displays).
  • Using relationships to get data from other tables
  • Adding contextual filters
  • Adding links to menus
  • Adding messages when no results are available
  • Restricting access to views
  • Creating administrative views

This week's assignment

Last week you made a view, right? This week challenge yourself to try:

  • Add a display with an attachment
  • Make a contextual filter or use a relationship
  • Add a link to your menu

Need some help? Watch tutorials 4 parts, 5 mins each!

Next week!

Sign up to Views Mini-Course, Part III: How to back up your Views safely. May 15th. How to create a module to back up your views- no prior experience with module development needed!

Prerequisite: Introduction to Drupal - a free course offer for newsletter subscribers!

Sign up to our Acquia Training newsletter, and next week, I'll be sending out a free link to our Introduction to Drupal course on Udemy for all subscribers. This 3 hour self-paced course will get you up to speed with Drupal.

Plain text

  • Geen HTML toegestaan.
  • Adressen van webpagina's en e-mailadressen worden automatisch naar links omgezet.
  • Regels en alinea's worden automatisch gesplitst.

Filtered HTML

  • Use [acphone_sales], [acphone_sales_text], [acphone_support], [acphone_international], [acphone_devcloud], [acphone_extra1] and [acphone_extra2] as placeholders for Acquia phone numbers. Add class "acquia-phones-link" to wrapper element to make number a link.
  • To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also colour it based on syntax.
  • Adressen van webpagina's en e-mailadressen worden automatisch naar links omgezet.
  • Toegelaten HTML-tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <h4> <h5> <h2> <img>
  • Regels en alinea's worden automatisch gesplitst.
Bij het indienen van dit fomulier gaat u akkoord met het privacybeleid van Mollom.