I have made a custom grid in magento that displays saved video urls and its working. But i want to show only records where the urlid
is for example 3
. Here is my _prepareCollection
function
protected function _prepareCollection()
{
// Get and set the collection for the grid
$collection = Mage::getResourceModel('drecomm_productvideo/video_collection');
//what should i put in here, addFieldtoSelect?
$this->setCollection($collection);
return parent::_prepareCollection();
}
my grid extends from Mage_Adminhtml_Block_Widget_Grid
and there is no addFieldToFilter
function in that class.