Re: [oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Mirza Ahtasham Ahmad
Hi, Here the code from artile_extent.tpl for the buttons.  |  I only changedd the aoc value for my new button and added an extra check for that in article_extend.php } elseif ($iAoc == 3) { $oArticleBundleAjax = oxNew('article_facility_ajax'); $this->_aViewData['oxajax'] = $oArticleB

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Mirza Ahtasham Ahmad
Hi Tim, Here is my _getQuery() method in article_facility_ajax /** * Returns SQL query for data to fetc * * @return string */ protected function _getQuery() { $sFacilitiesTable = $this->_getViewName('facilities'); $sO2CView = $this->_getViewName('ob

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Tim Aniol
Hi Mirza what does the _getQuery() Method in your ajax class do? If you have copied the article_extend_ajax class then it'll be select oxcategories. BR Tim Viele Grüße, Tim Aniol Senior Software-Entwickler Tel.: 0911 / 1809 45 - 30 an...@solutiondrive.de PGP-Key: F2979268

[oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Mirza Ahtasham Ahmad
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 ins