Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Include code in multiple transformations

$
0
0
I have an If statement that I have included in a single transformation but would ideally like to include in about 30 others, is it possible to call in the logic in question to multiple transformation?eg: My transformation sets a variable based on which part of the website you are in. if (CurrentDocument.Parent.Parent == @Canis@){Prefix = @Canis@;} if (CurrentDocument.Parent.Parent == @Felis@){Prefix = @Felis@;} if (CurrentDocument.Parent.Parent == @Lapis@){Prefix = @Lapis@;} if (CurrentDocument.Parent.Parent == @Equis@){Prefix = @Equis@;} if (CurrentDocument.Parent.Parent == @Exotis@){Prefix = @Exotis@;} if (CurrentDocument.Parent.Parent == @Bovis@){Prefix = @Bovis@;} I would like to call the variable Prefix into many transformation such as @blahblah@ + Prefix

Viewing all articles
Browse latest Browse all 8901

Trending Articles