FreewayTalk

7 replies to this thread. Most Recent

claude

25 Oct 2010, 7:01 am

Google open graph code insert to <head></head>. How?

Hi everybody!

I’d like to experiment with the google open graph protocol. This is simply some code I should insert in the <head></head> block.

I know this is trivial to do but how can I do that in FW? Is the “insert Markup item” smart enough to do that?

Here the example code from google page: <head> <title>The Rock (1996)</title> <meta property=”og:title” content=”The Rock”/> <meta property=”og:type” content=”movie”/> <meta property=”og:url” content=”http://www.imdb.com/title/tt0117500/”/> <meta property=”og:image” content=”http://ia.media-imdb.com/rock.jpg”/> <meta property=”og:site_name” content=”IMDb”/> <meta property=”fb:admins” content=”USER_ID”/> <meta property=”og:description” content=”A group of U.S. Marines, under command of a renegade general, take over Alcatraz and threaten San Francisco Bay with biological weapons.”/> … </head> … Tx in advance! Claude Bouillin www.celticcenter.eu

Scottin Pollock

25 Oct 2010, 10:07 am

You want the “HTML Markup” item in the “Page” menu.

claude

25 Oct 2010, 10:13 am

All right. Sounds good, but is it smart enough to insert the code in the right place or is this relevant? Claude Bouillin

On 25 Oct 2010, at 13:07, Solutions Etcetera wrote:

You want the “HTML Markup” item in the “Page” menu.

Scottin Pollock

25 Oct 2010, 10:40 am

You have the choice of “after <head>” or “before </head>, either of which should suit your needs.

claude

25 Oct 2010, 11:05 am

The Page->insert HTML markup menu gives me a choice many places of insertion. The default is “before </head>” . I don’t think this is appropriate in the case of the following code.

An alternative could to split the nested blocks in 2. Like this:

  • The <head>…</head> inserted after <head>

  • The (without the nested head part treated like above) inserted after

But i’ll have to edit this code and I am not keen on it… Any idea anyone ho I can simply insert this code in my page?

<html xmlns="http://www.w3.org/1999/xhtml"     xmlns:og="http://opengraphprotocol.org/schema/"     xmlns:fb="http://www.facebook.com/2008/fbml">
   <head>
 <title>The Rock (1996)</title>
 <meta property="og:title" content="The Rock"/>
 <meta property="og:type" content="movie"/>
 <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
 <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
 <meta property="og:site_name" content="IMDb"/>
 <meta property="fb:admins" content="USER_ID"/>
 <meta property="og:description"           content="A group of U.S. Marines, under command of                    a renegade general, take over Alcatraz and                    threaten San Francisco Bay with biological                    weapons."/>

</head> Claude Bouillin www.celticcenter.eu

On 25 Oct 2010, at 13:40, Solutions Etcetera wrote:

You have the choice of “after <head>” or “before </head>, either of which should suit your needs.

JDW

7 Feb 2020, 7:41 am

It’s now 10 years later and still no solution on how to add content INSIDE the HTML or HEAD tags using Freeway Pro 7.

FaceBook today in 2020 uses Open Graph which requires this:

<html prefix="og: <http://ogp.me/ns#">>

HTML Markup doesn’t allow us to do that. We need to add that “prefix” INSIDE the HTML or HEAD tags.

Believe me, I’ve tried the Action “solutions” to no avail…

Tim’s “Meta Plus” Action is ancient and still references Flash! https://www.actionsforge.com/actions/meta-plus

Ian’s “Facebook Open Graph Meta Tags” Action adds the meta tags but then doesn’t change the HTML or HEAD tags as required! What the…! https://www.actionsforge.com/actions/facebook-open-graph-meta-tags

How in THE world do we edit the HTML or HEAD tags in Freeway Pro 7?

—James Wages

Jeremy Hughes

14 Feb 2020, 11:05 am

Hi James,

Try using the “Better Meta” Action:

https://www.softpress.com/kb/questions/528/The+Better+Meta+Action

Jeremy

On 7 Feb 2020, at 07:41, JDW <[email protected]> wrote:

It’s now 10 years later and still no solution on how to add content INSIDE the HTML or HEAD tags using Freeway Pro 7.

FaceBook today in 2020 uses Open Graph which requires this:

<html prefix="og: <http://ogp.me/ns#">>

HTML Markup doesn’t allow us to do that. We need to add that “prefix” INSIDE the HTML or HEAD tags.

Believe me, I’ve tried the Action “solutions” to no avail…

Back to Top

JDW

17 Feb 2020, 3:02 am

Perfect solution!

Thank you, Jeremy!

—James Wages