COMMUNITY FORUM
Joomla & K2 SEO - duplicate titles
- Johnnie Kazija
-
Topic Author
- Offline
- Senior Member
Less
More
10 years 5 months ago #56768
by Johnnie Kazija
Joomla & K2 SEO - duplicate titles was created by Johnnie Kazija
I saw that the old forum isnt available anymore so I will try to get a solution maybe here:
on my gulet website: www.gulet.hr Iam using K2 for the listing of our boats:
Gulet Charter K2 Category and I tought everything is fine but as we add more boats I have noticed we get more duplicate titles in any SEO software (SEO profiler or WEB CEO) due to pagination:
Pagination 2 - K2 Category
Pagination 3 - K2 Category
and so on... Is there a solution on this without using additional joomla components like sh404sef...
I was thinking of creating a hidden menu but dont have an idea how to link this pagination with it?
I understand that those pages share the same title over and over again due they are related to same menu item, the only thing that changes is the content due pagination is there: so the more boats I will add - the more items/ K2 articles I create, the more pages with duplicate titles I will you get :-\
any idea? how to solve this issue?
thanks in advance
on my gulet website: www.gulet.hr Iam using K2 for the listing of our boats:
Gulet Charter K2 Category and I tought everything is fine but as we add more boats I have noticed we get more duplicate titles in any SEO software (SEO profiler or WEB CEO) due to pagination:
Pagination 2 - K2 Category
Pagination 3 - K2 Category
and so on... Is there a solution on this without using additional joomla components like sh404sef...
I was thinking of creating a hidden menu but dont have an idea how to link this pagination with it?
I understand that those pages share the same title over and over again due they are related to same menu item, the only thing that changes is the content due pagination is there: so the more boats I will add - the more items/ K2 articles I create, the more pages with duplicate titles I will you get :-\
any idea? how to solve this issue?
thanks in advance
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 5 months ago #99360
by Lefteris
Replied by Lefteris on topic Joomla & K2 SEO - duplicate titles
As the message in the K2 forum page writes:
"We are currently migrating the K2 Community Forum over to the main JoomlaWorks Community Forum as part of the upcoming changes that are introduced from the new K2 version 3. This will take a few hours, so please be patient :)"
Now regarding to your question, you can create a template override and then use some PHP code to alter the title to something like "Title - Page 1" etc. Information regarding K2 overrides can be found at getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates . The PHP code that can set the page title is:Let me know if you need more help with this.
"We are currently migrating the K2 Community Forum over to the main JoomlaWorks Community Forum as part of the upcoming changes that are introduced from the new K2 version 3. This will take a few hours, so please be patient :)"
Now regarding to your question, you can create a template override and then use some PHP code to alter the title to something like "Title - Page 1" etc. Information regarding K2 overrides can be found at getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates . The PHP code that can set the page title is:
<?php
$document = JFactory::getDocument();
$document->setTitle('YOUR TITLE HERE');
?>
Please Log in or Create an account to join the conversation.
- Johnnie Kazija
-
Topic Author
- Offline
- Senior Member
10 years 5 months ago #133811
by Johnnie Kazija
Replied by Johnnie Kazija on topic Joomla & K2 SEO - duplicate titles
Thank you Lefteris for replying, I laready lost my hope it would be possible, because I posted before on other forums like official joomla etc. and no one replied or nobody could help...
I will try this right now and if you dont mind contact you here again whether I succeed or not!?
I will try this right now and if you dont mind contact you here again whether I succeed or not!?
Please Log in or Create an account to join the conversation.
- Johnnie Kazija
-
Topic Author
- Offline
- Senior Member
10 years 5 months ago #133812
by Johnnie Kazija
Replied by Johnnie Kazija on topic Joomla & K2 SEO - duplicate titles
looks I over estimated myself and my knowledge :-)
I have created an override of the entire K2 folder... but now I am stuck because I have no idea where to place that code exactly?
is it default/category_item.php ?
or somewhere else... can you a be little bit more specific?
I have created an override of the entire K2 folder... but now I am stuck because I have no idea where to place that code exactly?
is it default/category_item.php ?
or somewhere else... can you a be little bit more specific?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
10 years 5 months ago - 10 years 5 months ago #133814
by JoomlaWorks
Replied by JoomlaWorks on topic Joomla & K2 SEO - duplicate titles
Moved topic under the "English K2 Community" discussion board.
Last edit: 10 years 5 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.