Adding Custom Content Types to the Rich Text FarCry Button

1 view
Skip to first unread message

James Buckingham

unread,
Nov 24, 2009, 5:17:08 AM11/24/09
to farcry-dev
Hiya,

Is it possible to add custom content types into the rich text editor?

I'm specifically looking at the Link type just now but I guess this
applies to any if we needed FarCry to dynamically add in the links off
a "Related Content" Library picker.

Had a look in the documentation but I can't seem to find anything
about doing this.

Cheers,
James

Blair McKenzie

unread,
Nov 24, 2009, 5:44:58 AM11/24/09
to farcr...@googlegroups.com
Look at the core dmHTML type. Unfortunately the new docs don't include that information yet, but the body and aObjectIDs properties are related so that the FarCry button on one can reference specific content types in the other. I can't remember the specifics thought, so you'll have to go core spelunking.

Blair


--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

James Buckingham

unread,
Nov 24, 2009, 5:47:51 AM11/24/09
to farcry-dev
Thanks Blair.... off to go spelunking now :-)

Cheers,
James

James Buckingham

unread,
Nov 24, 2009, 6:02:54 AM11/24/09
to farcry-dev
Ok found the right line in the dmHTML:


<cfproperty ftSeq="12" ftwizardStep="Body" ftFieldset="Body"
name="Body" type="longchar" hint="Main body of content." required="no"
default="" ftType="richtext" ftLabel="Body"
ftImageArrayField="aObjectIDs" ftImageTypename="dmImage"
ftImageField="StandardImage"

ftTemplateTypeList="dmImage,dmFile,dmFlash,dmNavigation,dmHTML,dmLink"
ftTemplateWebskinPrefixList="insertHTML"
ftLinkListRelatedTypenames="dmFile,dmNavigation,dmHTML,dmLink"
ftTemplateSnippetWebskinPrefix="insertSnippet">


I've added in dmLink and it's now appearing in the tabs and I'm
getting my related content in the Item dropdown, however I'm not
seeing anything in the template options. Added dmLink into
ftLinkRelatedTypenames and ftTemplateTypeList is there anything else I
should be doing?

Thanks again,
James

James Buckingham

unread,
Nov 24, 2009, 6:10:58 AM11/24/09
to farcry-dev
Oh hang on am I right in thinking I need a Webskin for this?

Looking at : ftTemplateWebskinPrefixList="insertHTML"

Tomek Kott

unread,
Nov 24, 2009, 7:01:58 AM11/24/09
to farcr...@googlegroups.com
yup! just find some examples for insertHTML (or is it insertHTMLSnippet) in the core webskins and copy away.

Tomek

On Tue, Nov 24, 2009 at 6:10 AM, James Buckingham <clar...@gmail.com> wrote:
Oh hang on am I right in thinking I need a Webskin for this?

Looking at : ftTemplateWebskinPrefixList="insertHTML"

James Buckingham

unread,
Nov 24, 2009, 9:29:03 AM11/24/09
to farcry-dev
Thanks Tomek / Blair. That's them up and running now :-)
Reply all
Reply to author
Forward
0 new messages