We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10449
    • 956 Posts
    I just came across a strange thing in the manager:

    A manager-user (not id 1) doesn’t see the drop-down menu "content-type" in the 2nd edit-document tab.

    I looked at the role definition for that particular manager-user, but I didn’t find anything related. Note: I don’t need him to be able to define his own custom content-types. But he should be able to select either text/html, text/xml or text/plain. Why is that choice invisible/blocked? How can I make it available for that user? He should be able to choose template = blank and just use his own HTML/CSS/XML in there in a few select places, without having to create a new template first. It would be overkill for these few instances.

    Any hacks, tricks out there?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Interesting...
      <?php if ($_SESSION['mgrRole'] == 1) { ?>
      			<tr style="height: 24px;"><td><span class="warning"><?php echo $_lang['page_data_contentType']?></span></td>
      				<td><select name="contentType" class="inputBox" onchange="documentDirty=true;" style="width:200px">
      

      Now why would this be limited to the main Administrator role?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 17884
        • 10 Posts
        For those coming across this thread looking for a way to give non-Admins access to the content type value:

        Within ’manager > actions > mutate_user.dynamic.php’, line 842, you can change the default ’admin-only’ access as follows:

        // proposed policy change: non-admin managers can edit contentType and content_dispo only for resources they create
        // see: http://svn.modxcms.com/jira/browse/MODX-1365
        if ($_SESSION['mgrRole'] == 1 || $_REQUEST['a'] != '27' || $_SESSION['mgrInternalKey'] == $content['createdby']) {
        //if ($_SESSION['mgrRole'] == 1) {