I'm a newbie but yet an accomplished PHP developer. However, I need a Drupal 6 View walkthrough because I "don't get it". Let's say I have a list of staff members with the fields:
- name - title - photo - bio - email
When viewed in a sidebar block on an About Us page, I only want the list to show name, title, and photo. But when clicked, I want it to go to a node and show all the fields.
I hear I can do this with 2 Drupal Views, but I'm confused as to how to implement this.
Hi Vinq1, Welcome to Drupal.
The O'Reilly book "Using Drupal" will get you through it one step at a time. I highly recommend it (I have financial interest in that book :)
Note, in addition to Views, you also need to install the CCK module as well as imagefield, and if you want more flexibility displaying the pics, the imagecache module is brilliant.
Good luck,
Shai Owner, Content2zero Web Development http://content2zero.com
On Mon, Jul 27, 2009 at 11:57 PM, vinq1 reach.supermike@gmail.com wrote:
I'm a newbie but yet an accomplished PHP developer. However, I need a Drupal 6 View walkthrough because I "don't get it". Let's say I have a list of staff members with the fields:
- name
- title
- photo
- bio
When viewed in a sidebar block on an About Us page, I only want the list to show name, title, and photo. But when clicked, I want it to go to a node and show all the fields.
I hear I can do this with 2 Drupal Views, but I'm confused as to how to implement this. -- View this message in context: http://www.nabble.com/Newbie-Needing-View-Walkthrough-tp24692079p24692079.ht... Sent from the Drupal - Support mailing list archive at Nabble.com.
-- [ Drupal support list | http://lists.drupal.org/ ]
I meant to say, "I have NO financial interest in that book." That slip may expose some hidden desire :)
On Tue, Jul 28, 2009 at 12:14 AM, Shai Gluskin shai@content2zero.comwrote:
Hi Vinq1, Welcome to Drupal.
The O'Reilly book "Using Drupal" will get you through it one step at a time. I highly recommend it (I have financial interest in that book :)
Note, in addition to Views, you also need to install the CCK module as well as imagefield, and if you want more flexibility displaying the pics, the imagecache module is brilliant.
Good luck,
Shai Owner, Content2zero Web Development http://content2zero.com
On Mon, Jul 27, 2009 at 11:57 PM, vinq1 reach.supermike@gmail.com wrote:
I'm a newbie but yet an accomplished PHP developer. However, I need a Drupal 6 View walkthrough because I "don't get it". Let's say I have a list of staff members with the fields:
- name
- title
- photo
- bio
When viewed in a sidebar block on an About Us page, I only want the list to show name, title, and photo. But when clicked, I want it to go to a node and show all the fields.
I hear I can do this with 2 Drupal Views, but I'm confused as to how to implement this. -- View this message in context: http://www.nabble.com/Newbie-Needing-View-Walkthrough-tp24692079p24692079.ht... Sent from the Drupal - Support mailing list archive at Nabble.com.
-- [ Drupal support list | http://lists.drupal.org/ ]
Shai Gluskin-2 wrote:
I meant to say, "I have NO financial interest in that book." That slip may expose some hidden desire :)
No problem.
Shai Gluskin-2 wrote:
in addition to Views, you also need to install the CCK module as well as imagefield, and if you want more flexibility displaying the pics, the imagecache module is brilliant.
Thanks. Yeah, I installed the following modules today:
- CCK - filefield - imagefield - emfield - link - email
I then created a custom content type for Staff Member with those fields.
But now I'm trying to grasp how to make two views, and then how to throw one view onto a page node (just one staff member), and another into a sidebar block as a short list of staff members.
Once that's done, I need to know how to add pages to the Zen theme (which I have customized in a subfolder of the Zen theme) to style just those staff member entries.
With Views for D6, one "View" can create a lot of different "displays." So on your main views editing page top left, click on the drop down just above "add display" and choose, "block" and then click "add display." This is for your block. Row type will be "fields" by default which is good, no fussing there. Click the "+" link in the "fields" section, then limit all the choices by selecting "node" and then select "Title" assuming you want the links in the block to be node titles. If you want some other field represented in the block, a field that you created with CCK for example, then you can limit your field choices by clicking on "content" in the drop down after you've clicked on the "+". (Note... "content" in Drupal is often a code word for "custom field." Not intuitive unless you know that "CCK" is an acronym for "Content Construction Kit" which was all about adding field flexibility in Drupal.)
Before I go further, a BIG Views tip: clicking on "update display" does absolutely NOTHING to the database. You MUST click on "save" (down and to the left of where the update display link is) for it to change anything. My habit is to click on save after every adjustment I make even though you don't have to. You can make several changes and then save them, but every time I get out of the habit of saving after each change I end up losing work. Yes a lot of clicking and waiting a couple seconds... but Views is so darn powerful it's worth it.
You'll want to filter your results, otherwise every node in your install will show up. And you can sort, etc.
Now getting it to display... This view will now show up under in the disabled section of block admin and you can place it wherever you want.
(Hint about block admin. If you see "delete" next to a block, you created it via clicking on "add block" while you were in the block admin. All the blocks that are sans a "delete" link were made by another module,)
As for inserting a view into a node, you can use http://drupal.org/project/insert_view. Another way is to create a view of just the one node and then attach your view using Views attachment system to the first view of the one node.
Good luck, let us know how it goes.
Drupal is awesome!
Shai
On Tue, Jul 28, 2009 at 12:21 AM, vinq1 reach.supermike@gmail.com wrote:
Shai Gluskin-2 wrote:
in addition to Views, you also need to install the CCK module as well as imagefield, and if you want more flexibility displaying the pics, the imagecache module is brilliant.
Thanks. Yeah, I installed the following modules today:
- CCK
- filefield
- imagefield
- emfield
- link
I then created a custom content type for Staff Member with those fields.
But now I'm trying to grasp how to make two views, and then how to throw one view onto a page node (just one staff member), and another into a sidebar block as a short list of staff members.
Once that's done, I need to know how to add pages to the Zen theme (which I have customized in a subfolder of the Zen theme) to style just those staff member entries. -- View this message in context: http://www.nabble.com/Newbie-Needing-View-Walkthrough-tp24692079p24692275.ht... Sent from the Drupal - Support mailing list archive at Nabble.com.
-- [ Drupal support list | http://lists.drupal.org/ ]