We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17635
    • 3 Posts
    preferable i’m looking for an indepth manual/example of a custom module creation.
    i find it very hard to find more information on this subject by looking at the manuals,
    talking to people at IRC #modx channel.

    This where i stand but i’m desperatly searching for more advance functions..
    modx version 0.9.6.3 Evolution

    // -- currently known functionality
    include($modx->config[’base_path’]."assets/modules/module_admin/module_admin.php");

    $admin_object = new module_admin();
    $admin_object->modx = $modx;
    $admin_object->table = $admin_object->modx->getFullTableName(’Table_name’) ;
    $admin_object->admin_title = ’Custom module administration’;

    $admin_object->admin_query = ’query including joins where needed’;

    $admin_object->admin_columns = array(
    // all fields to show in the list
    ’table_column_name’=>’user_friendly_name’
    ,’xxx’=>’yyy’
    );

    $admin_object->new_link = ’Caption for new object’;
    $admin_object->admin_empty = ’Caption for no records found’;
    $admin_object->edit_page_title = ’Caption for editing page’;
    $admin_object->new_page_title = ’Caption for creating object page’;

    $arrDropDownItems = $admin_object->populateDropdown( array( ’unique identifier’, ’table_column_name’ ), ’modx_table_name’, ’conditional equation (true/false as result)’, ’user_friendly_name’, ’ASC’ ) ;

    $admin_object->edit_fields = array(
    ’table_column_name1’ => array( ’type’ =>’text’, ’label’ => ’user_friendly_name’, ’validate_compulsory’ => ’yes’),
    ’table_column_name2’ => array( ’type’ =>’dropdown’, ’label’ => ’user_friendly_name’, ’values’ => $arrDropDownItems, ’validate_compulsory’ => ’yes’),
    );

    print $admin_object->display();

    // -- wanted information on the following functionality, and more if available
    $admin_object->admin_items_per_page
    $admin_object->param_error
    $admin_object->filter_fields
    $admin_object->Edit_query
    etcetera..

      Web Architect
      • 4971
      • 964 Posts
      Serch for the MMM module... ManagerManager Manager...
      it is a module to manage the ManagerManager add-on.

      It is simple, has good funcionality and it is good to
      learn how to implement modules...
        Website: www.mercologia.com
        MODX Revo Tutorials:  www.modxperience.com

        MODX Professional Partner
      • I have a tutorial for creating a database management module http://www.sottwell.com/create-module.html
          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
          • 17635
          • 3 Posts
          First of all i thank you kindly for the responses. however this is not what i’m looking for.

          charliez :
          do you have a link or something to describe what you mean (i cannot find anything good Modx related answers from google)

          scotwell :
          i already found your short tutorial but unfortunaltely this is not what i’m looking for.

          í am looking for help on the part of the coding. all the graphical parts i understand (i think) but i desperatly need info on the coding specifics.. (like the documentation of the modx admin object (doxygen like))
            Web Architect
            • 17635
            • 3 Posts
            Somehow i was looking totally wrong at the problem..

            it seems there is a module called "MODx Generic Administration Module" ..

            this is where i need some help on.. anybody knows the creator ?
            the basic help is not sufficient..

              Web Architect