Hi Surendra

/system/dmConfig was used in earlier versions of FarCry (i.e. 4.x). FarCry 5
and 6 use config components. I just tried to find a page on the wiki that
covers this - but there isn't one. No wonder you're confused.

If you've looked through the core files you have probably noticed that under
the packages directory there is a forms directory. This contains a number of
components called something like configXXX.cfc. These components define
configuration structures the way components in types define content
structures.

Copy one of these to the corresponding directory in your project, rename it
to configModelGlue.cfc, update the extends attribute to
'farcry.core.packages.forms.forms', and the 'key' attribute to 'modelglue'.
The next time you update the application the properties in that component
will be available in application.config.modelglue.

The wiki (http://docs.farcrycms.org) has various resources to help with
configuring the cfproperty tags. The chapter in the jumpstart
course<http://docs.farcrycms.org/display/FCDEV50/UNIT+05+-+Content+Types>is
a good place to start.

I hope this helps.

Cheers
Blair

On Thu, Feb 18, 2010 at 8:15 PM, Surendra <[email protected]> wrote:

> Hi there!
> I am a newbie to farcry. This error happens when I try to preview the
> page.
> Under /includedObj directory I have a "_xxxx.cfm" file.
>
> In "_xxxx.cfm" file, I have the following code :
>
> <cfscript>
> <cfset request.link = application.config.modelgluesettings.urllink>
> </cfscript>
>
> I am declaring urllink = "some url"; in modelgluesettings.cfm which is
> present under /<farcry-project>/system/dmConfig/modelgluesettings.cfm
>
> I am including the "_xxxx.cfm" file in my container. But when I try to
> preview the page I am getting Element CONFIG.modelgluesettings.urllink
> Undefined in APPLICATION error.
>
> Even I tried appending &updateapp=1 to my URL and I restarted my
> Coldfusion server. But that dint help :-(
>
> Can someone help me out please? Do I need to make any changes in my
> Application.cfm and Application.cfc or in my index.cfm page?
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: 
> [email protected]<farcry-dev%[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

Reply via email to