Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [mycah] DBman sql template questions

Quote Reply
Re: [mycah] DBman sql template questions In reply to
Well once again you can add a conditional statement to the display form (search results page). So lets say in the add form you have a field titled "templatetype". And there are 2 types of templates: temp1, temp2 (this field should be required, or you can set a default value).

Well now that you have your 2 template types add a conditional statement to the display page ( search results page):

<%if templatetype eq 'temp2'%>

<%include temp2.html%>

<%else%>

<%include temp1.html%>



So basically you put these statements within the <%loop%> that way as the database goes through the loop to display each record it should check to see what type of template is specified and it will use that specific template to display the record. I haven't actually tried this out myself, but I'm assuming it will work. Try it out and let me know how it goes. Cool
Reena
Subject Author Views Date
Thread DBman sql template questions mycah 4913 Sep 12, 2002, 2:41 PM
Thread Re: [mycah] DBman sql template questions
Reena0330 4704 Sep 13, 2002, 1:18 PM
Thread Re: [Reena0330] DBman sql template questions
mycah 4698 Sep 13, 2002, 4:08 PM
Post Re: [mycah] DBman sql template questions
Reena0330 4716 Sep 13, 2002, 4:21 PM
Thread Re: [mycah] DBman sql template questions
Reena0330 4718 Sep 13, 2002, 4:24 PM
Post Re: [Reena0330] DBman sql template questions
mycah 4689 Sep 13, 2002, 4:30 PM