Keyword

materials on the tag the description field empty

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 6 months ago #148238 by German Levi
Hi, I have a question, when the materials on the tag the description field empty. Can somehow modify or add to the description field? And change the page title?

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

More
8 years 6 months ago #148255 by Lefteris
Hi,

I don't get what you mean. Can you provide more details on this? K2 tags do not have description.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 6 months ago #148267 by German Levi
Replied by German Levi on topic materials on the tag the description field empty
I'm sorry. I just don't speak English. Conclusion materials by tag, site/category/tag/name-tag in the body of the html <meta description=""> it is simply no!

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 6 months ago #148323 by German Levi
Replied by German Levi on topic materials on the tag the description field empty
Please tell me, can we manually add meta description in the output of materials on the tag?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #148396 by Krikor Boghossian
Replied by Krikor Boghossian on topic materials on the tag the description field empty
You can map that tag into a menu item, and use the menu item's meta description field.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 6 months ago #148477 by German Levi
Replied by German Levi on topic materials on the tag the description field empty
Krikor,Yes thank you. I understand what you mean. However, I wanted to somehow fix the situation. Because google analytics curses on the page where the content is displayed on the tag. There is no meta description. This is very important for SEO.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #148485 by Krikor Boghossian
Replied by Krikor Boghossian on topic materials on the tag the description field empty
You can use this function: docs.joomla.org/JDocument/setMetaData in the tag.php to create a generic metadescription for all tag pages.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 6 months ago #148554 by German Levi
Replied by German Levi on topic materials on the tag the description field empty
Thank You,Krikor. Do I understand correctly that this file tag.php located in/templates / name-template/com_k2/default ? However, I have each category has its own template and its tag.php! In some of them to write code? The structure of kataloga com_k2/1-cam_k2 cat/2-cat and so on...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #148570 by Krikor Boghossian
Replied by Krikor Boghossian on topic materials on the tag the description field empty

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • German Levi
  • German Levi's Avatar Topic Author
  • Offline
  • Premium Member
More
8 years 6 months ago #148573 by German Levi
Replied by German Levi on topic materials on the tag the description field empty
Thanks for the support! All done. If anyone needs me, here in the file template-name/html/com_k2/default/tag.php insert code:
<?php
$meta_descr = $this->params->get('page_title');
$doc =& JFactory::getDocument();
$doc->setMetaData('description',$meta_descr);
?>

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


Powered by Kunena Forum