Get Web Part Properties-Macro

Sid Chudasama asked on March 16, 2017 18:39

Hi

I'm trying to get web part properties in transformation specifically web part title. I tried {%ContainerTitle%} and also {%WebPartTitle%} and these but didn't work.

Thank You

Recent Answers


Trevor Fayas answered on March 16, 2017 19:07 (last edited on March 16, 2017 19:08)

By default the transformation doesn't pass the Web Part's properties.

You have some options:

1: You can use the Transformable Web Part (Marketplace) which does pass it's parameters into the transformation. If you want to add a repeater though you will have to use ASCX type transformation, add the actual repeater control tag, and pass from the webpart/widget properties into it.

2: You can use a Web Part Container, which DOES allow you to pull in the webpart/widget properties, but of course you can only use to wrap the content.

3: Create your own clone of the repeater and try to modify it so you add the webpart's properties to the MacroContext so so you can pull it in with the text/html, just be careful to use the current resolver and not the global resolver.

2 votesVote for this answer Mark as a Correct answer

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