Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > How to show selected category name in HTML envelope View modes: 
User avatar
Member
Member
rgaoau-gmail - 7/22/2013 1:56:12 AM
   
How to show selected category name in HTML envelope
Hi, I have a category list web part and a repeater web part at the same page. When a category in the list has been clicked, it will add this specific categoryid querystring in the URL. The repeater will capture it and list all the blog entries under this specific category.

It works perfect on this case. I would like to show the category name in the repeater. I can show the category id via put in {%categoryid%} in Content Before inside the HTML envelope of the repeater. But how can I retrieve and show the category name by this category id?


User avatar
Member
Member
kentico_davidb2 - 7/22/2013 2:45:32 AM
   
RE:How to show selected category name in HTML envelope
Hi,

you can use the following macro to display current category name (it is based on the querystring):

{%SiteContext.CurrentCategory.DisplayName%}

User avatar
Member
Member
rgaoau-gmail - 7/22/2013 6:15:05 PM
   
RE:How to show selected category name in HTML envelope
Work like a charm! You made my day mate.