php - Fetching data from a component to module in joomla -


i'm creating module in joomla 2.5, fetch data component module configuration happen one:

<field name="catid" type="category" extension="com_content" published="" label="category" description="a content category"/> 

i'm aware specific sample code module xml configuration file able fetch list of categories component com_content, couldn't figure out it's coming from, how joomla this? enable custom components it? if yes how? i'm not sure if asked before in forum i'm having hard time figure out if give me link teach me how great. :)

when create component it's various models, can create custom forms them you're aware. lets joomla! lot of backend form work - have define contents/structure form in xml file.

of course, joomla! can't know every data type forms need extensible. end joomla! provides support custom form field types... these defined alongside forms directory in model, in fields directory.

by defining extension , type value tell joomla! use specific extension's field type. example field joomla /administrator/components/com_content/models/fields/cateogry.php

you can read more "adding new field type" in tutorial on creating component.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -