Hi, thanks for the reply, the code didn't show though.
There seems to be a bug with this forum where it does not properly parse the BB code tags, especially if there are more than 1 set of code tags in the posting.
I have reported it, but it has not been fixed yet. Try hitting the refresh button on your browser 3 or 4 times until the code is displayed.
I have also posted it below without the BB code tags.
To see the structure of $entry,
Try putting the code
$my_module->Debug('$entry',$entry,__FILE__,__CLASS__,__LINE__);
in the foreach ($entries as $entry) loop.
You should get something like;
Debug Output
File = W:\www\test1\Joomla-v1.5.x\modules\mod_sobi2simplefeatured\tmpl\default.php
Line = 36
Class =
Variable = $entry
Array
(
[itemId] => 1
[title] => Test’1
[icon] => 1_ico.jpg
[image] => 1_img.jpg
[hits] => 109
[fieldId1] => Street 4
[fieldLabel1] => Street
[fieldId2] => Postcode 1
[fieldLabel2] => Postcode
[fieldId3] => City 6
[fieldLabel3] => City
[fieldId6] => Country 1
[fieldLabel6] => Country
[href] =>
http://test1.com/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=1&Itemid=73)
Where for;
[fieldId
x] and [fieldLabel
x]
x = the ID Number of the SOBI2 Custom Field
Refer Joomla Administrator->Components->SOBI2->Configuration->Custom Fields Manager
Note: [itemId] value is
NOT Joomla Itemid, it is really sobi2id value.
So to echo a specific Custom Field, you need to know it's ID number as assigned by the Custom Fields Manager.
Let us assume you want to echo the field with ID=1
then you would use the code
echo $entry['fieldId1'];