Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
Stripping out template elements

 

 


jarvis
User

Nov 14, 2008, 7:21 AM

Post #1 of 2 (1505 views)
Shortcut
Stripping out template elements Can't Post

Hi all,

Am new to Realty manager so please be gentle!

Is it possible to strip out:


Code
 <!-- templatecell : user_image --> 
<p><table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<img src="$homepage_url$/images/$thumbnail$" width=$thumbnail_width$ border=1 alt="Photo"><br>
</td>
<td valign=top width=469>
<font face="ms sans serif" size=3><b>$user_name$</b></font><br>
<font face="ms sans serif" size=2>
Specialty: $hfield1$<br>
$hfield2$<br>
<a href="$user_file$">View my homepage</a> &nbsp;
<a href="$search_url$?user_num=$user_num$&search=1">View my listings</a><br>
</font>
</td>
</tr>
</table>
<!-- /templatecell : user_image --><!-- templatecell : user_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>$user_name$</b></font><br>
<font face="ms sans serif" size=2>
Specialty: $hfield1$<br>
$hfield2$<br>
<a href="$user_file$">View my homepage</a> &nbsp;
<a href="$search_url$?user_num=$user_num$&search=1">View my listings</a><br>
</font>
</td>
</tr>
</table>
<!-- /templatecell : user_noimage -->



MikeB
Staff / Moderator


Nov 16, 2008, 11:59 PM

Post #2 of 2 (1477 views)
Shortcut
Re: [jarvis] Stripping out template elements [In reply to] Can't Post

Hi Jarvis,

Thanks for the post!

You'll want to leave this code in Listings Manager's template file. The blocks of code that start and end with "templatecell" are required by the software so it knows how to handle different scenarios (in this case what should be displayed depending on whether or not the user has an image to display).

If you were to remove this code you'd likely end up getting an error in the software when you try to add and modify listings or re-publish your listings.

If you don't require any of this code then what you could do is just strip out everything between the opening and closing tags so it looks like this:

<!-- templatecell : user_image -->
<!-- /templatecell : user_image -->
<!-- templatecell : user_noimage -->
<!-- /templatecell : user_noimage -->

Nothing will be displayed for your user details but you won't get any errors in the software.

I hope this helps! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]