فتحات العرب Joomla! • Index page: Joomla! 3.x Coding • Help for reading a custom attribute within a module

Sunday, April 19, 2015

Joomla! 3.x Coding • Help for reading a custom attribute within a module

hallo. I am stuck here... forgive my ignorance :-[



I am building a module and within he lper.php i am trying to get some article parameters like 'title' and custom 'attribs' (where i have a custom field in - attribs named slides, that has url's of images)

I am managing to get the article id (with the code below)

Code:

$data = JFactory::getApplication()->input;

$foo = $data->getInt('id', '', ''); //works ok

return $foo;





But no luck with other's like 'title', 'alias', 'attribs'

Code:

$data = JFactory::getApplication()->input;

$foo = $data->getString('title', '', ''); // not working

return $foo;





what am i doing wrong?



* my custom module is loaded ok in an article as i want

Statistics: Posted by dimpapadop — Sun Apr 19, 2015 8:32 am








via Joomla! http://ift.tt/1DWjNW0

No comments:

Post a Comment