Open Graph Plugin changing my og:title description

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
distante
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Jan 2012, 02:39

Open Graph Plugin changing my og:title description

Post by distante »

Hello! this is my first post!

First of all I want to thank you for the Phoca Open Graph Plugin, it is excellent (I already give my review in the joomla site).

Second, I want to ask for some help, or maybe report a bug.

I have in my web site a main "welcome article" as frontpage, so far the plugin work ok, but I recently add a "news" category so I add a module with the blog of this category, since then, the Open Graph Plugin is changing the og:title to the title of the article in the blog module instead of my site title.

I search all the options and can't fix this, the only way to return the og:title to the sitename in the frontpage is either disabling the Open Graph Plugin or unpublish the module.

A little help please.

Regards
distante
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Jan 2012, 02:39

Re: Open Graph Plugin changing my og:title description

Post by distante »

Adding to my question, It's possible to add (in the code) and If statement in this way...

Code: Select all

IF "page is the main page"
Then
     og:title = 'VAR Website title"
Else
og:title = 'var article title"


I'm trying to understand where to do this, but I'm kind off new in joomla so I don't quite understand how the code work there.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph Plugin changing my og:title description

Post by Jan »

Hi, for this you need to do customization - to know which of your page is main and add php if clauses to the plugin code.

Jan
If you find Phoca extensions useful, please support the project
Post Reply