see http://www.nicecoder.com/community/s...&threadid=2056
as a followup to the above post, I have added a template parsing function to the linkcoder code.
Of particular note is the ability to use IF-THEN-ELSE statements within the templates themselves thereby controlling the HTML at the time the template is displayed based on the data from the link itself.-
You can see it here http://www.indexuhelp.com/link_coder/cat_list.php
Take a look at the New Products subcategory (cat_id=5) in the Business to Business category
Cal you pick out the Editor's Pick links?
Here is the template file itself:
Code:<%LOOP links%> <table cellpadding='0' cellspacing='0' align="center" border='1' width='100%' bordercolor="#ffffff" bordercolorlight="#000000"> <tr> <td> <table cellpadding='4' cellspacing='0' border='0' width='100%'> <tr> <td align=left> <img src="http://www.indexuhelp.com/images/icons/dots.gif" width=13 height=13 ALIGN=absmiddle> linkcoder has search-engine friendly links <a class=lblack href="detail.php/id/<%link_id%>.html"><%title%></a> - <%date%> An example an IF statment to control what info to display in the template - New= <%IF new==1%>Yes <%ELSE%>No <%/IF%> - Pick= <%IF pick==1%>Yes <%ELSE%>No <%/IF%> - Top Rated= <%IF top_rated==1%>Yes <%ELSE%>No <%/IF%> - Updated= <%IF updated==1%>Yes <%ELSE%>No <%/IF%> <br> </td> <td> <!-- <div align="right"><b><%review_image%></b> - <b><%rating_image%></b></div> --> </td> </tr> <tr> <td An example an IF statment to control how the template itself can be controlled based on information from the link itself <%IF pick==1%> style="background-color:#CCCCFF;" <%ELSE%>style="background-color:#D3D3D3;" <%/IF%> colspan="2"> <%description%> <%top_rated%> </td> </tr> <tr> <td style="background-color:#D3D3D3; border-top: dotted 1px black;" colspan="2"> hits: <%hits%> - Contact: <%contact_name%> - Email: <%email%> </td> </tr> </table> </td> </tr> </table> <!-- spacer --> <BR> <%/LOOP%>


cheers for the help 