Passing parameters to a component - Joomla! Forum - community, help and support
can 1 pass parameters component @ run-time?
i've written component (com_showpic) designed show picture , accompanying text. (it invoked user clicking on thumbnail image). component reads data text file (which contains information available pictures - size, title, price etc.) 2d array, output needs select correct line of array according picture number. ideally have call component follows - , let's want picture number 23:
index.php?option=com_showpic&task=view&pic_num=23
clearly can set component-wide parameter called 'pic_num' @ installation time - , default value can accessed jcomponenthelper - how can 1 update @ run-time via parameter?
help appreciated.
johnelk
i've written component (com_showpic) designed show picture , accompanying text. (it invoked user clicking on thumbnail image). component reads data text file (which contains information available pictures - size, title, price etc.) 2d array, output needs select correct line of array according picture number. ideally have call component follows - , let's want picture number 23:
index.php?option=com_showpic&task=view&pic_num=23
clearly can set component-wide parameter called 'pic_num' @ installation time - , default value can accessed jcomponenthelper - how can 1 update @ run-time via parameter?
help appreciated.
johnelk
Comments
Post a Comment