Specify a custom metadata file for a custom view

Hello

I checked a few answers related to this but not sure what I’m doing wrong. I created a custom view file

custom/modules/strg_storage/views/view.bulkstorageedit.php


require_once 'include/MVC/View/views/view.edit.php';

class strg_storageViewBulkstorageEdit extends ViewEdit
{

    function display() {

        echo "Aloha!";

        parent::display();

    }

}

Then registered it using:

modules/strg_storage/Ext/ActionViewMap/bulkstorageedit.php


$action_view_map['bulkstorageedit'] = 'bulkstorageedit';

The new view loads just fine when I navigate to it, but I cannot seem to be able to specify a custom metadata file.

I created the following:

strg_storage/metadata/bulkstorageeditviewdefs.php and populated it with:


$viewdefs ['strg_storage'] =
array (
  'bulkstorageedit' =>
.
.
.

I’m assuming it’s the ‘bulkstorageedit’ => that’s causing the problem, but I tried every possible combo under the sun, but it the view simply ignores the file and uses the “default” custom/modules/strg_storage/metadata/detailviewdefs.php instead…

Any help is greatly appreciated

Figured it out, will report tomorrow

Voila

https://www.youtube.com/watch?v=dOKwprqbRDs