Book a Demo

Author Topic: Tagged Values and Transformations  (Read 2537 times)

TomPre

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Tagged Values and Transformations
« on: December 04, 2006, 08:30:05 am »
Hallo, I'm currently working with the c-template and I have a problem concerning transforming and tagged values. The problem is that the tags aren't transfered to the transformed classes. Is there a way to avoid this, because it's very annoying to retype every single tagged value after I transform my class.
Thanks in advance.
« Last Edit: December 04, 2006, 08:30:22 am by TomPre »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Tagged Values and Transformations
« Reply #1 on: December 04, 2006, 01:12:12 pm »
Well, the transform can be written to copy "known" tagged values.  For example, this code copies the a non-empty tagged value.  You can also adapt it to add empty tags and it can be repeated for each tag that you need to copy.

Code: [Select]
%if classTag:"myTag" != ""%
Tag
{
 name="myTag"
 value=%qt%%classTag:"myTag"%%qt%
}
%endIf%

If you want to copy every tag (not really a normal situation since transformations are about changing a domain and each domain will usually require different tagged values) then you'll need to use a call to an addin.  (See EXEC_ADD_IN in this forum and in the help.)

TomPre

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Tagged Values and Transformations
« Reply #2 on: December 05, 2006, 12:08:57 am »
thanks a lot! That was exactly what I needed.  ;D