macro Not Work in transformation

Mehrdad ilchizadeh asked on July 21, 2015 14:08

hi i use this macro in transformation

{% CMSContext.CurrentDocument.ID #%} 

but show:

{% CMSContext.CurrentDocument.ID |(user)administrator|(hash)36b1593198f07118c5034154b69102192b6a4e7bde36573d3cc9b7d890d4096b%}

please help me

Correct Answer

Brenden Kehren answered on July 23, 2015 04:49

You don't use macros in ASCX transformations you use the function or methods available.

<%# CurrentDocument.DocumentID %>

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on July 21, 2015 15:50

What type of transformation are you using? ASCX? Text/XML?

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on July 22, 2015 05:12

hi ASCX... for use in repeater

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on July 23, 2015 09:56

Hi,

Macros are supported in text/HTML transformations only. In ASCX you need to use the transformation methods or create a custom transformation method.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.