ManagerManager - MODX Community Forums https://forums.modx.com/board/?board=82 <![CDATA[Is it possible to change the height of the TinyMCE editor via ManagerManager?]]> https://forums.modx.com/thread/45276/is-it-possible-to-change-the-height-of-the-tinymce-editor-via-managermanager#dis-post-555967 I’m wondering if this is even possible, and if so how I would go about doing it. Any help would be really appreciated!

I’d like to be able to change the height of the TinyMCE editor for the client, and make this specific for certain pages such as the homepage, e.g.

// Homepage rules
$list_tpl = ’5’;
mm_hideFields(’content,show_in_menu,introtext’, ’’, $list_tpl);
something here to make the TinyMCE editor shorter for this template only

Thanks
Harmony]]>
https://forums.modx.com/thread/45276/is-it-possible-to-change-the-height-of-the-tinymce-editor-via-managermanager#dis-post-555967 Tue, 19 Dec 2017 06:08:54 +0000 https://forums.modx.com/thread/45276/is-it-possible-to-change-the-height-of-the-tinymce-editor-via-managermanager#dis-post-555967
<![CDATA[MODx Evo 1.0.15 Error: ManagerManager: An error has occurred: TypeError - $j(...).mm_widget_showimagetvs is not a function]]> https://forums.modx.com/thread/97647/modx-evo-1-0-15-error-managermanager-an-error-has-occurred-typeerror---j-mm-widget-showimagetvs-is-not-a-function#dis-post-536081
ManagerManager: An error has occurred: TypeError - $j(...).mm_widget_showimagetvs is not a function

when editing resources from the Quick Manager.

Can anyone advise?

Thanks!]]>
https://forums.modx.com/thread/97647/modx-evo-1-0-15-error-managermanager-an-error-has-occurred-typeerror---j-mm-widget-showimagetvs-is-not-a-function#dis-post-536081 Thu, 17 Dec 2015 10:00:54 +0000 https://forums.modx.com/thread/97647/modx-evo-1-0-15-error-managermanager-an-error-has-occurred-typeerror---j-mm-widget-showimagetvs-is-not-a-function#dis-post-536081
<![CDATA[ManagerManager mm_widget_showimagetvs not working in MODx Evo]]> https://forums.modx.com/thread/45206/managermanager-mm-widget-showimagetvs-not-working-in-modx-evo?page=3#dis-post-530233
Is anyone else experiencing the same issue? any ideas on resolving the issue?]]>
https://forums.modx.com/thread/45206/managermanager-mm-widget-showimagetvs-not-working-in-modx-evo?page=3#dis-post-530233 Wed, 19 Aug 2015 11:39:38 +0000 https://forums.modx.com/thread/45206/managermanager-mm-widget-showimagetvs-not-working-in-modx-evo?page=3#dis-post-530233
<![CDATA[BUG: Managermanager 6.2 not workin with yams anymore]]> https://forums.modx.com/thread/95259/bug-managermanager-6-2-not-workin-with-yams-anymore#dis-post-516678 We have a site using yams and ManagerManager.
Before the update to Evo 1.15 We had TAbs for each language with the TV-Fields.
Now all Fields are shown on the general Tab, and the language tabs are empty.

While the other rules are working,
this seem not to work anymore
require( $modx->config['base_path'] . 'assets/modules/yams/yams.mm_rules.inc.php' );


Since Im a Front-End Developer this is not really my stuff.
So, is there anyone here who knows what to do?
Here is the yams.mm_rules.inc.php file:

<?php
/**
 * ManagerManager rules for formatting the document interface so as to display
 * different languages on different tabs
 *
 * @author PMS (http://modxcms.com/forums/index.php?action=profile;u=12570)
 * @copyright Nashi Power (http://nashi.podzone.org/) 2009
 * @license GPL v3
 * @package YAMS (http://modxcms.com/extras/package/?package=543)
 * @see Forum (http://modxcms.com/forums/index.php/board,381.0.html)
 *
 */

require_once( dirname( __FILE__ ) . '/class/yams.class.inc.php' );
require_once( dirname( __FILE__ ) . '/yams.module.funcs.inc.php' );

$yams = YAMS::GetInstance();

$activeTemplateList = $yams->GetActiveTemplatesList();
$hideFields = $yams->GetHideFields();
$useMultilingualAliases = $yams->GetUseMultilingualAliases();
$encodingModifier = $yams->GetEncodingModifier();

$langIds = array_merge(
  $yams->GetActiveLangIds()
  , $yams->GetInactiveLangIds()
  );
  
//// yamsRoles is an array mapping which applies roles to each language
//if ( ! is_array( $yamsLanguageRoleMap ) )
//{
//  $yamsLanguageRoleMap = array();
//}
//
if ( $activeTemplateList != '' )
{

  mm_renameField(
    'pagetitle'
    , 'Internal Name'
    , ''
    , $activeTemplateList
    , 'This field is used to identify the document (and its language variants) within the document tree of the MODx Manager. It will not appear anywhere on the document itself.');

  if ( $hideFields )
  {
    // Don't hide the pagetitle because it is used within the modx document tree
    // to identify the page
    mm_hideFields(
      'longtitle,description,introtext,menutitle,content'
      , ''
      , $activeTemplateList
      );
    mm_hideSections(
      'content'
      , ''
      , $activeTemplateList
      );
    if ( $useMultilingualAliases )
    {
      mm_hideFields(
        'alias'
        , ''
        , $activeTemplateList
        );
    }
    else
    {
      $aliasesToHideArray = array();
      foreach ( $langIds as $langId )
      {
        $aliasesToHideArray[]
          = YAMSTVDataToMMName( 'alias_' . $langId, $id, 'tv', $mm_version );
      }
      if ( count( $aliasesToHideArray ) > 0 )
      {
        $aliasesToHide = implode( ',', $aliasesToHideArray );
        mm_hideFields(
          $aliasesToHide
          , ''
          , $activeTemplateList
          );
      }
      unset( $aliasesToHideArray );
    }
  }

  if ( $yams->GetTabifyLangs() )
  {
    foreach ( $langIds as $langId )
    {
      $rolesAccessList = $yams->GetRolesAccessList( $langId );
      $rolesNoAccessList = $yams->GetRolesNoAccessList( $langId );
      
      $langName = $yams->GetLangName( $langId );
      mm_createTab(
        $langName
        , $langId
        , $rolesAccessList
        , $activeTemplateList
        );
      // Get the names and ids of all the multilingual template variables
      // ending in _{langid}
      $result = $modx->db->select(
        'id,name,rank'
        , $modx->getFullTableName('site_tmplvars')
        , 'name LIKE \'%\_' . $modx->db->escape( $langId ) . '\''
        );
      $nRows = $modx->db->getRecordCount( $result );
      
      // Loop over the multilingual tvs and sort into custom and standard.
      // The standard ones are ordered in the normal order.
      // The custom ones are ordered as is (by probably should respect the
      // tv order specified in the database...)
      // For each tv, calculate the name required by ManagerManager
      $standardTVs = array();
      $customTVs = array();
      for ( $i = 0; $i < $nRows; $i++ )
      {
        $idNameArray = $modx->db->getRow( $result );
        $name = $idNameArray['name'];
        $id = $idNameArray['id'];
        $rank = intval( $idNameArray['rank'] );
        switch ( $name )
        {
          case 'pagetitle_' . $langId:
            $standardTVs['1'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            break;
          case 'longtitle_' . $langId:
            $standardTVs['2'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            break;
          case 'description_' . $langId:
            $standardTVs['3'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            break;
          case 'alias_' . $langId:
            if ( $useMultilingualAliases )
            {
              $standardTVs['4'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            }
            break;
          case 'introtext_' . $langId:
            $standardTVs['5'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            break;
          case 'menutitle_' . $langId:
            $standardTVs['6'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            break;
          case 'content_' . $langId:
            $standardTVs['7'] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            break;
          default:
            if ( array_key_exists( $rank, $customTVs) )
            {
              $customTVs[] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            }
            else
            {
              $customTVs[$rank] = YAMSTVDataToMMName( $name, $id, 'tv', $mm_version );
            }
        }
      }
      // sort the standard tvs
      ksort( $standardTVs );
      ksort( $customTVs );

      $nStandardTVs = count( $standardTVs );
      $nCustomTVs = count( $customTVs );

      if ( $nStandardTVs == 0 && $nCustomTVs == 0 )
      {
        continue;
      }

      // Convert to list...
      $tvString = '';
      if ( $nStandardTVs > 0 )
      {
        $tvString .= implode( ',', $standardTVs );
      }
      if ( $nCustomTVs > 0 )
      {
        if ( $nStandardTVs > 0 )
        {
          $tvString .= ',';
        }
        $tvString .= implode( ',', $customTVs );
      }
      // $modx->logEvent( 4, 1, 'Moving tvs to tab ' . $langId . ': ' . $tvString, 'YAMS mm_rules' );

      mm_moveFieldsToTab(
        $tvString
        , $langId
        , $rolesAccessList
        , $activeTemplateList
        );
      if ( $rolesNoAccessList != '!' )
      {
        mm_hideFields(
          $tvString
          , $rolesNoAccessList
          , $activeTemplateList
          );
      }
    }
  }

}

?>



MeiMei

Jane]]>
https://forums.modx.com/thread/95259/bug-managermanager-6-2-not-workin-with-yams-anymore#dis-post-516678 Fri, 12 Dec 2014 11:04:22 +0000 https://forums.modx.com/thread/95259/bug-managermanager-6-2-not-workin-with-yams-anymore#dis-post-516678
<![CDATA[ManagerManager for Revo - Hide templates]]> https://forums.modx.com/thread/45299/managermanager-for-revo---hide-templates?page=3#dis-post-515943
I know that ManagerManager was able to do this quite simply in previous releases of MODx but I am having a heck of a time finding the solution for Revo. I have played around with ’Form Customization’ but to no avail. All I need is a tutorial or a step-by-step. Anyone know of anything like that anywhere?





Here are some resources I have found so far just in case it would come in handy for someone else who knows what they’re doing:
Bob’s Guides - http://bobsguides.com/revolution-permissions.html
Topic: Revo most complicated permissions system - http://modxcms.com/forums/index.php/topic,62298.0.html
Topic: MODx Revolution’s Cheatsheets - http://modxcms.com/forums/index.php/topic,48252.0.html
]]>
https://forums.modx.com/thread/45299/managermanager-for-revo---hide-templates?page=3#dis-post-515943 Mon, 01 Dec 2014 05:32:13 +0000 https://forums.modx.com/thread/45299/managermanager-for-revo---hide-templates?page=3#dis-post-515943
<![CDATA[Add custom page with form in Manager Side...]]> https://forums.modx.com/thread/92091/add-custom-page-with-form-in-manager-side#dis-post-503527
I copied this tutorial but it can't help..
http://rtfm.modx.com/revolution/2.x/developing-in-modx/advanced-development/custom-manager-pages/custom-manager-pages-in-2.3

Kindly help me.

Regards]]>
https://forums.modx.com/thread/92091/add-custom-page-with-form-in-manager-side#dis-post-503527 Fri, 18 Jul 2014 12:17:01 +0000 https://forums.modx.com/thread/92091/add-custom-page-with-form-in-manager-side#dis-post-503527
<![CDATA[(widget) Google maps widget]]> https://forums.modx.com/thread/45258/widget-google-maps-widget#dis-post-488309

This widget allows backend editors to set geolocation on a map.
The result tv will contain the Lat+Lng, which can later be used with your favorite map (whether via php backend or client js, there’s a million ready-made solution around)


googlemap v0.11 - Features:
- Based on Google Maps api v2
- Support multiple maps in single document
- Double click to set marker
- Drag and drop support to move markers
- Address search support (with multiple results)




How to:

1. Copy googlemap folder to /assets/plugins/managermanager/widgets
2. Create one or more TVs that will hold the geolocation (with 'Input Type' as 'Text')
3. Add rule to your mm_rules:  mm_widget_googlemap(fields, apiKey, default, roles, templates)
(mandatory) 'fields' is the TV name(s)
(mandatory) 'apiKey' (free) Google Maps API Key (optional when working on localhost dev server)
(optional) 'default' is the default position of the map

Examples:
minimal (note, no api works only on localhost afaik):
mm_widget_googlemap('someTv');

full (2 maps, api key, default location):
mm_widget_googlemap('eventLocation,nearestTrainStation','long-long-api-key','35.1516,126.8665');




Good luck]]>
https://forums.modx.com/thread/45258/widget-google-maps-widget#dis-post-488309 Fri, 24 Jan 2014 02:01:59 +0000 https://forums.modx.com/thread/45258/widget-google-maps-widget#dis-post-488309
<![CDATA[MM + hidden fields]]> https://forums.modx.com/thread/79113/mm-hidden-fields#dis-post-436078
When i have a extra tab (backend) only on the homepage with some TV's into it to show somekind of slidingbanner, do i have to use phx in the template to show the banner and style or is there a other way arround?

(home has the same Template as other pages)]]>
https://forums.modx.com/thread/79113/mm-hidden-fields#dis-post-436078 Thu, 06 Sep 2012 04:53:45 +0000 https://forums.modx.com/thread/79113/mm-hidden-fields#dis-post-436078
<![CDATA[Manual JQuery Source]]> https://forums.modx.com/thread/75538/manual-jquery-source#dis-post-418341
The solution is to replace that variable with $js_src_type, which is the one defined.]]>
https://forums.modx.com/thread/75538/manual-jquery-source#dis-post-418341 Sun, 01 Apr 2012 08:59:54 +0000 https://forums.modx.com/thread/75538/manual-jquery-source#dis-post-418341
<![CDATA[Edit chunks and TV's in ManagerManager?]]> https://forums.modx.com/thread/75482/edit-chunks-and-tv-s-in-managermanager#dis-post-418236 I want to link to chunks and TV's for them to edit.

Can this be done? I can't find any info on this.

Thanks
BG66]]>
https://forums.modx.com/thread/75482/edit-chunks-and-tv-s-in-managermanager#dis-post-418236 Sat, 31 Mar 2012 07:01:53 +0000 https://forums.modx.com/thread/75482/edit-chunks-and-tv-s-in-managermanager#dis-post-418236
<![CDATA[default values not working]]> https://forums.modx.com/thread/74733/default-values-not-working#dis-post-414671
mm_default('pagetitle', 'return "111111111";', '', '8' , true);

OR

mm_default('pagetitle', '111111111', '', '8');

are not working when I create a new document in a container.

Thank you

]]>
https://forums.modx.com/thread/74733/default-values-not-working#dis-post-414671 Sun, 04 Mar 2012 11:50:32 +0000 https://forums.modx.com/thread/74733/default-values-not-working#dis-post-414671
<![CDATA[MM Evo > Set width of the fields]]> https://forums.modx.com/thread/45300/mm-evo-set-width-of-the-fields#dis-post-405672 there’s a way to set the width of the custom fields?

I have a standard Title field of 305px and a custom Year field of 1228px! (see attached screenshot)
If is not clear: How can i make the Year field of the same width of Title field?

Sorry for my poor English!

Thanks]]>
https://forums.modx.com/thread/45300/mm-evo-set-width-of-the-fields#dis-post-405672 Wed, 04 Jan 2012 12:24:03 +0000 https://forums.modx.com/thread/45300/mm-evo-set-width-of-the-fields#dis-post-405672
<![CDATA[Is it possible, that MM can't move checkbox TVs to a tab?]]> https://forums.modx.com/thread/45289/is-it-possible-that-mm-can-t-move-checkbox-tvs-to-a-tab#dis-post-399579
Example:
mm_moveFieldsToTab(
’listChildren,listParents,listSiblings,listLatestArticle,minisitemapParent,listMinisitemap’,
’ArtikelLayout’,
’’,
’’
);

In above list every TV except "minisitemapParent" is a checkbox. They are not moved by mm to the "ArtikelLayout" tab. "minisitemapParent" (a text field) is moved to the tab as expected.

If I change the TV Type of listChildren from Check Box to something else, also works as expected. If I switch the type back, it is again ignored by mm.

Is there anyone out there that has a similar problem?

Regards,

pepebe
]]>
https://forums.modx.com/thread/45289/is-it-possible-that-mm-can-t-move-checkbox-tvs-to-a-tab#dis-post-399579 Thu, 10 Nov 2011 08:59:26 +0000 https://forums.modx.com/thread/45289/is-it-possible-that-mm-can-t-move-checkbox-tvs-to-a-tab#dis-post-399579
<![CDATA[mm_widget_accessdenied: "Cannot read property 'tabPage' of null"]]> https://forums.modx.com/thread/45280/mm-widget-accessdenied-cannot-read-property-tabpage-of-null#dis-post-261402
i get an error displayed when i use the accessdenied-widget with MODx Evo 1.0.4
ManagerManager: An Error has occurred - Cannot read property ’tabPage’ of null
This is my rule:
mm_widget_accessdenied(’6’, ’Please select another document to edit’, ’3’);
after clicking "ok" on that error message, the "Please select another document to edit"-text is displayed correctly.

does anyone know why, and/or how to fix this?

thanks, j]]>
https://forums.modx.com/thread/45280/mm-widget-accessdenied-cannot-read-property-tabpage-of-null#dis-post-261402 Sun, 07 Aug 2011 10:59:19 +0000 https://forums.modx.com/thread/45280/mm-widget-accessdenied-cannot-read-property-tabpage-of-null#dis-post-261402
<![CDATA[ManagerManager and Quick Manager]]> https://forums.modx.com/thread/45301/managermanager-and-quick-manager#dis-post-261454
I want to be able to hide the Manager Tab and the Create Resource Tab to specific users.

Thanks in advance.]]>
https://forums.modx.com/thread/45301/managermanager-and-quick-manager#dis-post-261454 Thu, 07 Jul 2011 02:35:00 +0000 https://forums.modx.com/thread/45301/managermanager-and-quick-manager#dis-post-261454
<![CDATA[mm_moveFieldsToTab('show_in_menu', 'settings'); not longer working]]> https://forums.modx.com/thread/45274/mm-movefieldstotab-show-in-menu-settings-not-longer-working#dis-post-261377 ]]> https://forums.modx.com/thread/45274/mm-movefieldstotab-show-in-menu-settings-not-longer-working#dis-post-261377 Wed, 06 Jul 2011 04:17:44 +0000 https://forums.modx.com/thread/45274/mm-movefieldstotab-show-in-menu-settings-not-longer-working#dis-post-261377 <![CDATA[MM version 0.3.9 + Evo 1.0.5 error]]> https://forums.modx.com/thread/45293/mm-version-0-3-9-evo-1-0-5-error#dis-post-261430
With the above versions I get this error when I go to edit a document:

"ManagerManager: An error has occurred: TypeError - d.set is not a function" (FF & Opera)
"ManagerManager: An error has occurred: TypeError - object doesn’t support this property or method" (IE7)
"ManagerManager: An error has occurred: TypeError - result of expression ’d.set’ [undefined] is not a function." (Safari)

And firebug tells me:

"dp.value is undefined
var dateVals = dp.value.split(’ ’); in datepicker.js (line 57)"



Any ideas why this is happening and how to solve it?

Thanks
Mike



Server: Linux 2.6.31.9
PHP 5.2.9
MySQL 5.0.91
PDO Driver for MySQL, client library version 5.0.91
No opcode caching ( I don’t think)

]]>
https://forums.modx.com/thread/45293/mm-version-0-3-9-evo-1-0-5-error#dis-post-261430 Sat, 04 Jun 2011 04:40:16 +0000 https://forums.modx.com/thread/45293/mm-version-0-3-9-evo-1-0-5-error#dis-post-261430
<![CDATA[mm_changeFieldHelp does not work for me in Modx Evo 1.0.5]]> https://forums.modx.com/thread/45298/mm-changefieldhelp-does-not-work-for-me-in-modx-evo-1-0-5#dis-post-261442
mm_widget_showimagetvs(); // Always give a preview of Image TVs
mm_hideFields('content', '', '7'); // Hide the content field for documents using template ID "7"
mm_hideFields('longtitle'); // Hide the longtitle field 
mm_hideFields('description');
mm_hideFields('link_attributes'); 
mm_renameTab('settings', 'Publication settings');
mm_changeFieldHelp('pagetitle', 'This text will appear in the browser title bar and bookmarks'); 
mm_changeFieldHelp('alias', 'For search-engine and user friendly urls- appears after emptybiker.com in the address bar'); 
mm_changeFieldHelp('introtext', 'A concise and informative sentence or two that will appear in search engine results to describe the page'); 


Any help is greatly appreciated!!

Teri]]>
https://forums.modx.com/thread/45298/mm-changefieldhelp-does-not-work-for-me-in-modx-evo-1-0-5#dis-post-261442 Mon, 16 May 2011 03:11:31 +0000 https://forums.modx.com/thread/45298/mm-changefieldhelp-does-not-work-for-me-in-modx-evo-1-0-5#dis-post-261442
<![CDATA[mm_widget_showimagetvs() bug with 1.0.5?]]> https://forums.modx.com/thread/45297/mm-widget-showimagetvs-bug-with-1-0-5#dis-post-261440
Only bug report I found about showimagetvs + 1.0.5 was this:
http://bugs.modx.com/issues/3582

Same thing?]]>
https://forums.modx.com/thread/45297/mm-widget-showimagetvs-bug-with-1-0-5#dis-post-261440 Mon, 18 Apr 2011 04:42:01 +0000 https://forums.modx.com/thread/45297/mm-widget-showimagetvs-bug-with-1-0-5#dis-post-261440
<![CDATA[How to report ManagerManager bugs]]> https://forums.modx.com/thread/45296/how-to-report-managermanager-bugs#dis-post-261438
https://github.com/ncrossland/ManagerManager/issues

If they are reported elsewhere (e.g. the ModX core bugbase, or just on the forums) they may be missed.]]>
https://forums.modx.com/thread/45296/how-to-report-managermanager-bugs#dis-post-261438 Mon, 11 Apr 2011 03:24:17 +0000 https://forums.modx.com/thread/45296/how-to-report-managermanager-bugs#dis-post-261438