Go Back   Mosets Community > Mosets Tree 3.x > Discussions, Troubleshooting & Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-27-2016, 04:39 AM
bernabpelsfemena bernabpelsfemena is offline
Mosets'd
 
Join Date: Jun 2015
Posts: 15
Default Add custom field in the module "mod_mt_listings"

Hello,
I need to call a custom field in the module "mod_mt_listings"
If I add this:
HTML Code:
echo $l->city;
Displays the result of the field "city"

but I need to show the custom field "$ custom field id = 44;"

We can help you indicating that I insert code to display the "custom field" with id 44?

Thank you very much for yopur help
Regards
Reply With Quote
  #2  
Old 10-27-2016, 10:01 AM
dknight dknight is offline
Mosets Team - Lead Developer
 
Join Date: Dec 2004
Posts: 26,468
Default

Hey,

Here's how:
PHP Code:

echo $fields[$l->link_id]->getFieldById(44)->getOutput(); 
or:
PHP Code:

$field_44 
$fields[$l->link_id]->getFieldById(44);
echo 
$field_44->getCaption();
echo 
': ';
echo 
$field_44->getOutput(); 
__________________
Lee
Lead Developer
Mosets.com - Quality Joomla! Solutions
Reply With Quote
  #3  
Old 10-27-2016, 11:33 AM
bernabpelsfemena bernabpelsfemena is offline
Mosets'd
 
Join Date: Jun 2015
Posts: 15
Default

Hello dknight,
Now works well, good job

Thank you very much for your help
Regards
Reply With Quote
  #4  
Old 10-31-2016, 12:13 PM
dknight dknight is offline
Mosets Team - Lead Developer
 
Join Date: Dec 2004
Posts: 26,468
Default

You're most welcome!
__________________
Lee
Lead Developer
Mosets.com - Quality Joomla! Solutions
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add custom field in "mod_mt_listings" module bernabpelsfemena 3rd party addons & Custom Jobs 0 10-27-2016 04:37 AM
how to add a field in the Custom Field editor for Basic Settings ? bahattab Discussions, Troubleshooting & Problems 0 02-05-2015 12:13 AM
Make custom field logo as default featured listing image in module mohammaddourou Discussions, Troubleshooting & Problems 1 07-18-2014 01:13 AM
How to add own styling class to custom field? stevenkong Discussions, Troubleshooting & Problems 0 12-09-2011 12:50 AM


All times are GMT +8. The time now is 03:13 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.