Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Basic Mult-table module
 
mweather
Member
 
Total Posts:  33
Joined:  2007-08-31
 

I’m trying to create a custom photo gallery module using the instructions in http://www.magentocommerce.com/wiki/custom_module_with_custom_database_table.

The guide works fine with some minor modifications, but I need two database tables, and I can’t figure out how to get at the data from the second table.

Basically I have gallery, and gallery_images. gallery_images has a foreign key to gallery, so each gallery can have multiple images.

I can display the info in gallery just fine, but how do I display each gallery’s gallery_image?

I’ve been looking at magento’s poll module for inspiration, but so far nothing has worked.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top