Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Short Format Link to Detailed Page

Quote Reply
Short Format Link to Detailed Page
In the default template short format display, there is a 'more info' link to the full record.

How can we get that in our custom search results template?

Our short format is very short ...
[code<%if fm eq 'short'%>
<ul>
<%loop results%>
<li> <%Title%> </li>
<%endloop%>
</ul>

<%else%>[/code]
What should we add after <%Title%> to get a link to the detailed page?
Quote Reply
Re: [YoYoYoYo] Short Format Link to Detailed Page In reply to
Here is the code of search_results.html

<%if d%> <%-- View details --%>
<%loop results%>
Details info
<%endloop%>
<%else%>
<%loop results%>
<a href="db.cgi?do=search_results&primary_key=<%primary_key%>&primary_key-opt==&d=1"><%Title%></a>
<%endloop%>
<%endif%>

TheStone.

B.
Quote Reply
Re: [TheStone] Short Format Link to Detailed Page In reply to
Thanks Stone