1

Closed

Add PortalAlias to context?

description

I tried to add an Open Graph meta tag to the template.
To get Facebook to recognize an image, you have to supply the full url including portal alias.
It would be nice if we could provide that like this:

"detailMeta": "{{#if Banner.url}}<meta property=\"og:image\" content=\"{{Context.PortalAlias}}{{Banner.url}}\" />{{/if}}"

now I have to hardcode the portalalias...
Closed Apr 5 at 7:49 PM by sachatrauwaen

comments

sachatrauwaen wrote Apr 3 at 3:16 PM

In OpenContent 3.2 you can do http://{{Context.HTTPAlias}}{{Image}} for the image

Timo_Design wrote Apr 3 at 4:24 PM

Ok, sorry. I was convinced I already installed 3.2 on this test install, but I was wrong :-(