Developer forum

Forum » Feature requests » Implementation Open Graph Protocol tags

Implementation Open Graph Protocol tags

Werner van Schie
Reply

Hi,

I am Werner van Schie, Support Manager from Bluedesk in the Netherlands. We stumbled upon an issue that might be solved with a small change. I feel I can easily share this with you and issue a simple not very technical feature request. I have done some searches on the forum, but couldn't find any duplicate/similar requests - so please find the "application" below.

Description of the problem:  We have customers with news pages  that want to share this on social media like LinkedIn en Facebook. When such a link is opened from LinkedIn (for example), it opens a parent page, not the page itself. This happens in only some installations, however it is causing a lot of frustration at the customer's end. Dynamicweb currently lacks the functionality to generate og: tags (Open Graph Protocol tags) on News-pages.

Feature request: LinkedIn recommends to include OGP-tags into the page source. By doing so, it is fed with the right meta data and it will show the correct page. So I am requesting to implement OGP for News Pages (NewsV2) (and probably CMS pages too however, thats beyond my scope). We'd like to see basic functionality (on News-detail level) to add the basic Open Graph Protocol tags for news (detail) pages. This will cause Dynamicweb to generate these tags as meta properties in the <head> section of NewsV2 news-detail pages. This way LinkedIn and other OGP-using social media platforms will always process the page the right way.

Side readings: Please check http://ogp.me and familiarize yourself a little bit. A simple implementation would do the trick.

I'd like to hear Dynamicweb's/developer's viewpoint on this and if it will be adopted as feature request. If so, how long the cycle will be until it can be found in the software.


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Werner

Sorry for the late response - holidays!

You can easily implement OGP tags already - it is a relatively simple task. There are a number of ways.

  • Best way would be using items for news and not the news module. Using items would make every news item a page - and you can then extend the page with an item type that contains the needed OGP tags.
  • An alternative is to create the OGP tags automatically in the Layout template - simply insert them and use the page title, description etc. to fill them out.
  • Using Newsv2 it is possible to use DW Snippets to move data from the news detail template to the header of the layout template. See: http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/Snippet.aspx

Your developers should be able to do this. They can post in the forums if ellaboration is required.

BR Nicolai

Votes for this answer: 1
 
Werner van Schie
Reply

Thanks for your answer, Nicolai.

We ended up using the DW Snippets functionality.