Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Show webpart only on Homepage? View modes: 
User avatar
Member
Member
PedroM - 6/3/2011 6:59:32 AM
   
Show webpart only on Homepage?
Hi,

There is a way to only show a web part on Homepage?

Im trying to use macros in Visibility property :

{%currentdocument.documentnamepath%} RETURN TRUE

Can someone give me an example how to use it?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 6/3/2011 8:09:34 AM
   
RE:Show webpart only on Homepage?
Hello,

Of course. The following macro should work:

{%if (currentpageinfo.documentname == "Home") { "true" } else { "false" }%}

For more information on macros please check our documentation and this blog.

Best regards,
Boris Pocatko

User avatar
Member
Member
PedroM - 6/3/2011 8:13:54 AM
   
RE:Show webpart only on Homepage?
Thank you very much

Regards