Advertisement
dahousecat

Mark As Read Readme

Apr 10th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. This module marks the HTML links 'read' or 'unread' based on the user click by
  2. providing CSS class. It uses the database to track the user click activity as
  3. opposed to cookies. This module is useful if you want to mark read/unread
  4. forever to that particular link/item unlike cookie/session does.
  5.  
  6. Once the module is installed
  7. Goto : admin/config/user-interface/mark_as_read
  8.  
  9. Then simply add the following fields on the admin form to make it work
  10. on the client side.
  11.  
  12. CSS Selector:
  13. Selector that refers to all the links/html elements on which click event is
  14. tracked and marked read/unread respectively.
  15. E.g. If the links are part of the Main Menu then the selector should be
  16. ".main-menu li a". Now this will attach click events on all the anchor tags
  17. that are represented by the above css selector.
  18.  
  19. Attribute Name:
  20. This is attribute name which uniquely represents html element provided
  21. on the CSS selector field.
  22. In most of the cases "href" can be used with anchor tag.
  23. You can have custom attribute too like "data_id" for
  24. "<span data-id=test_id_123>test data </span>". In short,
  25. this attribute should uniquely represent the html element provided on the
  26. CSS Selector Section.
  27.  
  28. All the admin list entries are exportable by Features module.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement