Hi there, Everyone:
Trying to figure how to use some global variable that are supposed to be generated by the Viking Coders Affiliate Manager module. According to James at emdeia, it apparently sets some global variables. He gave some examples like the following:
<MvASSIGN NAME="g.AffiliateData:code" VALUE="{AffiliateData.d.code}">
<MvASSIGN NAME="g.AffiliateData:id" VALUE="{AffiliateData.d.affiliate}">
<MvASSIGN NAME="g.AffiliateData:fname" VALUE="{AffiliateData.d.fname}">
<MvASSIGN NAME="g.AffiliateData:lname" VALUE="{AffiliateData.d.lname}">
So how do we display something like the Affiliate Code (the first one listed in the above)? I thought to display it we would just use something like this:
&mvte:global:AffiliateData.d.code;
and I thought to evaluate it, we would just use something like this:
<mvt:if expr="(g.Affiliate.Data.d.code EQ 'news')">
This is a conditional
</mvt:if>
But that doesn't seem to be working, so I think there might be something wrong with my SMT.
Thanks in advance for any help.
Trying to figure how to use some global variable that are supposed to be generated by the Viking Coders Affiliate Manager module. According to James at emdeia, it apparently sets some global variables. He gave some examples like the following:
<MvASSIGN NAME="g.AffiliateData:code" VALUE="{AffiliateData.d.code}">
<MvASSIGN NAME="g.AffiliateData:id" VALUE="{AffiliateData.d.affiliate}">
<MvASSIGN NAME="g.AffiliateData:fname" VALUE="{AffiliateData.d.fname}">
<MvASSIGN NAME="g.AffiliateData:lname" VALUE="{AffiliateData.d.lname}">
So how do we display something like the Affiliate Code (the first one listed in the above)? I thought to display it we would just use something like this:
&mvte:global:AffiliateData.d.code;
and I thought to evaluate it, we would just use something like this:
<mvt:if expr="(g.Affiliate.Data.d.code EQ 'news')">
This is a conditional
</mvt:if>
But that doesn't seem to be working, so I think there might be something wrong with my SMT.
Thanks in advance for any help.
Comment