Resolve inline widget using macro

Khoa Nguyen asked on August 23, 2018 10:23

How can we resolve an inline widget in webpart container?

http://prntscr.com/klxr42

I was using

{%Content%} or {%Content|(recursive)true%}

but did not working

http://prntscr.com/klxob8

It working good in form tab, when edit an item.

Recent Answers


Arun Kumar answered on August 23, 2018 11:40

Have you tried with this:

<%# MacroResolver.Resolve(Eval("Content").ToString()) %>
0 votesVote for this answer Mark as a Correct answer

Khoa Nguyen answered on August 23, 2018 11:58

Hi Arun Kumar,

I am using in web part container, not in transformation

0 votesVote for this answer Mark as a Correct answer

Arun Kumar answered on August 23, 2018 12:10

Check this post if this is helpful.

0 votesVote for this answer Mark as a Correct answer

Khoa Nguyen answered on August 24, 2018 03:35

Hi Arun Kumar,

Thank for your link! Still not working ~

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on August 24, 2018 12:14

Hi,

as stated in the post Arun mentions Web Part Containers aren't really meant to be used that way.

What would you hope to achieve? Should the widget be manageable by editors? Want it to be reusable component?

You could add a Widget Zone after your Web Part and make sure the "container" styling/html is surrounding both! Or just add a second Web Part... You could even include the logic inside the code of the first Web Part.

0 votesVote for this answer Mark as a Correct answer

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