COMMUNITY FORUM
Metadata information for categories
- LocaLiceR
-
Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Catalin Popescu
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Catalin Popescu
-
- Offline
- New Member
- Posts: 10
Isn't metadata an important part of onpage optimisation? I mean, i worked with K2 so far, and it does some absolutely incredible things, has thousands of options, but NOT A METADATA tab...
This is absolutely strange... I'm dazed.... we build ships that go to Mars and there isn't a table inside to eat a potato? :)
I mean, i appreciate so much this component and the effort that the guys have put into it, but it was so close to perfection and now i realize that... it isn't perfect:|. It's just 99.8% perfect... come on guys... YOU CAN MAKE IT!!!
Anyone knows if in the future it will be available? Category/Item level metadata?
Please Log in or Create an account to join the conversation.
- Terp
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Alucard Asi
-
- Offline
- New Member
- Posts: 14
i have made a recipe website on k2..but dont know how a user can upload recipe or new article on my website....plzz help
it would be highly appreciated if reply is sent on This email address is being protected from spambots. You need JavaScript enabled to view it.
thnx in advance :)
Please Log in or Create an account to join the conversation.
- Wouter VD WERF
-
- Offline
- New Member
- Posts: 6
It's far from ideal but works well.
Please Log in or Create an account to join the conversation.
- badrun badranaya
-
- Offline
- New Member
- Posts: 17
@Wout , Even I type something in my meta categoty description, the page still fetch the global metadata
Wout said:A temporary trick is to enter meta tags manually in the description of the k2 catagory. It's far from ideal but works well.
Please Log in or Create an account to join the conversation.
- Steinar A
-
- Offline
- New Member
- Posts: 4
Didn't realize K2 missed this functionality untill I've created several categories and loads of items...
Please Log in or Create an account to join the conversation.
- Chris Salvato
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- Daphne Christoforidou
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Josh
-
- Offline
- Senior Member
- Posts: 63
How would one go about adding <meta name="description" content="description text" /> into the category.php file to override the global description which appears currently? Where exactly should I place it in category.php?
Please Log in or Create an account to join the conversation.
- badrun badranaya
-
- Offline
- New Member
- Posts: 17
Here is what I did,
Open the file : components/com_k2/templates/default/category.php
just below the code :
defined('_JEXEC') or die('Restricted access');
I added some lines like this :
$document =& JFactory::getDocument();$judul = $this->category->description;$judul = str_replace ("<p>", "", $judul);$judul = str_replace ("</p>", "", $judul);$document->setDescription("Direktori Bisnis Lampung | kategori : $judul ");
You can see the result here (just for example) :
direktori.lampung.cc/pendidikan/perguruan-tinggi.html
Look at the metadata description taken from the category descriptions.
Then make your own.
Note : I used Joomla! 1.5 and K2 v 2.3
Please Log in or Create an account to join the conversation.
- Josh
-
- Offline
- Senior Member
- Posts: 63
Thanks very much for the tip. Works like a dream however I cant believe that this its not possible to put custom meta descriptions in for category list menu items.
Thanks again
Please Log in or Create an account to join the conversation.
- Mus
-
- Offline
- New Member
- Posts: 2
@badrun badranaya : I'm afraid to say that your tip didn't work for me. I did what you said and my categories on site were messed up. I removed the code and everything is back to normal.
We're still waiting for a magic tip to remedy this defect in K2. It's pity such a wonderful joomla solution comes short in terms of Seo :(
Please Log in or Create an account to join the conversation.