Re: Re: Issue with ruleHandpicked - Farcry 6.2.4

Geoff Bowers <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <CAKvFMZ0KYsqb+VEnCRKqv0KPNkE0Zkdb9dvCQeP4=5tqYL_gYg@mail.gmail.com>
Just fired up http://builder.farcrycore.org and built a simple rule:

<cfcomponent extends="farcry.core.packages.rules.rules">

<cfproperty name="sourceImageUUID" type="uuid" required="false"
ftSeq="1" ftWizardStep="" ftFieldset="" ftLabel="Source Image"
ftType="uuid" ftJoin="dmImage"
ftHint="Choose a source image from the library.">

</cfcomponent>

Save that to ./yourproject/packages/rules/ruleMyImage.cfc and deploy.

Then create a webskin at ./yourproject/webskin/ruleMyImage/execute.cfm
and put whatever you need in their to render your image.  Could be as
simple:

<skin:view objectid="#stobj.sourceImageUUID#" typename="dmImage"
view="displayTeaserStandard" />

Hope that helps,

-- geoff
http://www.daemon.com.au/
skype. gb.daemon
twitter. @modius


On 28 November 2012 16:35, Geoff Bowers <[email protected]> wrote:
> On 28 November 2012 16:05, Tim Parkinson <[email protected]> wrote:
>> I've just done a fresh install of the updated community package and there
>> still seems to be an issue.
>
> Rather than waiting for a fix on Hand Picked Rule, might be worth
> having a crack at writing a specific rule to hold your image and
> display.  Rules are surprisingly easy to write, especially if all you
> want to do is select a content item and render a small view on it.
>
> Plus its fun too :)
>
> -- geoff
> http://www.daemon.com.au/
> skype. gb.daemon
> twitter. @modius

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.