GurhanCagin
GurhanCagin

Reputation: 185

Add Open Graph Data from MySQL in Joomla

I have a web site built in Joomla 3.x, and I am using it to store recipes. It stores recipes in MySQL database.

Link to Site

I am using single PHP page to show any recipe, and because of this, I am not able to update page title, or open graph metadata's in page, as they already loaded in Joomla before my PHP article page is loading.

Is there any way to load these metadata in header from MySQL ? I am searching solution for this very long time, I tried many plugins but never succeed.

Thanks a lot

Upvotes: 0

Views: 66

Answers (1)

webaholik
webaholik

Reputation: 1795

You should be able to do something like this:

$this->params->set('page_heading', "My New Title");

As answered in the Joomla community: https://joomla.stackexchange.com/questions/17912/how-can-i-set-the-page-heading-via-the-joomla-api

Upvotes: 1

Related Questions