Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Metadata Addition 20 Oct 2015 17:37 #13605

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Anyone successfully integrated meta data such as Open Graph into their component?

I.e all data is taken from data entered into your component rather than site wide / menu meta data from a general site meta plugin
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Metadata Addition 30 Oct 2015 08:29 #13651

No, but you can use (for example):

$doc = JFactory::getDocument();
$doc->setMetaData( 'og:title', 'Title' );

You can use it in your display funcion in the view.html.php of a record if you need information from a record or anywhere else.
As long as you use de getDocument en setMetdaData, it will end up in the head of your page.

api.joomla.org/cms-3/classes/JDocument.html#method_setMetaData
The following user(s) said Thank You: MorganL

Please Log in or Create an account to join the conversation.

Last edit: by Romkabouter.

Metadata Addition 30 Oct 2015 10:23 #13652

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Well found!
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.083 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started