[solved]dynamic module parameters

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
User avatar
wojtekkk87
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Thu Mar 29, 2007 6:25 pm
Location: Poland
Contact:

[solved]dynamic module parameters

Post by wojtekkk87 » Mon Jul 21, 2008 12:16 pm

Hallo,
Short question... It is possible to have dynamic parameter in params page of my module?

e.g. I would like to add <select> element with articles categories or sections but it's not possible with xml manifest file...

Is there another posibility?

I hope You know what i mean...

edit:
Yes this is possible! It looks like below (in my case);)

Code: Select all

<param type="sql" name="groupid" label="GROUPID" description="GOUPIDDESC" query="SELECT id AS value, groupname AS groupid FROM #__tg_groups" />
I'm trying to understand ...

User avatar
raashell
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Feb 19, 2008 6:06 pm
Location: Portland, OR
Contact:

Re: [solved]dynamic module parameters

Post by raashell » Thu Aug 28, 2008 12:23 am

Thanks for posting this. I ran into the same problem and wasn't able to figure out how to correctly format the sql parameter. Nothing came up until I changed the parameter id and name to reflect the SQL 'AS' alias.
http://www.bluebridgedev.com -- Small Business Web Development

User avatar
alan-s
Joomla! Explorer
Joomla! Explorer
Posts: 305
Joined: Mon Aug 22, 2005 11:39 am
Location: UK
Contact:

Re: [solved]dynamic module parameters

Post by alan-s » Thu Oct 23, 2008 3:17 pm

addendum...

Although I could generate a select box froma query the id was blank until you assign the field selected as 'value' eg 'SELECT id as value, title ' etc.


hth
if you don't know where you're going you are bound to end up somewhere....

Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

CZBios
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue May 19, 2009 3:37 pm

Re: [solved]dynamic module parameters

Post by CZBios » Wed Nov 07, 2012 9:42 pm

for Joomla! 2.5 here:

Code: Select all

http://docs.joomla.org/SQL_form_field_type


Locked

Return to “Joomla! 1.5 Coding”