Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > Resolve Macros View modes: 
User avatar
Member
Member
serdar - CSO GmbH - 8/25/2009 7:02:25 AM
   
Resolve Macros
Hi All,

I want to resolve the mediafile like:{^MediaFileControl|(FileGuid)1d46b68d-d953-41fa-abf2-fa39e5cda252^} from the text field of a document type and I tried to use
CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros(Content). But allways comes {^MediaFileControl|(FileGuid)1d46b68d-d953-41fa-abf2-fa39e5cda252^} as Text on page.

If I use CMSBasicRepeater to check the informations, it can display the media file on page. Which function does CMSBasicRepater use?

Do you have any idea?
Thanks,
Serdar

User avatar
Member
Member
serdar - CSO GmbH - 8/25/2009 8:17:54 AM
   
RE:Resolve Macros
Hi Again,

Thanks to Miroslav, it works finally:

CMS.ExtendedControls.ControlsHelper.ResolveDynamicControls(Control);

Serdar