Display Repeater data & table in content page type Editor fields form filled

harshal bundelkhandi asked on June 20, 2017 15:31

Hello Support,

I want to display data for inserted records in repeater for Custom page type in Form fields or editor fields itself. is there any to display such type records in repeater. Can you Please lets us know or please share guideline to display data in repeater for Custom Page type Form fields.

Regards, Harshal Bundelkhandi

Recent Answers


Trevor Fayas answered on June 20, 2017 16:49 (last edited on December 10, 2019 02:31)

If i get you correctly, you want to display some data in the Form (for reference), correct?

While you cannot add a "Repeater" web part/widget in a Form field, you CAN insert macros.

What i would do is either use a Label field (with no database representation) and put a macro in there, or just put the macro in the "Content Before" / "Content After" of the field you want to do, and use the macro method "ApplyTransformation" (Just make sure the Transformation is type text/xml)

You will need to do a little work to get the data you want in the macro, if it's repeating page types then you should be able to do the below.

{% Documents.Where("NodeAliasPath like '/%'").ApplyTransformation("CMS.MenuItem.Default_Row", "<table>","</table>") |(identity)GlobalAdministrator%}

If it's a custom query you need, i'de have to look up how to run a query from a macro, slipping my mind.

1 votesVote for this answer Mark as a Correct answer

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