- Posts: 15920
COMMUNITY FORUM
Help with SEO / Pagination
- Krikor Boghossian
- Offline
- Platinum Member
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Lee Collings
- Topic Author
- Offline
- New Member
- Posts: 7
If you're able to provide some links to extensions that will solve this issue, that aren't paid for, I'd really appreciate it.
I'm still very surprised and disappointed that this simple feature seems to be completely left out of Joomla core functionality. Especially as in the Global Configuration there's a setting to 'Enable SEF URLs' that states:
Search engine friendly (SEF), human-readable or clean URLs are URLs that make sense to both humans and search engines because they explain the path to the particular page they point to.
This option should technically apply to pagination links too, in my opinion.
Please Log in or Create an account to join the conversation.
- Lee Collings
- Topic Author
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
For core Joomla! issues you have to address them on Joomla!'s forums.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Ioannis Toutoulis
- Offline
- New Member
- Posts: 8
$doc = JFactory::getDocument();
$pagdata = $this->pagination->getData();
if ($pagdata->next->link) {
$doc->addHeadLink( $pagdata->next->link, 'next');
}
if ($pagdata->previous->link) {
$doc->addHeadLink( $pagdata->previous->link, 'prev');
}
This will not change the url but now google can see which page is next or prev.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Offline
- Platinum Member
- Posts: 438
$doc = JFactory::getDocument();
$pagdata = $this->pagination->getData();
if ($pagdata->next->link) {
$doc->addCustomTag('<link rel="next" href="'.$pagdata->next->link.'" />');
}
if ($pagdata->previous->link) {
$doc->addCustomTag('<link rel="prev" href="'.$pagdata->previous->link.'" />');
}
More on the subjectL
Google treats rel="previous" as a syntactic variant of rel="prev". Values can be either relative or absolute URLs (as allowed by the <link> tag). And, if you include a <base> link in your document, relative paths will resolve according to the base URL.
source: support.google.com/webmasters/answer/1663744?hl=en
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Offline
- Platinum Member
- Posts: 438
?limit=12&start=24
While other K2 sites, such as the JoomlaWorks blog paginated pages display:
?start=6
Why is this? Is this a K2 thing? How can I get a simple /page-2 instead?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
To change the generated URLs you will need an SEO extension.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Offline
- Platinum Member
- Posts: 438
Please Log in or Create an account to join the conversation.