- Can see edit history for area main pages?
Much like edit history generally, this is superseded by the Staff Permission Can moderate all wiki content. I think there's a bug, because it should also be superseded by Can undo edits to all wiki pages, and I don't think it is. In that case, it should only appear for staff. Logic: if a staff member is allowed to moderate wiki edits (included in ALL wiki content), then they must be able to see the edit history, in order to see that edit, in order to moderate it.
- Can protect/unprotect area main pages?
This is superseded by the Staff Permission Can protect/unprotect all wiki content. In that case, it should only appear for staff.
If your goal is to remove the tabs entirely, why not try using a tab-less layout for this area? That changes the tabs to a more condensed menu that uses icon buttons. Note that it does affect all content in the area too, but on most of my wikis I tend to use tab-less for everything because it helps me make the layout cleaner. example: https://www.vaultwiki.org/xf/index.p.../&title=system
* contributors/credits: this tab will disappear if you revoke permission to see the area main page's history.
* edit: if you revoke permission to edit the area main page, it should not appear. This is superseded by the Staff Permission Can edit all wiki content. In that case, it should only appear for staff.
* synonyms: same as edit tab
* watch: a user can watch wiki content if they're logged in and can view the wiki content. If you disable watching an area, then users wouldn't be able to be notified if there are new wiki pages in the area.
* report: the permissions don't distinguish between allowing users to report suspicious content with the area vs attached to the area itself.
* tags: if you revoke permission to tag the area main page, and it has no tags already, then it should not appear. This is superseded by the Staff Permission Can edit all wiki content. In that case, the link to edit tags should only appear for staff.
The flag will still display to show the language the area is in, even if the user cannot translate the area, because you have a multi-language wiki, where some content (even areas) might be set to a different language. Ideally this could be hidden with CSS, but I don't see a way to do it just for areas. You could modify the template vw_node_shell. For every:
Code:
<xf:if is="{$flags}">
Replace with:
Code:
<xf:if is="{$flags} AND !{$node.indexid} AND (!{$node.pageid} OR {$node.areaid} != {$node.pageid})">
If you switch to tab-less, you'll have to wrap that condition around:
Code:
<xf:include template="vw_translate_tabless" />
Bookmarks