Hi Everyone,

I have an extra relation for articles. The new Table is named facilities
and the relation table is object2facilities. I want to assign the these
facilities to the articles just like the relation object2category.

oxobject2category and mein object2facility are exactly the same just
instead of catnid there is facilityid.

For the assigning purpose I copied the "assign categories" button in the
article_extend module. I adjusted/created the new popup and ajax files for
it too (simply copied the one which were used for assign categories)

Now the problem is, that when I click on my new button, "assign
facilities", the popup shows up, but it loads the categories into the left
container of the popup. I need to load facilities from my new facilities
table. I cant figure it out where those are loaded. Can anybody help me
here where I need to load my facilities and pass it to the popup template??


PS: In my new ajax module (article_facility_ajax) I have adjusted the
Columns array and it looks like this.

    /**
     * Columns array
     *
     * @var array
     */
    protected $_aColumns = array('container1' => array( // field , table,
      visible, multilanguage, ident
        array('title', 'facilities', 1, 1, 0),
        array('info', 'facilities', 1, 1, 0),
        array('oxid', 'facilities', 0, 0, 0),
        array('oxid', 'facilities', 0, 0, 1)
    ),
                                 'container2' => array(
                                     array('title', 'facilities', 1, 1, 0),
                                     array('info', 'facilities', 1, 1, 0),
                                     array('oxid', 'facilities', 0, 0, 0),
                                     array('oxid', 'object2facility', 0, 0,
1),
                                     array('oxtime', 'object2facility', 0,
0, 1),
                                     array('oxid', 'facilities', 0, 0, 1)
                                 ),
    );



Looking forward to your help.

Thanks,




*Mit freundlichen Grüßen | **Warm Regards**,*

Mirza Ahmad
M +4917645387460 | Skype: ahtasham82
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to