Re using webskins - the idea is that you might want to format/display
different types in different ways. For example I've set up dmHTML search
results to have the breadcrumbs under the result title, and dmNews to have
the date.

To set this up, replace the highlighted code:
    <!--- output results --->
    <cfoutput query="qResults" maxrows="#maxrows#"
startrow="#url.startrow#">
        <div style="margin:0px 30px 10px 0px; font-family: Georgia;
font-color: ##666666; font-size: 11px;">
        #score#
        <!--- check for extFile or farcry object --->
        <cfif left(key,2) eq "\\">
            <a 
href="#application.url.webroot#/download.cfm?extFile=#key#">#qResults.title#</a>

        <cfelse>
            <!--- farcry object --->
            <a href="#application.url.conjurer#?objectid=#key#">#qResults
.title#</a>
        </cfif>
        <br>
        #summary#
        </div>
with this:
        <cfset thistype=oFourQ.findType(objectid=key)>
        <cfinvoke component="#application.types[thistype].typepath#"
method="getDisplay" returnvariable="stResult">
            <cfinvokeargument name="objectid" value="#key#">
            <cfinvokeargument name="template" value="displaySearchResult">
        </cfinvoke>

Keep in mind that you would need to create a displaySearchResult.cfm webskin
for every type that can appear in the search results.

Blair

On 1/20/07, Chris Roth <[EMAIL PROTECTED]> wrote:
>
>
> Thanks blair.
>
> I got fu working. not sure where i set up display methods tho can you
> help?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to