Page 1 of 1

og: meta for com_tag

Posted: 24 Mar 2016, 10:42
by keramzit_001
Hello! Great plugin! Thank you very much!

Now the plugin handles the tag as a category and displays a description of the blog in "OG:description"

Code: Select all

else if ($view == 'category' && $this->pluginNr == 0){...}

Code: Select all

<meta property="og:type" content="article">
<meta property="og:url" content="http://sergey-tretyakov.ru/tags/shooting-products-for-online-store"><!--url for tags-->
<meta property="og:description" content="My blog description, not for tag">
Please help write a query in SQL to output the correct title and meta description tag

Code: Select all

else if ($view == 'tag' && $this->pluginNr == 0){

$query = '...SELECT title,description FROM #__tags ... '; 
The maximum that I could do this get the array data, but don't know how to make a selection on a particular ID-tag and a record field Meta tag.

Re: og: meta for com_tag

Posted: 27 Mar 2016, 00:37
by Jan
Hi, sorry, I don't understand what you mean with: "handles the tags as category"? The plugin is content plugin which works in com_content :idea:

Jan

Re: og: meta for com_tag

Posted: 27 Mar 2016, 09:14
by keramzit_001
Installed plugin processes and com_tags in joomla 3.4

URL of the page tag

result html:

Code: Select all

<meta property="og:type" content="article">
<meta property="og:url" content="http://sergey-tretyakov.ru/tags/photography-events">
<meta property="og:description" content="The digital portfolio. Blog. Professional photography and photo shoot. Examples of graphics edit and process photos. Detailed reports of completed photo shoots.">
<meta property="og:locale" content="ru_RU">
<meta property="fb:app_id" content="......">
it is possible to write sql query to print the title and description component com_tags?

Re: og: meta for com_tag

Posted: 31 Mar 2016, 14:42
by Jan
Hi, I think, this should be a question on Joomla! developers, I don't have any experiences with com_tags extension :idea: so I cannot give any clue advice regarding com_tags :idea:

Jan