Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Using page meta data in a macro View modes: 
User avatar
Member
Member
DanM - 12/13/2013 8:04:24 AM
   
Using page meta data in a macro
Hi,

I'm using the portal method to develop my site and I want to include og and twitter card meta data in the header of my pages.

I am editing the master template and adding in the head data with a few macros to populate it.

This works -
<meta content="{% DocumentName %}" property="og:title">

This doesn't -
<meta content="{% CurrentPageInfo.Description %}.
This is what the metadata field appears to be called though.

Does anyone have any idea of how to get this data from a macro?

Is there any resource online that shows exactly what you can and cant get from a macro?
As someone who is developing almost exclusively within the portal, this is definitely the most frustrating and time consuming thing to work out: What exactly do I have to do to get certain info from a macro? Is it even possible?

I've been using trial and error up until now.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/13/2013 11:16:34 AM
   
RE:Using page meta data in a macro
Dan, sorry for not giving you a direct answer but have you tried using the debug feature Kentico offers? This will give you exactly what is queried, rendered or how a macro's results are determined along with about a million other things for every page. You might check that out as well.

Its been a huge time saver for me when it comes to queries and complex macros.

Brenden

User avatar
Member
Member
DanM - 12/13/2013 11:30:07 AM
   
RE:Using page meta data in a macro
Cool, thanks!
I'll give it a go and let you know.