Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Macro Is Not Resolved In HTML Envelope View modes: 
User avatar
Member
Member
staymo-163 - 8/1/2012 3:47:12 AM
   
Macro Is Not Resolved In HTML Envelope
Hi,
I installed the intranet portal template. I found on the home page of the workgroup, the "Html Envelope -> Content After" property of the WorkGroup_LatestNews and the Workgroup_LatestBlogPosts web parts are both using macro:
<a href="~/Workgroups/{%communitycontext.currentgroup.groupname%}/Blogs/Blog-posts.aspx">
The macro text is rendered directly to the web page without any reslove work made.
Why? Please kindly help me. Thanks!

Regards,
Dennis


User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/1/2012 6:35:22 AM
   
RE:Macro Is Not Resolved In HTML Envelope
Hello,

Could you please try to use a different macro expression, just to check, if macros are resolved correctly? For example, I've tried the one below and it works just fine:

{% CurrentUser.UserName%}

Additionally, please make sure you have the Disable macros property unchecked (set to false).

Best regards,
Boris Pocatko

User avatar
Member
Member
staymo-163 - 8/3/2012 3:55:21 AM
   
RE:Macro Is Not Resolved In HTML Envelope
Thanks for your help.
I found out why finally. I made ContentAfter field of the widget editable ... and Kentico just doesn't resolve public properties, right? that's way.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/3/2012 6:40:51 AM
   
RE:Macro Is Not Resolved In HTML Envelope
Hello,

Yes, that's correct. For security purposes aren't public fields checked for macros.

Best regards,
Boris Pocatko

User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 10/16/2012 10:50:51 AM
   
RE:Macro Is Not Resolved In HTML Envelope
Hi,

I am facing problem in rendering following in HTML.. I am using Kentico 6.0.4279.

{^widget|(containertitle)Container+title|(disablemacros)False|(widget_displayname)On-line+form|(container)Form1|(bizformname)ContactUs|(disableviewstate)False|(usecolonbehindlabel)True|(visible)True|(image_guid)c99e75ad-dce9-4cf0-a561-79e249ffd41c|(name)BizForm|(useupdatepanel)False|(width)|(height)^}

. I have added widget in HTML editor. and while displaying I am displaying the fields data in ASP:Label with InnerHTML property. Here it is displaying this widget like this.

Please give me a solution as It is very important thing to be resolved


thanks and regards.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/17/2012 5:04:58 AM
   
RE:Macro Is Not Resolved In HTML Envelope
Hi,

could you please apply the latest hotfix for 6.0 version? In a default version was a bug and controls inserted as widgets in the editable text area were not resolved correctly. I am sorry for inconvenience.

Best regards,
Ivana Tomanickova