You are here

README.txt in Flippy 8

Same filename and directory in other branches
  1. 7 README.txt
ABOUT

Flippy is an ultra-simple module that generates previous/next pagers for content
types. On the Node type administration screen, you can turn Flippy on or off
for each content type. It'll generate a unique pager for each content type, so
you can page through Articles or page through Blog posts, but you can't page
through all nodes on the site.

To change the position of the pager, visit the content type's Manage Display
page, where fields and other fieldish things can be dragged about. Flippy's
there, too.

If you turn on Flippy for a content type, but hide the pager in the Manage
Display page, its links will still be available in the theme layer when it comes
time to output node.tpl.php. If you like, you can weave the pager links right
into the node manually in your own templates.

HISTORY

Flippy started out as a quick and dirty port of Custom Pagers module to Drupal 7
but quickly spiraled into an over-engineered pile of wacky. It was gutted and
now it's very simple. It might get more features later.

USAGE

- Go to /admin/modules and enable Flippy module
- Go to /admin/structure/types, edit the content type that you want to have
  flippy enabled
- tick 'Build a pager for this content type' checkbox in 'Flippy settings' tab
- Select advanced options
  - Whether to add semantic previous and next links to the document HEAD
  - Whether to show empty links. For example, if there is no "next" node, the
    "next" label will be shown but without a link
  - Input the label you want to display for the links. You can use token to
    display element of node
  - Whether to display first/last links. Will ask you to input the label if you
    tick the checkbox
  - Whether to loop through the nodes, there won't be first and last node
  - Whether to show the random link. Label is needed if checked
  - Set up 'Truncate label length'. Long text will be truncated
  - Set up 'Truncate ellipse'
  - Sort by other fields
    - If checked, choose the field for sorting the pager
    - Select pager order
  - Swipe and keyboard support
    - Make sure you have hammerjs (https://www.drupal.org/project/hammerjs)
      installed to see this option
    - Currently support left and right arrow key and swiping to left and right
      gesture
    - flippy div class name changed in your custom twig template will make this
      feature non-functional
  - Click the save content type button to save the settings

REQUIREMENTS

- Drupal 8
- token module

AUTHOR

Jeff Eaton "eaton" (http://drupal.org/user/16496)

MAINTAINER

Joshua Li "rli" (http://drupal.org/user/633216)

File

README.txt
View source
  1. ABOUT
  2. Flippy is an ultra-simple module that generates previous/next pagers for content
  3. types. On the Node type administration screen, you can turn Flippy on or off
  4. for each content type. It'll generate a unique pager for each content type, so
  5. you can page through Articles or page through Blog posts, but you can't page
  6. through all nodes on the site.
  7. To change the position of the pager, visit the content type's Manage Display
  8. page, where fields and other fieldish things can be dragged about. Flippy's
  9. there, too.
  10. If you turn on Flippy for a content type, but hide the pager in the Manage
  11. Display page, its links will still be available in the theme layer when it comes
  12. time to output node.tpl.php. If you like, you can weave the pager links right
  13. into the node manually in your own templates.
  14. HISTORY
  15. Flippy started out as a quick and dirty port of Custom Pagers module to Drupal 7
  16. but quickly spiraled into an over-engineered pile of wacky. It was gutted and
  17. now it's very simple. It might get more features later.
  18. USAGE
  19. - Go to /admin/modules and enable Flippy module
  20. - Go to /admin/structure/types, edit the content type that you want to have
  21. flippy enabled
  22. - tick 'Build a pager for this content type' checkbox in 'Flippy settings' tab
  23. - Select advanced options
  24. - Whether to add semantic previous and next links to the document HEAD
  25. - Whether to show empty links. For example, if there is no "next" node, the
  26. "next" label will be shown but without a link
  27. - Input the label you want to display for the links. You can use token to
  28. display element of node
  29. - Whether to display first/last links. Will ask you to input the label if you
  30. tick the checkbox
  31. - Whether to loop through the nodes, there won't be first and last node
  32. - Whether to show the random link. Label is needed if checked
  33. - Set up 'Truncate label length'. Long text will be truncated
  34. - Set up 'Truncate ellipse'
  35. - Sort by other fields
  36. - If checked, choose the field for sorting the pager
  37. - Select pager order
  38. - Swipe and keyboard support
  39. - Make sure you have hammerjs (https://www.drupal.org/project/hammerjs)
  40. installed to see this option
  41. - Currently support left and right arrow key and swiping to left and right
  42. gesture
  43. - flippy div class name changed in your custom twig template will make this
  44. feature non-functional
  45. - Click the save content type button to save the settings
  46. REQUIREMENTS
  47. - Drupal 8
  48. - token module
  49. AUTHOR
  50. Jeff Eaton "eaton" (http://drupal.org/user/16496)
  51. MAINTAINER
  52. Joshua Li "rli" (http://drupal.org/user/633216)