Farcry Containers - Not Just For News

I’m sure many people, like me, have taken the short-sighted approach when it comes to pages and containers. Let me just say that the Handpicked Rule is definitely the almighty divine rule as far as I’m concerned.

I have had customers who want a contact form. Simple enough, right? Well, what if they want to add text at the top of the form and want control over it. A CMS should be able to handle that right? I actually went to the extreme of extending the dmHTML type and creating a custom webskin to allow the user to drop in an included object below their dmHTML content. That was a good 4 hours wasted!

Drop in a container and make sure your type has bSchedule=”1″ in the component definition. If it does not, simply extend it and add that and nothing else:

<cfcomponent name="dmInclude" displayname="Include" hint="dmInclude object extended to allow a filterBy parameter" extends="farcry.farcry_core.packages.types.dmInclude" bUseInTree="1"  bSchedule="1">
</cfcomponent>

No properties, no functions, nothing. Just extend the original object and add bSchedule=”1″

The only thing to really be aware of here is that a normal displaypage… template will not be found by the rule. Rules always look for displayTeaser… templates. Once that is all in place, drop the included object into a container and give thanks to the almighty handpicked rule.

Leave a Reply