<
From version < 4.2 >
edited by Outhman Moustaghfir
on 2024/02/21 10:54
To version < 2.1 >
edited by Outhman Moustaghfir
on 2022/09/21 17:22
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -iXPath V3.Funcitons.tracking.WebHome
1 +iXPath V3.Funcitons.WebHome
Content
... ... @@ -6,20 +6,41 @@
6 6  
7 7  SetTrkLink uses 6 params:
8 8  
9 -1. trackingType: it refers to the type of tracking wanted. (eg : order , product, baseArticle ...)
10 10  1. trkID : tracking ID.
11 -1. trackingTypeCible: its type.
10 +1. trackingType: it refers to the type of tracking wanted. (eg : order , product, baseArticle ...)
11 +1. sensType: top (parent), bot (children), any (same level).
12 12  1. trkIDCible :the tracking to be linked.
13 +1. trackingTypeCible: its type.
14 +1. reverse: optional param that allows the creation of an equivalent link on the other tracking.the default value is __false__.
13 13  
14 14  = Uses =
15 15  
16 16  We suppose that we have a tracking type named Product. It has 3 data (Name, Brand, and Country).
17 17  
18 -* if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "632061e5f8aef457701aa123") :
20 +* if we want to link a product with trkID = '632061e5f8aef457701a28d3' to a tracking **parent **like 'Company' ( trkID = "Abcd") :
19 19  
20 20  {{code language="XML"}}
21 -<xsl:value-of select="ixf:SetTrkLink('Product', '632061e5f8aef457701a28d3' , 'Company', '632061e5f8aef457701aa123')"></xsl:value-of>
23 +<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company')"></xsl:value-of>
22 22  {{/code}}
23 23  
26 +this will create a link only in 'Product' object.
24 24  
28 +* to set equivalent links between 'Company' and 'Product', we set reverse to __true__  :
25 25  
30 +
31 +{{code language="XML"}}
32 +<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company', 'true')"></xsl:value-of>
33 +{{/code}}
34 +
35 +this call is the same as :
36 +
37 +{{code language="XML"}}
38 +<xsl:value-of select="ixf:SetTrkLink('632061e5f8aef457701a28d3', 'Product', 'top', 'Abcd' , 'Company')"></xsl:value-of>
39 +{{/code}}
40 +
41 +{{code language="XML"}}
42 +<xsl:value-of select="ixf:SetTrkLink('Abcd', 'Company', 'bot', '632061e5f8aef457701a28d3' , 'Product')"></xsl:value-of>
43 +{{/code}}
44 +
45 +
46 +
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian