Staff Picks View

Printer-friendly versionPrinter-friendly version

Create a block that rotates a randomly-chosen book from the Staff Picks page.

CREATE A PAGE

Navigate to: Content > Add Content > Page

  1. Fill in ‘Name’ - Example: ‘Staff Picks’
  2. Enter ISBNs for staff picks (we recommend starting with at least 2)
  3. Save

IMPORTANT NOTES BEFORE STARTING YOUR VIEW SETUP:

  1. Retrieve the NID (node ID) of the page (Staff Picks), you will need it for step 23 of creating your view. This can be found in the URL for editing the node so click on Content > Find the ‘Staff Picks’ page and click edit. Look at the URL and make note of the NID. Example: node/111/edit  
  2. We highly recommend you save your 'view' after every step, as you create it. Especially when you see this message come up:  “* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard the view.”
  3. When working in settings, always change the ‘For’ option from ‘All Displays’ to ‘This block (override)’ so that the changes you make only alter the block (or page) you are working on.

CREATE THE VIEW

Navigate to: Structure > Views > Add New Views

  1. Fill in Description - Example: Staff Picks Block
  2. Fill in ‘View Name” - Example: staff_picks_block
  3. Uncheck ‘Create A Page’
  4. Select ‘Create A Block’
  5. Enter Block Title should automatically fill in with your view name, if it does not, repeat it.
  6. Display format - leave it as ‘unformatted list’ of ‘titles (linked)’
  7. Set ‘Items per page’ to 1
  8. Select Continue and Edit
  9. Click on ‘Block’ under ‘Display Name”
  10. Enter name and description Example: (Staff Picks Block, Block for providing rotating staff picks) - click Apply
  11. Confirm ‘Format’ is set to ‘Unformatted list’ and its settings have ‘Add views rows classes and Add striping (odd/even), first/last row classes’ selected.
  12. Click Apply (this display)
  13. Under Fields - Click Add
  14. Find ‘Content: Books’ in the list - Select - Apply (this display)
  15. Configure Books - uncheck ‘Create a label’
  16. Select the appropriate ‘Formatter’ (for this example  we are using ‘Basic - Without Buy Button'
  17. Multiple Field Settings - Uncheck Display all values in the same row
  18. Apply (this display)
  19. Under fields click on ‘Content: Title’ - Remove
  20. Under ‘Filter Criteria’ Add - ‘Content: Type’ - Apply (this display)
  21. Select ‘Page’ under ‘Content Type’ - Apply (this display)
  22. Under ‘Filter Criteria’ Add - ‘Content: nid’
  23. Enter NID that you previously made note of from the Staff Picks page into the ‘Value’ field - Apply (this display), Example: 111
  24. Under Sort Criteria - Add - ‘Global - Random’ - Apply - Apply (this display)
  25. Under Sort Criteria - Click on - Content Post Date - Remove
  26. Save View

The Staff Picks Block view is now ready and will be available in the list of blocks. You can activate this block from Structure > Blocks and place it in a suitable region.

MULTIPLE STAFF PICK PAGES

Create a block that rotates a randomly-chosen book from each staff member pick page.

CREATE A PARENT BOOK PAGE

Navigate to: Content > Add Content > Book Page

  1. Fill in ‘Name’ - Example: ‘Staff Picks’ -  This will be the 'Parent' book page.
  2. Select the tab ‘Book Outline’ - Change ‘Book’ option to ‘Create New Book’
  3. Save

CREATE A CHILD BOOK PAGE(S)

Navigate to: Content > Add Content > Book Page

  1. Fill in ‘Name’ - Example: ‘Staff Picks by Ryan’ -  This will be the 'Child' book page.
  2. Enter ISBNs for staff picks (We recommend starting with at least 2 picks for each staff page)
  3. Select the tab ‘Book Outline’ - Change ‘Book’ option to ‘Staff Picks - ‘Parent Item’ should automatically change to match.
  4. Save

IMPORTANT NOTES BEFORE STARTING YOUR VIEW SETUP:

  1. Retrieve the NID (node ID) of the parent book page (Staff Picks), you will need it for step 25 of creating your view. This can be found in the URL for editing the node so click on Content > Find the ‘Staff Picks’ book page and click edit. Look at the URL and make note of it the NID. Example: node/105/edit  
  2. We highly recommend you save your 'view' after every step, as you create it. Especially when you see this message come up:  “* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard the view.”
  3. When working in settings always change the ‘For’ option from ‘All Displays’ to ‘This block (override)’ so that the changes you make only alter the block (or page) you are working on.

CREATE THE VIEW

Navigate to: Structure > Views > Add New Views

  1. Fill in ‘View Name” - Example: staff_picks_block
  2. Fill in Description - Example: Staff Picks Block
  3. Uncheck ‘Create A Page’
  4. Select ‘Create A Block’
  5. Enter Block Title should automatically fill in with your view name, if it does not, repeat it.
  6. Display format - leave set as ‘unformatted list’ of ‘titles (linked)’
  7. Set ‘Items per page’ to 1
  8. Select Continue and Edit
  9. Click on ‘Block’ under ‘Display Name”
  10. Enter name and description Example (Staff Picks Block, Block for providing rotating staff picks) - click Apply
  11. Confirm ‘Format’ is set to ‘Unformatted list’ and its settings have ‘Add views rows classes and Add striping (odd/even), first/last row classes’ selected.
  12. Click Apply (this display)
  13. Under Fields - Click Add
  14. Find ‘Content: Books’ in the list - Select - Apply (this display)
  15. Configure Books - uncheck ‘Create a label’
  16. Select the appropriate ‘Formatter’ (for this example  we are using ‘ Basic - Without Buy Button'
  17. Multiple Field Settings - Uncheck Display all values in the same row
  18. Apply (this display)
  19. Under fields click on ‘Content: Title’ - Remove
  20. Open the Advanced Tab - Relationships - Add - Select ‘Book: Parent’ - Apply (this display)
  21. Select ‘Require this relationship’ - Apply (this display)
  22. Under ‘Filter Criteria’ Add - ‘Content: Type’ - Apply (this display)
  23. Change relationship to ‘Book parent’ and ‘Content Type’ to ‘Book page’ - Apply (this display)
  24. Under ‘Filter Criteria’ Add - ‘Content: nid’
  25. Change relationship to ‘Book parent’ - enter NID that you previously made note of from the Staff Picks page into the ‘Value’ field - Apply (this display) Example: 105
  26. Under Sort Criteria - Add - ‘Global - Random’ - Apply - Apply (this display)
  27. Under Sort Criteria - Click on - Content Post Date - Remove
  28. Save View

The Staff Picks Block view is now ready and will be available in the list of blocks. You can activate this block from Structure > Blocks and place it in a suitable region.

 

IndieCommerce Help Documents

 

About ABA

The American Booksellers Association, a national not-for-profit trade organization, works with booksellers and industry partners to ensure the success and profitability of independently owned book retailers, and to assist in expanding the community of the book.

Independent bookstores act as community anchors; they serve a unique role in promoting the open exchange of ideas, enriching the cultural life of communities, and creating economically vibrant neighborhoods.

Contact

PRESS INQUIRIES: [email protected]

INDIECOMMERCE: [email protected]

ALL OTHER INQUIRIES: [email protected]

 

 

Copyright 2024 American Booksellers Association. BookWeb is a registered trademark of ABA.
Privacy Policy, Cookie Policy, Accessibility Statement