Change book | Close bookmaker |
Note that the solutions in thic cookbook do not hide links to missing topics and unknown WikiWords.
This is the recommended approach. Edit buttons will be visible for guests, and will be hidden if a logged in user does not have access. This is the most "friendly" approach in that a guest can click any button (for ex. edit or attach) and will be prompted to log in.
This line loads the extra style definition:* Set USERSTYLEURL = %PUBURLPATH%/%SYSTEMWEB%/PatternSkinCssCookbookHideActions/hideunauthaction.css
This requires guests to find and click the login button to authenticate before the buttons become visible.
* Set USERSTYLEURL = %PUBURLPATH%/%SYSTEMWEB%/PatternSkinCssCookbookHideActions/hideguestaction.css
/* Hide action buttons for guests, and for logged in users without change permission */ .foswikiHasNoChangePermission.foswikiLoggedIn .foswikiRequiresChangePermission { pointer-events: none; cursor: default; opacity: 0.5; } .foswikiHasNoChangePermission.foswikiGuest .foswikiRequiresChangePermission { pointer-events: none; cursor: default; opacity: 0.5; }