I'm creating a module in joomla 2.5, I would like to fetch data from a component to a module configuration like what would happen to this one:
<field
name="catid"
type="category"
extension="com_content"
published=""
label="Category"
description="A content category"/>
I'm aware that this specific sample code from my module XML configuration file would able to fetch a list of categories from the component com_content, but I couldn't figure out where it's coming from, how does joomla do this? could I also enable my custom components to do it? if yes how? I'm not sure if this was asked before in this forum but I'm really having a hard time to figure it out if you could give me a link that will teach me how to do it that would be great. :)