Go Back   Mosets Community > Mosets Templates > Kinabalu

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-04-2016, 03:46 AM
jespersderlind jespersderlind is offline
Mosets'd
 
Join Date: Apr 2016
Posts: 5
Default Custom field in listing title

Hello i want to use a custom field directly after the title in the same row. Like it does for with feature, popular and new listings. Is this possible to achive?

Best regards!
Attached Images
File Type: jpg mtreeHelp.jpg (19.5 KB, 56 views)
Reply With Quote
  #2  
Old 11-05-2016, 06:36 AM
jespersderlind jespersderlind is offline
Mosets'd
 
Join Date: Apr 2016
Posts: 5
Default

Solved my problem by:

1. creating a custom field,
2. Inserted this code besides the code displaying the title in my templates file "sub_listingSummary.tpl.php", in my case line 55. changed the id to my custom fields id.

$miljo = $link_fields->getFieldById(70);
if(!is_null($miljo) && $miljo->hasValue()) { echo '<span class="miljo">' . $miljo->getOutput(2) . '</span>'; }
?></span><?php

3. hidd the custom field from displaying on default place aswell by adding the custom field id on line 5.
$skipped_field_ids = array(70);

Last edited by jespersderlind; 11-05-2016 at 06:38 AM.
Reply With Quote
  #3  
Old 11-07-2016, 10:01 AM
dknight dknight is offline
Mosets Team - Lead Developer
 
Join Date: Dec 2004
Posts: 27,205
Default

Glad you figured this out and thanks for sharing!
__________________
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
Using custom field values in listing titles not working jaysomerville8610 Discussions, Troubleshooting & Problems 2 02-12-2015 04:24 AM


All times are GMT +8. The time now is 04:47 AM.

Copyright © 2005-2010 Mosets Consulting

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