← Back to team overview

mahara-contributors team mailing list archive

[Bug 1154943] [NEW] Admin settings for OpenGraph (Facebook) tags

 

Public bug reported:

In https://bugs.launchpad.net/mahara/+bug/1072850 we added OpenGraph
tags to the standard Mahara header template. These are primarily
consumed by Facebook when people "share" a URL by pasting it into their
wall or a comment. They provide the following:

1. A name for the page
2. A description of the page
3. An image for the page

The page name comes from $PAGETITLE, the same thing as our <title> tag,
so that's good. It winds up being the site name (configurable via the
admin screens) and the page name.

The Site description, though, is a hard-coded lang string. So, we should
perhaps add an admin config option for that. (Would there be other uses
for it? Would it make sense to vary it on different pages -- like use
the Page description when viewing a Page?)

The logo is the theme's site-logo4facebook.png file. Presumably people
designing their own custom theme know to replace site-logo.png, but we
need to make sure they'll know to replace site-logo4facebook.png as
well. Or change the code to use site-logo.png, if there is no site-
logo4facebook.png present?

** Affects: mahara
     Importance: Medium
         Status: Triaged

** Changed in: mahara
    Milestone: None => 1.8.0

** Changed in: mahara
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1154943

Title:
  Admin settings for OpenGraph (Facebook) tags

Status in Mahara ePortfolio:
  Triaged

Bug description:
  In https://bugs.launchpad.net/mahara/+bug/1072850 we added OpenGraph
  tags to the standard Mahara header template. These are primarily
  consumed by Facebook when people "share" a URL by pasting it into
  their wall or a comment. They provide the following:

  1. A name for the page
  2. A description of the page
  3. An image for the page

  The page name comes from $PAGETITLE, the same thing as our <title>
  tag, so that's good. It winds up being the site name (configurable via
  the admin screens) and the page name.

  The Site description, though, is a hard-coded lang string. So, we
  should perhaps add an admin config option for that. (Would there be
  other uses for it? Would it make sense to vary it on different pages
  -- like use the Page description when viewing a Page?)

  The logo is the theme's site-logo4facebook.png file. Presumably people
  designing their own custom theme know to replace site-logo.png, but we
  need to make sure they'll know to replace site-logo4facebook.png as
  well. Or change the code to use site-logo.png, if there is no site-
  logo4facebook.png present?

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1154943/+subscriptions


Follow ups

References