Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Macro for Article Text View modes: 
User avatar
Member
Member
ptune-edfinancial - 3/25/2013 3:33:28 PM
   
Macro for Article Text
I think this can be done with a macro in "Page" view on CMSDesk. I want to give my Content Editors the ability to display "Form" fields of another document.

I've created an 'article' document and want to reference it's article text from another page. I think the macro is supposed to be something like this:

{%Documents["/reports/myreport"].Field("ArticleText")%} 
<--this is a made-up macro

Obviously that's not correct. Does anyone know how to do it? I don't want to use repeaters (meaning open up "Design" view and create an ad-hoc template).

User avatar
Certified Developer 13
Certified Developer 13
kentico-jx2tech - 3/25/2013 3:56:01 PM
   
RE:Macro for Article Text
try...
{% Documents.WithAllData["/reports/myreport"].ArticleText %}

User avatar
Member
Member
philliptune - 3/25/2013 4:30:36 PM
   
RE:Macro for Article Text
That worked wonderfully. I've been trying to do this for a while and I guess I wasn't asking the right questions. People kept saying "use a repeater, use a repeater". Well this gives my content editors more control now. Thanks jx2tech!