Support Forums

Add if/else Extra Field to showlistings.tpl

This is a discussion on Add if/else Extra Field to showlistings.tpl within the Customizations forums, part of the Developer Forums category; Using Designer V4.1.9 with the default template Hi, I have setup parent child extra fields for Location (parent field), State ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-27-2010, 05:06 AM   #1
Customer
 
Join Date: Sep 2008
Posts: 46
Rep Power: 10
skyblue is on a distinguished road
Default Add if/else Extra Field to showlistings.tpl

Using Designer V4.1.9 with the default template

Hi,

I have setup parent child extra fields for Location (parent field), State and Country (both child fields).

The Extra field names and ID�s for each are as follows:

Location: id 11 (Parent)
State: id 12 (child)
Country: id 13 (child)

I�m trying to ad a single column to the showlistings.tpl to display either the State or the Country and have been unsuccessful using the following code.

Code:
{if {get_extra_field id=$entry.id fid=11} $entry.title==" State"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{get_extra_field id=$entry.id fid=12}</td>	
{else}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{get_extra_field id=$entry.id fid=13}</td>
{/if}
I think the issue is in the first line however I'm not sure what the correct statement should be. Any help would be much appreciated.

Thanks
__________________
__________________
Using Designer V4.09 & 4.1.9
skyblue is offline   Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra Field Search / Save Extra Field to Short Desciption tlombard Technical Support 8 03-04-2010 06:18 PM
Display Extra Field in Showlistings.php nagrap2 Technical Support 8 05-05-2009 06:13 PM
Display Extra Field in Showlistings.php jason1971 Technical Support 0 04-19-2009 04:03 AM


All times are GMT -4. The time now is 05:11 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0