I am trying to use the image field under Page >> Form tab... Hoping to use this field for a Facebook Open graph image. What is the marco method for this value?
Also is this the best way, can I add a field maybe under Metadata? Thanks David
If you are on the page, any Form tab data is passed into the macro context. So if your image is called "TeaserImage" then {% TeaserImage %} will pull the value. Take note though that that 'value' may be the GUID, so you may need to either reference the GetMedia page to get the proper image path, or change your form to a URL selector.
{% TeaserImage %}
Thanks, I will try the Teaser Image.
I did get the macro to work with CurrentDocument.CategoryNavigationImage. You have to append the domain and remove ~ to set up as open graph image tag, but it works...
Please, sign in to be able to submit a new answer.