How do I set unique page titles for blog pages like these?
/news?limitstart=0 /news?start=3 /news?start=6
These are pages of blog articles from my blog page on my site.
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityHow do I set unique page titles for blog pages like these?
/news?limitstart=0 /news?start=3 /news?start=6
These are pages of blog articles from my blog page on my site.
If this menu item is a list of all the blog articles you can simple add canonical tags that will alleviate the duplicate content. Then add unique page titles once you are actually reading the article itself. You will have to dig around and see where you can add this code. You may be able to use something like the FlexiCode Module and publish it into a debug position to add these head links. You will also have to dig around to get your components pagination variable.
$doc = JFactory::getDocument();
$doc->addHeadLink(JURI::current().(($this->pagination->pagesCurrent > 1)?'?start='.($this->pagination->limitstart):''), 'canonical');
if($this->pagination->limitstart - $this->pagination->limit == 0){
$doc->addHeadLink(JUri::current(), 'prev');
}else{
if($this->pagination->limitstart - $this->pagination->limit > 0){
$doc->addHeadLink(JUri::current().'?start='.($this->pagination->limitstart - $this->pagination->limit), 'prev');
}
}
if($this->pagination->pagesTotal > 1){
$doc->addHeadLink(JUri::current().'?start='.($this->pagination->pagesCurrent * $this->pagination->limit), 'next');
}