Drupal:content views

From EWBTechies Wiki

Jump to: navigation, search

Contents

[edit] Content & Views

[edit] Story

Paul the Programmer wants to make a hotornot-like website called geek-or-not. So, he hascalled upon you, aspiring drupaler you, to make this site for him. He does not really knowwhat he wants the site to do yet and has not really communicated anything to you, but hehas given you the money to start. Being the sharp developer you are and desiring to getahead and show him you already built the engine before he could even start thinking, youdecide to start a drupal site that collects and lists a persons name, description, and ofcourse their glorious photo.

[edit] Goal

  • Work with basic content, views, and permissions


[edit] Reference Material

[edit] Instructions

  1. Add current CCK, CCK Image Field, File Field, and views module
    1. Enable all the modules
  2. Set up a simple content type called “Geek”, with title, node body, and add a CCK field for an image
    1. Go to Content > Content Types and "Add Content Type"##
    2. Go to "Manage Fields" in the "Geek" Content Type and add a field of type file and image
  3. Set permissions so that anonymous users can create Geek content (edit and delete their own geek content also) and edit the image field
    1. Permissions can be found here: People > Permissions
  4. Create a view (type: Block) that displays all geeks on the right sidebar. Use “fields” display instead of “node” display. Include fields:
  • Title (as a link to the full node)
  • Image of the geek
    1. Go to Structure > Views
    2. Add a block display once you get the correct data being displayed
  1. Display this block on every page in the right hand column
    1. Go to Structure > Blocks
  2. Create a node of type "page" that describes this website
  3. Make this page this page the front page
    1. You can change this properly by going to Configuration > Site Information
Personal tools