Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
Template cell 'listing_image' is not defined!

 

 


pilotchris84
User

Sep 24, 2008, 2:16 PM

Post #1 of 6 (5789 views)
Shortcut
Template cell 'listing_image' is not defined! Can't Post

I am in the admin panel and attempting to upload a photo for a homepage. I receive this message: " Template cell 'listing_image' is not defined! " when I use the image manager or attempt to save the homepage.

Thanks!

Chris


Donna
Staff / Moderator


Sep 24, 2008, 3:52 PM

Post #2 of 6 (5779 views)
Shortcut
Re: [pilotchris84] Template cell 'listing_image' is not defined! [In reply to] Can't Post

Hi Chris,

The listings template has two template cells so that you can display images differently -- they are, listing_image (a listing with an image uploaded to it), listing_noimage (a listing without an image).

Each of these template cells must exist in your publish listings template, since these will be used to create your listing page. Without those templates, Listings Manager can't create files as it doesn't know how you want your images to display, or what to display if there are no images.

Take a look at the default templates, and you'll see some of the required code I mentioned in there. Try copying & pasting those bits into your template, and it should get things publishing. :)

Donna

--
support@interactivetools.com


pilotchris84
User

Dec 3, 2008, 4:38 AM

Post #3 of 6 (5520 views)
Shortcut
Re: [Donna] Template cell 'listing_image' is not defined! [In reply to] Can't Post

Thanks for your help Donna. Sorry it took me so long to respond. I have been busy getting married :).

I am very confused. I am not a programmer so please bear with me. Here is the code from the publish_listing.html page. As far as I can tell outside of the notes the "image" and "no_image" placeholders are not present. Am I even in the correct place? I don't see the "listing_image" that is apparently not defined at all. Did I do something that messed up the normal process of the script? I uploaded a picture for one of the listings (worked once...took a couple of tries) but now all I get is the same message about the listing_image not being defined.

Thanks for your help.

Chris

<!-- templatecell : placeholders -->
<!--

Placeholders available on this page:

cgiurl - script filename (for use in form tags)
homepage_url - URL of homepage directory
listing_url - URL of listing directory
search_url - URL of search engine

images - list of images (created using templatecells)
file - image filename (used in "image" templatecell)
thumbnail - thumbnail filename (used in "image" templatecell)
desc - image caption (used in "image" templatecell)
thumbnail_width - width of thumbnails
thumbnail_height - height of thumbnails

lfieldX - listing field value of field X, X is a number from 1 to 75
listing_file - listing filename
listing_num - listing number

hfieldX - homepage field value of field X, X is a number from 1 to 50
user_num - user number
user_name - user name
user_file - user homepage filename

Templatecells on this page:

image - displayed for each homepage images
no_images - displayed if there are no homepage images

You need to append special suffixes to placeholder names when using them in certain HTML constructs.

In links, append _ue e.g. <a href="$lfield5_ue$">
In form values, append _he e.g. <input name="x" value="$lfield5_he$">
In javascript, append _je e.g. <script>document.write("$lfield5_je$");</script>

-->
<!-- /templatecell : placeholders -->

<html><head>
<title>$lfield1$</title>
<meta name="robots" content="index,follow">
<link href="$homepage_url$/lifeinthebigapple.css" rel="stylesheet" type="text/css">
</head>
<BODY >

<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14"><img src="$homepage_url$/images/lifeinthebigapple_04.jpg" width="14" height="63" alt=""></td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><a href="http://www.lifeinthebigapple.com/" class="headera">Home</a> </td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="http://www.lifeinthebigapple.com/who_we_are.html" class="headera">Who We Are </a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="http://www.lifeinthebigapple.com/listman/exec/search.cgi" class="headera">Search Our Listings </a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="http://www.lifeinthebigapple.com/listman/homepages" class="headera"> AGENTS</a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="http://www.lifeinthebigapple.com/resources.html" class="headera">RESOURCES </a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="http://www.lifeinthebigapple.com/contact_us.html" class="headera">Contact Us</a></td>
</tr>
</table></td>
<td width="14"><img src="$homepage_url$/images/lifeinthebigapple_08.jpg" width="14" height="63" alt=""></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"><img src="$homepage_url$/images/spacer.gif" width="15" height="100"></td>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="$homepage_url$/images/lifeinthebigapple_11.jpg" width="937" height="152" alt=""></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>

<center>

<table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td><div align=right>
<font face="ms sans serif" size=1>
<a href="$homepage_url$">Our Agents</a> -
<a href="$listing_url$">Our Listings</a> -
<a href="$search_url$">Search Listings</a>
</font><br>
</div>
</td>
</tr>
</table>


<table border=0 cellspacing=0 cellpadding=0 width=580>
<tr><td><font face="arial,ms sans serif" size=3><b>Our Listings : $lfield1$</b></font></td></tr>
</table>

<br>
<table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td rowspan=20 valign=top align=center width=165>

<font face="arial" size=2>LISTING PHOTOS</font><br>
<font face="arial" size=1><b>Click photo to enlarge</b></font><br><br>

<!-- template insert : $images$ -->

<!-- templatecell : image -->
<p><a href="$listing_url$/images/$file$" target="_blank"><img src="$listing_url$/images/$thumbnail$" width=$thumbnail_width$ border=1 alt="Photo"></a><br>
<font face="ms sans serif" size=1>$desc$</font><br>
<!-- /templatecell : image -->

<!-- templatecell : no_images -->
<p>
<table border=1 cellspacing=0 cellpadding=0 width=140 height=100>
<tr>
<td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=4><b>Photo<br>Not<br>Available</b></font></td>
</tr>
</table>
<!-- /templatecell : no_images -->


</td>
<td valign=top>

<font face="ms sans serif" size=1>MLS # $lfield2$</font><br>
<font face="ms sans serif" size=3><b>$lfield1$ ($lfield5$)</b></font><br>
<font face="ms sans serif" size=1>$lfield3$, $lfield4$</font><br><br>
<font face="ms sans serif" size=2>$lfield7$</font><br>

<p>
<table border=0 cellspacing=2 cellpadding=0 width=100%>
<tr>
<td width=25%><font face="ms sans serif" size=2>Type:&nbsp;</font></td>
<td width=25%><font face="ms sans serif" size=2>$lfield8$</font></td>
<td width=30%><font face="ms sans serif" size=2>Near School:&nbsp;</font></td>
<td width=20%><font face="ms sans serif" size=2>$lfield16$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Rooms:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield9$</font></td>
<td><font face="ms sans serif" size=2>Near Transit:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield17$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Bathrooms:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield10$</font></td>
<td><font face="ms sans serif" size=2>Ocean View:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield18$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Stories:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield11$</font></td>
<td><font face="ms sans serif" size=2>Lake View:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield19$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Square Feet:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield12$</font></td>
<td><font face="ms sans serif" size=2>Mountain View:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield20$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Lot Size:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield13$</font></td>
<td><font face="ms sans serif" size=2>Ocean Waterfront:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield21$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Age of Home:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield14$</font></td>
<td><font face="ms sans serif" size=2>Lake Waterfront:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield22$</font></td>
</tr>
<tr>
<td><font face="ms sans serif" size=2>Fireplaces:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield15$</font></td>
<td><font face="ms sans serif" size=2>River Waterfront:&nbsp;</font></td>
<td><font face="ms sans serif" size=2>$lfield23$</font></td>
</tr>
<tr>
<td valign="top"><font face="ms sans serif" size=2>Appliances:&nbsp;</font></td>
<td colspan="3"><font face="ms sans serif" size=2>$lfield24$</font></td>
</tr>
</table>

<p>
<table border=0 cellspacing=2 cellpadding=0>
<tr>
<td><font face="ms sans serif" size=2>Listed by:&nbsp;</font></td>
<td><font face="ms sans serif" size=2><a href="$homepage_url$/$user_file$">$user_name$</a> &nbsp;(<a href="$search_url$?user_num=$user_num$&search=1">View my listings</a>)</font></td>
</tr>
<tr><td></td></tr>
<tr>
<td><font face="ms sans serif" size=2>View Map:&nbsp;</font></td>
<td><font face="ms sans serif" size=2><a href="http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=$lfield1_ue$&csz=$lfield3_ue$%2C%20$lfield4_ue$&Get+Map=Get+Map" target="_blank">Click Here to view map of area</a></font></td>
</tr>
</table>


<!-- about this page -->
<p><!-- /about this page --> </td>
</tr></table>

</center>

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="15"><img src="$homepage_url$/images/spacer.gif" width="15" height="100"></td>
</tr>
</table></td>
</tr>
<tr>
<td background="$homepage_url$/images/lifeinthebigapple_15.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27"><img src="$homepage_url$/images/lifeinthebigapple_14.jpg" width="27" height="76" alt=""></td>
<td align="center"><p><a href="http://www.lifeinthebigapple.com/" class="footera">Home</a> | <a href="http://www.lifeinthebigapple.com/who_we_are.html" class="footera">Who we are</a> | <a href="http://www.lifeinthebigapple.com/listman/exec/search.cgi" class="footera">Search our listings</a> | <a href="http://www.lifeinthebigapple.com/listman/homepages" class="footera">Agents</a> | <a href="http://www.lifeinthebigapple.com/resources.html" class="footera">Resources</a> | <a href="http://www.lifeinthebigapple.com/contact_us.html" class="footera">Contact Us</a></p>
</td>
<td width="27"><img src="$homepage_url$/images/lifeinthebigapple_17.jpg" width="27" height="76" alt=""></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">Copyright &copy; www.lifeinthebigapple.com All rights reserved</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</body></html>


Donna
Staff / Moderator


Dec 3, 2008, 4:29 PM

Post #4 of 6 (5504 views)
Shortcut
Re: [pilotchris84] Template cell 'listing_image' is not defined! [In reply to] Can't Post

Hi Chris - congrats! Hope everything went well. :)

Anyway, sorry, I just realized I didn't specify exactly which template -- check your _publish_listing_index.html template. It requires the following templatecells:

<!-- templatecell : listing_image -->

<!-- templatecell : listing_noimage -->

(and their respective closing templatecells as well)
Take a look for those, and that should lead you in the right direction. Feel free to post the source of your template if you get stuck. :)

Donna

--
support@interactivetools.com


pilotchris84
User

Dec 7, 2008, 5:31 AM

Post #5 of 6 (5180 views)
Shortcut
Re: [Donna] Template cell 'listing_image' is not defined! [In reply to] Can't Post

Donna-

Thanks. Everything was fantastic. Now we are busy catching up after the honeymoon.

Here is the source code from www.lifeinthebigapple.com/listman/templates/_realty/_publish_listing_index.html/ . I see the code you are referring to here. What am I missing?

Thanks again!

Chris



<!-- templatecell : placeholders -->
<!--


Placeholders available on this page:

cgiurl - script filename (for use in form tags)
homepage_url - URL of homepage directory
listing_url - URL of listing directory
search_url - URL of search engine

list - list of listings (created using templatecells)
file - image filename (used in "image" templatecell)
thumbnail - thumbnail filename (used in "image" templatecell)
thumbnail_width - width of thumbnails
thumbnail_height - height of thumbnails

lfieldX - listing field value of field X, X is a number from 1 to 75
listing_file - listing filename
listing_num - listing number

user_num - user number
user_name - user name
user_file - user homepage filename

Templatecells on this page:


image - displayed for each homepage images
no_images - displayed if there are no homepage images


You need to append special suffixes to placeholder names when using them in certain HTML constructs.

In links, append _ue e.g. <a href="$lfield5_ue$">
In form values, append _he e.g. <input name="x" value="$lfield5_he$">
In javascript, append _je e.g. <script>document.write("$lfield5_je$");</script>


-->
<!-- /templatecell : placeholders -->


<html><head>
<title>Our Listings</title>
<meta name="robots" content="index,follow">
<link href="$homepage_url$/lifeinthebigapple.css" rel="stylesheet" type="text/css">
</head>
<BODY >


















<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14"><img src="$homepage_url$/images/lifeinthebigapple_04.jpg" width="14" height="63" alt=""></td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><a href="
http://www.lifeinthebigapple.com/" class="headera">Home</a> </td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="
http://www.lifeinthebigapple.com/who_we_are.html" class="headera">Who We Are </a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="
http://www.lifeinthebigapple.com/listman/exec/search.cgi" class="headera">Search Our Listings </a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="
http://www.lifeinthebigapple.com/listman/homepages" class="headera"> AGENTS</a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="
http://www.lifeinthebigapple.com/resources.html" class="headera">RESOURCES </a></td>
<td width="1" align="center" valign="middle"><img src="$homepage_url$/images/lifeinthebigapple_06.jpg" width="1" height="63" alt=""></td>
<td align="center" valign="middle"><a href="
http://www.lifeinthebigapple.com/contact_us.html" class="headera">Contact Us</a></td>
</tr>
</table></td>
<td width="14"><img src="$homepage_url$/images/lifeinthebigapple_08.jpg" width="14" height="63" alt=""></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"><img src="$homepage_url$/images/spacer.gif" width="15" height="100"></td>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="$homepage_url$/images/lifeinthebigapple_11.jpg" width="937" height="152" alt=""></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>


<center>
<table border=0 cellspacing=0 cellpadding=0 width=580>
<tr><td><font face="arial,ms sans serif" size=3><b>Our Listings</b></font></td></tr>
</table>


<br>
<table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<a href="$listing_file$"><img src="$listing_url$/images/$thumbnail$" width=$thumbnail_width$ border=1 alt="Photo"></a><br>
</td>
<td valign=top width=469>
<font face="ms sans serif" size=3><b><a href="$listing_file$">$lfield1$</a> ($lfield5$)</b></font><br>
<font face="ms sans serif" size=2>
$lfield6$<br>
Listed by: <a href="$homepage_url$/$user_file$">$user_name$</a><br>
</font>
</td>
</tr>
</table>
<!-- /templatecell : listing_image -->


<!-- templatecell : listing_noimage -->
<p><table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<table border=1 cellspacing=0 cellpadding=0 width=100 height=100>
<tr>
<td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=3><b>Photo<br>Not<br>Available</b></font></td>
</tr>
</table>
</td>
<td valign=top width=469>
<font face="ms sans serif" size=3><b><a href="$listing_file$">$lfield1$</a> ($lfield5$)</b></font><br>
<font face="ms sans serif" size=2>
$lfield6$<br>
Listed by: <a href="$homepage_url$/$user_file$">$user_name$</a><br>
</font>
</td>
</tr>
</table>
<!-- /templatecell : listing_noimage -->





<!-- about this page -->
<p>
<!-- /about this page -->
</center>


























</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="15"><img src="$homepage_url$/images/spacer.gif" width="15" height="100"></td>
</tr>
</table></td>
</tr>
<tr>
<td background="$homepage_url$/images/lifeinthebigapple_15.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27"><img src="$homepage_url$/images/lifeinthebigapple_14.jpg" width="27" height="76" alt=""></td>
<td align="center"><p><a href="
http://www.lifeinthebigapple.com/" class="footera">Home</a> | <a href="http://www.lifeinthebigapple.com/who_we_are.html" class="footera">Who we are</a> | <a href="http://www.lifeinthebigapple.com/listman/exec/search.cgi" class="footera">Search our listings</a> | <a href="http://www.lifeinthebigapple.com/listman/homepages" class="footera">Agents</a> | <a href="http://www.lifeinthebigapple.com/resources.html" class="footera">Resources</a> | <a href="http://www.lifeinthebigapple.com/contact_us.html" class="footera">Contact Us</a></p>
</td>
<td width="27"><img src="$homepage_url$/images/lifeinthebigapple_17.jpg" width="27" height="76" alt=""></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">Copyright &copy;
www.lifeinthebigapple.com All rights reserved</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

























</body></html>



Donna
Staff / Moderator


Dec 8, 2008, 2:44 PM

Post #6 of 6 (5060 views)
Shortcut
Re: [pilotchris84] Template cell 'listing_image' is not defined! [In reply to] Can't Post

Hi Chris,

Looks like you've got the closing listing_image tag, but not the opening one. :)

So, you're missing this line:

<!-- templatecell : listing_image -->

...but you have this one:

<!-- /templatecell : listing_image -->

I hope this helps!

Donna

--
support@interactivetools.com