Gossamer Forum
Quote Reply
What do the &tablename.fieldname-opt== and the &d=1 part of the url do??

Thank you.


Last edited by:

jai: Oct 14, 2002, 5:21 PM
Quote Reply
Re: [jai] URL In reply to
I haven't really had any time to look at the new manual, but I'm pretty sure...

&tablename.fieldname-opt== means that the value (i.e. xxx) specified in &tablename.fieldname=xxx (which should also be specified in the url) must be exactly equal to xxx (and not, say, like, >, or < xxx).

&d=1 could mean a number of things, but odds are in this context it is being used to signify that the search_results template should display a single detailed record, rather than loop through all the listings (which would presumably be only one, because of the &tablename.fieldname-opt== already specified)

If I'm right about that, to get the &d=1 to display the detailed result, you'd put in your template:

<%if d = 1%>
detailed result.....
short result.....
<%end loop%>

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund