I'm creating a products component in Joomla 2.5 and the client wants all the products to show up in a sub-menu to the existing menu item Products, this has to be done automatically through the products component.
The creation of products is done through Joomla's back-end through custom component views, controllers and models.
I can easily create the menu item given the product's id and name (for menu display title), my problem lies in obtaining the product id when I'm adding an entirely new product to the database. Is there any method in the controller or model that I can overload? Can this id somehow be obtained using some model method I've missed?
Cheers, grouse