EtchUK / Etch.OrchardCore.SEO

Module for Orchard Core that provides useful features for SEO.
MIT License
17 stars 10 forks source link

How to add custom metadata tags? #67

Closed devlife closed 3 years ago

devlife commented 3 years ago

It looks like LinkedIn uses an og:image like this:

<meta name="image" property="og:image" content="[Image URL here]">

Is there any way to add this custom tag?

peterkeating commented 3 years ago

@devlife If you're using our fields module there is a dictionary field for defining custom properties.

https://github.com/EtchUK/Etch.OrchardCore.SEO/blob/f2c092b8674e19ddd6c36d2b9a2e7a7789289761/MetaTags/Services/MetaTagsService.cs#L101

devlife commented 3 years ago

Ah I didn't know about the fields module. However, it doesn't allow the use of the property property on the meta tag. I submitted PR #69