Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Liimatta] Multiple modify_success templates?

Quote Reply
Re: [Liimatta] Multiple modify_success templates? In reply to
Hello

I tried this way, but canīt get it working, maybe I should try in the form

The solution I found is to do something like that,

(in footer.html)

<%if add_p%>
<a href="db.cgi?do=add_form&db=<%db%>&tipo=Casa">Casa</a> |
<%endif%>

And in the add_form.html

<%if tipo eq Casa%>
<%include add_form_casa.html%>
<%endif%>


<%if tipo eq Apartamento%>
<%include add_form_apartamento.html%>
<%endif%>


I tried this way in the footer.html

<%if add_p%>
<a href="db.cgi?do=add_form&db=<%db%>&t=add_form_apartamento.html">Apartamento</a> |
<%endif%>

(what I think will be far easier because doesnīt have to do several <%if tipo eq %> to include the specific form fields) but didnīt work, i get a

Invalid Template add_form_apartamento.html

where did you put the "t=template_set" ?
Subject Author Views Date
Thread Multiple modify_success templates? Liimatta 4427 Mar 9, 2002, 4:20 PM
Thread Re: [Liimatta] Multiple modify_success templates?
assombracao 4208 Mar 20, 2002, 8:19 PM
Thread Re: [assombracao] Multiple modify_success templates?
Liimatta 4188 Mar 21, 2002, 7:48 AM
Thread Re: [Liimatta] Multiple modify_success templates?
assombracao 4199 Mar 21, 2002, 11:47 AM
Thread Re: [assombracao] Multiple modify_success templates?
Liimatta 4187 Mar 21, 2002, 12:41 PM
Post Re: [Liimatta] Multiple modify_success templates?
assombracao 4185 Mar 21, 2002, 1:38 PM