- Posts: 24
- Thank you received: 0
Any questions about Documents Sellers, post it here .
Issue for meta-keywords and meta-description
- claudiodestasio
- Topic Author
- Offline
- Junior Member
Less
More
12 years 10 months ago #13748
by claudiodestasio
Issue for meta-keywords and meta-description was created by claudiodestasio
Hi, sorry for my bad english!
How to set meta-keywords and meta-description of the top level category?
I create a menu type "Categories List" (com_dms » com_dms_categories_VIEW_DEFAULT_TITLE) pointing to category Top.
The page created has the default metatags of the site. Then if i navigate to a specified category, metatags are the proper of the category.
I need to set metadata also for the top category.
I try solving creating a new parent category (so i can set metadata) and making all other categories as sub-categories and finally pointing menu type "categories list" to this new parent catagory. No result.
It's possible modify the view.html.php to use the metadata that was set for menu item configuration?
Also a temporary solution (such as setting metadata directly in php code) was for me satisfactory!
How to set meta-keywords and meta-description of the top level category?
I create a menu type "Categories List" (com_dms » com_dms_categories_VIEW_DEFAULT_TITLE) pointing to category Top.
The page created has the default metatags of the site. Then if i navigate to a specified category, metatags are the proper of the category.
I need to set metadata also for the top category.
I try solving creating a new parent category (so i can set metadata) and making all other categories as sub-categories and finally pointing menu type "categories list" to this new parent catagory. No result.
It's possible modify the view.html.php to use the metadata that was set for menu item configuration?
Also a temporary solution (such as setting metadata directly in php code) was for me satisfactory!
Please Log in or Create an account to join the conversation.
- claudiodestasio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
12 years 10 months ago - 12 years 10 months ago #13750
by claudiodestasio
Replied by claudiodestasio on topic Re: Issue for meta-keywords and meta-description
Addendum.
It's possible to invoke the "os facebook traffic" from a specified category of DMS?
I tried with {loadposition xxxx} inserted on short category description but the content is not processed.
The page is www.studiodestasio.it/materiale-da-scaricare.html
This because if an user clik on like button, the page description is the site default one.
So i need to set metakeywords and metadescription for the top level or invoke the OS facebook traffic module AFTER the user selected a specified category.
Second solution would be preferable (for me!).
It's possible to invoke the "os facebook traffic" from a specified category of DMS?
I tried with {loadposition xxxx} inserted on short category description but the content is not processed.
The page is www.studiodestasio.it/materiale-da-scaricare.html
This because if an user clik on like button, the page description is the site default one.
So i need to set metakeywords and metadescription for the top level or invoke the OS facebook traffic module AFTER the user selected a specified category.
Second solution would be preferable (for me!).
Last edit: 12 years 10 months ago by claudiodestasio.
Please Log in or Create an account to join the conversation.
- claudiodestasio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
12 years 10 months ago #13841
by claudiodestasio
Replied by claudiodestasio on topic Re: Issue for meta-keywords and meta-description
Any solution?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 10 months ago #13851
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Issue for meta-keywords and meta-description
Hi
You can edit the code directly to setup meta data for categories page (right now, the system doesn't use meta data for categories page). The steps are :
1. Open the file components/com_dms/views/categories/view.html.php
2. Add the code below to display function :
$document = & JFactory::getDocument();
$document->setMetaData('keywords', 'The keywords you want');
$document->setMetaData('description', 'The description you want');
After that, it should work as expected !
Regards,
Tuan
You can edit the code directly to setup meta data for categories page (right now, the system doesn't use meta data for categories page). The steps are :
1. Open the file components/com_dms/views/categories/view.html.php
2. Add the code below to display function :
$document = & JFactory::getDocument();
$document->setMetaData('keywords', 'The keywords you want');
$document->setMetaData('description', 'The description you want');
After that, it should work as expected !
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- claudiodestasio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
12 years 10 months ago - 12 years 10 months ago #13852
by claudiodestasio
Replied by claudiodestasio on topic Re: Issue for meta-keywords and meta-description
Great! many many thank's! Now is perfect!!!
Two questions again:
1) Would be possible integrate the OS facebook traffic module only for specified category?
(the topic: joomdonation.com/index.php?option=com_ku...id=78&id=13662#13762 )
2) In the back end the sort option dont' work! (the topic: joomdonation.com/index.php?option=com_ku...id=49&id=12344#13840 )
Two questions again:
1) Would be possible integrate the OS facebook traffic module only for specified category?
(the topic: joomdonation.com/index.php?option=com_ku...id=78&id=13662#13762 )
2) In the back end the sort option dont' work! (the topic: joomdonation.com/index.php?option=com_ku...id=49&id=12344#13840 )
Last edit: 12 years 10 months ago by claudiodestasio.
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.