Raymond,

It work well, but I get other problems.

1. I use this cfa_handler as a display handler.
But I want to display the property in a TEXTAREA and I have not only the
content but a lot of blank lines before and after the content !
Is there a solution to avoid these blank lines ?

2. If not (or to test), I've tried to create a GET handler.
For that I took the standard "get.cfm" file and changed it as follow:

<cfif IsDefined("Attributes.stParams.Language")>
        <cfset sLanguage = Attributes.stParams.Language>
<cfelse>
        <cfset sLanguage = Application.DefaultLanguage>
</cfif>

<cfset stObjects = structNew()>

<cfa_handler object="object" result="r" bEnableDesignMode="0"
isolanguage="#sLanguage#">
        <cfset r = object>
        <cfset stObjects[object.objectID] = object>
</cfa_handler>

But with this code, I have on my CFM page, first that:
10swucher36962.25170140036962.253611100swucher00100<h3>Features and
Benefits</h3><h3>Key Properties</h3>Product Test
12345<h3>MSDS</h3>0FE4A130B-1401-11D5-A92F009027DE503E12345204B361C-FD14-11D
4-A92A009027DE503E 
Which means that the object content is displayed even I didn't ask for.

And also I don't know how to call the handler in order to retrieve the
object. I've used this syntax:
<cfa_contentobject objectid="#Session.ECProduct.ProductCODB#" method="get"
stparams="#Session.ECProduct#" r_stobjects="stObj">

But after that if I ask for one of the properties (ex: stObj.Label), I've
got an error message saying that it's not a property of this object !

Could you help me ?

Thanks

---
> Stephane
> Paris - FRANCE
> Email: mailto:[EMAIL PROTECTED]
> 


-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: lundi 12 mars 2001 15:26
To: Spectra-Talk
Subject: RE: Spectra and Multilingual


If your calling your object via contentObject, you can use stParams to pass
in the current language. Your handler file can then look like this:

display.cfm:

<CFIF IsDefined("Attributes.stParams.CurrentLanguage")>
        <CFSET Lang = Attributes.stParams.CurrentLanguage>
<CFELSE>
        <CFSET Lang = "EN">
</CFIF>

<CFA_Handler Object="Ob"  ISOLanguage="#LANG">
        foo foo faloom
</CFA_Handler>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Allaire

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Wucher, Stephane [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 9:17 AM
> To: Spectra-Talk
> Subject: RE: Spectra and Multilingual
>
>
> Thank you for your quick answer.
>
> I have already created Types and Objects with Multilingual properties, no
> problem for that.
> The problem is more how to display an object with a selected language in a
> page.
> I've tried to use a cfa_contentobject (in my CFM page) and a cfa_handler
> (Object's Method) with ISOLanguage, but with no success.
>
> I didn't find in the Spectra documentation or on the Allaire web site an
> example of that.
>
> For example, in my CFM page I have a variable with the requested language
> (#sLangID#).
>
> How should I to code the cfa_handler/ISOLanguage to use it ?
> How can I pass my #sLangID# parameter ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to