Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

dynamically change "visible" property

edited February 2013 in Apps

I would like to dynamically change the property "visible" (based on the user name) of certain elements (eg file manager) of the editor toolbar in the file: /apps/admin/views/wysiwyg.html

How can I do this?

Thanks!

Comments

  • Right now, you would have to add a condition around it in the file you mentioned, like this:

    {% if User::val('id') == 1 %}
        <!-- show me to user 1 -->
    {% end %}
    

    The controls: {} list is what defines the available buttons in the editor. Note that we're in the process of replacing the wysiwyg editor in the 1.3.x releases for Elefant 2. The new one will use the same file for its initializations, but the code will be different (and likely simpler :)).

Sign In or Register to comment.