
|
[dokuwiki]
||
[Date Prev]
[09-2007 Date Index]
[Date Next]
||
[Thread Prev]
[09-2007 Thread Index]
[Thread Next]
[dokuwiki] Re: how to disable edit but leave section edit?
- From: Myron Turner <turnermm02@xxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 04 Sep 2007 06:00:40 -0500
If you want to modify the code, it would be in template.php, by
commenting out line 406 of the latest dist:
if($INFO['exists']){
// echo html_btn('edit',$ID,'e',array('do' => 'edit','rev'
=> $REV),'post');
}
But the safest way is to delete the edit button at the bottom of
main.php, which in recent versions of dokuwiki is:
<?php tpl_button('edit')?>
Doing a quick check, I seem to find that tpl_actionlink appears in
versions prior to this year.
Best,
Myron
YC Chan wrote:
Suggestion: update your template (i.e. main.php) to remove the link
option to edit the (whole) page.
Look for and comment out the call
tpl_actionlink('edit','','');
The section edit buttons would still be available to allow people to
do just that.
A more definite way is to modify html_edit ...
2007/9/4, Nikolay Vladimirov <nikolay@xxxxxxxxxxxxxxx
<mailto:nikolay@xxxxxxxxxxxxxxx>>:
Greetings!
How can I disable the editing of the whole page in a way that the
partial page editing will still work?
The only thing I can think of is to use action plugin to check for
$_REQUEST['lines'] on 'edit' action. Is there a slimpler way?
--
NV
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
--
_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|