Hi,

I'm try to create a custom rule for inserting a sitemap.

Not sure if the way I'm approaching it is the best way, but I can't get it
working right either way.

My execute function is as follows:

    <cffunction access="public" name="execute" output="true"">
        <cfargument name="objectID" required="Yes" type="uuid" default="">
        <cfargument name="dsn" required="false" type="string"
default="#application.dsn#">

        <cfset stObj = this.getData(arguments.objectid)>

        <cfimport taglib="/farcry/farcry_core/tags/webskin/" prefix="skin">
        <skin:sitemap r_navQuery="query"></skin:sitemap>

        <cfloop query="query">
            <cfscript>
                stInvoke = structNew();
                stInvoke.objectID = objectID;
                stInvoke.typename = application.packagepath &
'.types.dmHTML';
                stInvoke.method = stObj.displayMethod;
                arrayAppend(request.aInvocations, stInvoke);
            </cfscript>
        </cfloop>
   </cffunction>


The problem is, inside the display method, the stObj structure is made up
entirely of empty strings (apart from the typeName property). I used the
ruleChildLinks.cfc as a template but I can't see where mine differs to that
one.

On another point, for something like this, would it better to run the
display method for each item returned, or return the entire query to a
single display method and loop over it in that?

How's the farcry.daemon.com.au sitemap achieved?

Cheers

--
Quentin Zervaas
Email: [EMAIL PROTECTED]


---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to