{"id":96,"date":"2008-10-22T19:16:54","date_gmt":"2008-10-22T18:16:54","guid":{"rendered":"http:\/\/www.caliburn.nl\/blog\/?p=96"},"modified":"2008-10-22T19:16:54","modified_gmt":"2008-10-22T18:16:54","slug":"disabling-buttons-for-non-admins-in-dokuwiki","status":"publish","type":"post","link":"https:\/\/www.caliburn.nl\/blog\/2008\/10\/22\/disabling-buttons-for-non-admins-in-dokuwiki\/","title":{"rendered":"Disabling buttons for non-admins in dokuwiki"},"content":{"rendered":"<p>I am using <a title=\"dokuwiki\" href=\"http:\/\/www.splitbrain.org\/projects\/dokuwiki\">dokuwiki<\/a> for an intranet on one of the sites I am maintaining. I wanted to disable certain buttons for users who are not administrators, like the profile and the revision buttons. It was for me not easy to find. Hence I am posting it here. The way I did it was editing the following in the <em>main.php<\/em> of the template:<\/p>\n<p><code>if ($INFO['isadmin']) tpl_button('history');<\/code><\/p>\n<p>Maybe other developers can use this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using dokuwiki for an intranet on one of the sites I am maintaining. I wanted to disable certain buttons for users who are not administrators, like the profile and the revision buttons. It was for me not easy to find. Hence I am posting it here. The way I did it was editing the following in the main.php&#8230; <a href=\"https:\/\/www.caliburn.nl\/blog\/2008\/10\/22\/disabling-buttons-for-non-admins-in-dokuwiki\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-geeky-stuff"],"_links":{"self":[{"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":1,"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caliburn.nl\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}