Hi Jeff,
I wanted to extend dmImage as well in order to put few more properties such as
photographer, copyright, photo date etc. Is this still the best practise where
to put extended dmImage.cfc for FC 6.x?
When I save the image it adds photographer, copyright and keywords values to
the "label". How can I prevent this?
I have extended dmImage.cfc as follows:
<cfcomponent extends="farcry.core.packages.types.dmImage">
<!------------------------------------------------------------------------
type properties
------------------------------------------------------------------------->
<cfproperty ftSeq="200" ftFieldset="General Details" name="photographer"
type="nstring" hint="Photographer's name" required="no" default=""
blabel="true" ftlabel="Photographer" />
<cfproperty ftSeq="210" ftFieldset="General Details" name="copyright"
type="nstring" hint="Copyright" required="no" default="" blabel="true"
ftlabel="Copyright" />
<cfproperty ftSeq="220" ftFieldset="General Details" name="keywords"
type="nstring" hint="Keywords" required="no" default="" blabel="true"
ftlabel="Keywords" />
<cfproperty
name="photodate" type="date" hint="The date of photo" required="no"
default=""
ftSeq="230" ftwizardStep="General Details" ftFieldset="General Details"
ftLabel="Photo Date"
ftHint="Photo date"
ftType="datetime" ftDefaultType="Evaluate" ftDefault="DateAdd('yyyy',
200, now())" ftDateFormatMask="dd mmm yyyy" ftTimeFormatMask="hh:mm tt"
ftToggleOffDateTime="false" />
<cfproperty
name="aRelatedCustomTypes"
ftseq="300"
type="array"
hint="Related Custom content items."
required="no"
default=""
ftlabel="Related Custom Types"
fttype="array"
ftfieldset="General Details"
ftwizardStep="General Details"
ftJoin="hpcOrganisations,hpcVenues,hpcTownVillage"
ftHelpSection="This is where we pick related information for the
Organisation."
/>
</cfcomponent>
Thanks,
Tunç
On 20 Dec 2010, at 15:17, Jeff Coughlin wrote:
>> Does FC4 use the "system" package? I don't think that was introduced until
>> FC5. I think in FC4 he has to have it in "types".
>
>
> Yes. FC4 looks for the system folder. If it doesn't exist you can create
> it. You can of course just use the types folder. The system folder is just
> a best-practice thing (making it easier for developers to differentiate
> between custom types and core extended types).
>
> By the way, I noticed a typo in my #2 item. It should say
> extends="farcry.core.packages.types.dmImage" (I incorrectly wrote the word
> "type", not "types").
>
> Regards,
>
> --
> Jeff Coughlin
>
> On Dec 20, 2010, at 9:52 AM, Sean Coyne wrote:
>
>> Jeff,
>>
>> Does FC4 use the "system" package? I don't think that was introduced until
>> FC5. I think in FC4 he has to have it in "types".
>>
>> Sean
>>
>> --
>> You received this message cos you are subscribed to "farcry-dev" Google
>> group.
>> To post, email: [email protected]
>> To unsubscribe, email: [email protected]
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google group.
> To post, email: [email protected]
> To unsubscribe, email: [email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry