Hi all, it is me again...

I have a very important question.

In spectra 1.5.1 cfa_contentobjectget returned the whole objectstucture
including the substructures for multilingual properties.
In 1.5.2 it returns a flat structure without language sub structures.

Our applications use a customtag that checks the multilingual properties
in all languages the application supports (languages are defined as a
contentobject as well).
If the property is not defined in one or more languages it makes a
contentobjectdata and adds the key (iso_code) to the object.

But now I do not retrieve the subkey for the different languages so my
customtag fails with the error message:
'You have attempted to dereference a scalar variable of type class
java.lang.String as a structure with members.'

Any ideas?

Thanks for fast help,
Thomas


Code:
<cfa_contentObjectGet
    dataSource="#request.cfa.objectstore.dsn#"
    objectID="#attributes.objectID#"
        r_stObject="stFullObjectData">

<<cfa_contentObjectGetMultiple
                dataSource="#request.cfa.objectStore.dsn#"
                typeID="D033B14E-9B57-4F79-A41ED43820E8FD89"
                r_stObjects="hwsLanguages">

<cfloop list="#attributes.LCheckProp#" index="check">
        
        <cfloop collection="#hwsLanguages#" item="iso">

                <cfif not StructKeyExists(stFullObjectData[check],
hwsLanguages[iso].iso_code)>
                        <cfparam name="bForceNewInstance" default="1">
                                <cfa_contentObjectData 
        
dataSource="#request.cfa.objectstore.dsn#" 
        
objectID="#attributes.objectID#" 
        
ISOlanguage="#hwsLanguages[iso].iso_code#" 
                                                bActivate="Yes">
                                        <cfa_contentObjectProperty
name="#check#" value="">
                                </cfa_contentObjectData>

                </cfif> 
        </cfloop>
</cfloop>

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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