[wikka-community] Help
Dario Taraborelli
dartar
Tue Apr 21 19:28:48 GMT 2009
Hi Phong,
the idea of inline admin-only content is an interesting one but
difficult to implement in a wiki as far as I can see.
On top of Nils's suggestions, another option to embed content that
your users cannot edit is to use the {{include}} action to embed
content from another page with read-only ACLs:
http://docs.wikkawiki.org/IncludeAction
However this doesn't allow you to embed content invisible to regular
users. If you try to include an admin-only page and you don't have
privs to read it, you will get an ACL error.
To embed content from another (admin-only) page without displaying any
ACL error to your users, you can tweak the actions/include.php in the
following way:
- copy it to plugins/actions/include.php
- edit plugins/actions/include.php and comment out the following line
(55):
else print "<em class='error'>".ERROR_CIRCULAR_REF."</em>";
Hope this helps
Dario
On 21 Apr 2009, at 19:52, Nils Lindenberg wrote:
> Hi,
>
> access control is based on a per-page basis. Therefore you
> suggestion will not work.
>
> You can use a custom action: save your html in a .php file, store it
> on the server in the actions directory and include the action into a
> page. Or you can modify the show handler itself.
>
> Greets,
> Nils
>
>
> Am 21.04.2009 um 07:45 schrieb Leonidas:
>
>> I understand enabling full html poses a security risk but would it
>> be possible to only enable it to the admin only? Is there a way the
>> admin can add certain codes or notes on a page that only he or she
>> can see and edit and the same time still allow contributors to edit
>> the page?
>>
>> Phong K.
>> _______________________________________________
>> WikkaWiki Community mailing list
>> community at wikkawiki.org
>> http://mail.wikkawiki.org/mailman/listinfo/community_wikkawiki.org
>
>
> _______________________________________________
> WikkaWiki Community mailing list
> community at wikkawiki.org
> http://mail.wikkawiki.org/mailman/listinfo/community_wikkawiki.org
More information about the community
mailing list