og: meta for com_tag

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
keramzit_001
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 24 Mar 2016, 09:56

og: meta for com_tag

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: og: meta for com_tag

Post 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
If you find Phoca extensions useful, please support the project
keramzit_001
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 24 Mar 2016, 09:56

Re: og: meta for com_tag

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: og: meta for com_tag

Post 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
If you find Phoca extensions useful, please support the project
Post Reply