01551: add markups hideactions and showactions

Summary: add markups hideactions and showactions
Created: 2026-04-08 17:25
Status: Open
Category: CoreCandidate Feature Request
From: --gnuzoo
Assigned:
Priority: 5
Version: all
OS: all

Description:
The (:noaction:) works great, but disables access keys, like for Edit, control-alt-e.

Here is a solution. AFAIK this is 100% compatible with anything.
IMHO this is simple and clearly easy to understand, favoring authors.

    Markup('hideactions', 'directives', '/\(:hideactions:\)/i',
        "<style type='text/css'> #wikicmds { display: none; } </style>");

    Markup('showactions', 'directives', '/\(:showactions:\)/i',
        "<style type='text/css'> #wikicmds { display: initial !important; } </style>");

"noactions" hides the actions and disables access keys, "hideactions" just hides the
action links, but the access keys are still active, "showactions" would display the
action links if not already visible. Even with all 3 of these, the page
could still be edited by adding "?action=edit" to the URL in the browser.
I use a firefox bookmarklet for that.

    NAME: edit      URL: javascript:location.href+=%22?action=edit%22)

"showactions" is necessary if someone has by default for an entire group or wiki,
hidden the actions or specified noactions. Being specified on the page it would
override the default.

--gnuzoo