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