Franko wrote:
I want to add the ability to the Farcry core rule "ruleNews" to display
news items in columns.

The easiest way I thought of implementing this without altering core code
was to create an extension of the rule in \myapplication
packages\rules\ruleNews.cfc with the following code:

<cfcomponent displayName="News Rule" extends="farcry.farcry_core.packages.rules.ruleNews" hint="Extends Farcry core rule ruleNews.">

   <cffunction access="public" name="execute" output="true">

   *** code redefining execute function... ***

   </cffunction>

   </cfcomponent>

Looks ok. Though you should really have EXECUTE's output="false" and be populating request.aInvocations. If you're trying some fancy HTML output this may be awkward.

So.. populating HTML block into request.aInvocations would be the best option. Blatting out HTML from the EXECUTE handler is not considered best practice.

(One day I'll get some time to capture this info cos I know its not really defined anywhere)

Unforunately though, when I go to a conatiner to assign the news rule, the
ruleNews appears twice and both of them perform the function "execute from
the farcry core code, not my extended rule.

Is this a case of "extension" not fully implemented in containers or have
i done something wrong?

This sounds like something is wrong. I would make absolutely sure you start with a brnad new container and that you don;t somehow have old rule data mucking up your new execution.

Hope that helps,

-- geoff
http://www.daemon.com.au/

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to