Staff Picks View
Create a block that rotates a randomly-chosen book from each staff pick.
- Create a Book Page called 'Staff Picks.' This will be the 'Parent' book page. Then, create a book page for each staff member. Each of these will a 'Child' of the parent book page, and will have a book list of one or more recommended titles.
- Retrieve the nid (node ID) of the parent book page. This can be found in the URL for editing the node. For example node/539/edit
- Create the view
Go to: Site building > Views > Add
View name : staff_picks_block
View description: 'Staff Picks Block'
Tags: none, or your choice
View type: Node
You will now be in the Edit view staff_picks_block
(Ignore warning messages that show up in the warning box. They will go away when the view is completed. Use 'Update and override' whenever that option is available for any setting.)
You will now be in the 'Default' display mode. All 'default' settings will be inherited by other display modes (Block, Page etc.)
Filters → Add (the + sign. Scroll to the bottom of the page to see the filter settings.)
- Select 'Node' from the Groups
- Node:Published → Yes
- Node:Type → Is one of → Book Page
Relationships → Add
Book: Parent → 'Require this relationship'
Filters → Add
Node:Nid → Relationship: Book parent → Operator: Is equal to 539 (This is the nid of the parent book page that you retrieved in step ii.)
Sort criteria → Add
Global: Random
Basic settings
- Style → HTML list or Unformatted
-
Row Style → Fields
-
Items to display → 1
Fields → Add
Content → ISBN-13/Model with Review
- Label: None
- Format: Cover & Basic Meta-Data, without Buy Button
- Confirm that all other check boxes are unchecked
- Relationship: 'Do not use a relationship'
Create the 'Block' display
- Select 'Block' from the drop down menu
- Add display
- Confirm that all the 'default' settings have been inherited.
- Save
Note: Remember to save your 'view' at every step, as you create it. While editing, make sure you are in the 'Block' display view (or 'Page' if you are editing that display.)
The Staff Picks Block view is now ready, and will be available in the list of blocks.
You can activate this block from Site building > Blocks and place it in a suitable region.
Find Independent Bookstores by Name, State, or ZIP