Bug #14178
closed
indexed search [result] (paging, ancor corrupt)
Added by old_mrmodulo about 20 years ago.
Updated almost 18 years ago.
Description
pager doesn't work anymore
this is the same problem like at typo3.org
take a look
or
take a look at my site, there ancoring doesn't work either
http://www.goldkueste.ch/suchen.html
and look for "gastro"
when you hit
page 1 | page 2 | page x
it doesn't work.
also the ancors which are set doesn't work. ( => goes to home)
Installation:
LAMP
Typo3 3.6.1
indexed search 1.2.8
(issue imported from #M112)
Files
anchoring corrected:
corrected anchor link
function printResultSectionLinks() {
$lines=array();
reset($this->resultSections);
while(list($id,$dat)=each($this->resultSections)) {
// added '.$this > pi_getPageLink($GLOBALS["TSFE"] -> id).' if you have a <base> it doesn't work without
$lines[]='<li><a href="'.$this -> pi_getPageLink($GLOBALS["TSFE"] -> id).'#'.md5($id).'">'.(trim($dat0)?htmlspecialchars(trim($dat0)):$this>pi_getLL("unnamedSection")).' ('.$dat1.' '.$this->pi_getLL("word_page".($dat1>1?"s":"")).')</a></li>';
}
$out = '<ul>'.implode(chr(10),$lines).'</ul>';
return '<div'.$this->pi_classParam("sectionlinks").'>'.$this->cObj->stdWrap($out, $this->conf["sectionlinks_stdWrap."]).'</div>';
}
mrmodulo, i've tried that piece of code and it generates an PHP error on line 921, so something is wrong with it.
Check to see if you're using language detection, and if you are, try with it uninstalled? (See 0000139)
please don't post PHP code directly in here anymore, I just dicovered mantis doesn't properly htmlspecialchars() and thus the code isn't output correctly... Better make attachments.
the attacment you attached just does not work, it even makes the problem worse, now the section header links dont even jump to right location one page.
and page 1 - page 2 - page 3 still dont work!
don't have language detection, whatever that is
well i've tried it again , and i do not have language detection.
the piece of code only makes it worse, now the section header links dont work also.
The search at http://Typo3.org does only work for the first page of results.
When you hit
Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Next >
nothing works.
This is related to the extension RealURL being installed on Typo3.org.
@Ingmar: Did you refer to Franz' comment or on this bug?
With your changes to indexed search, is this fixed as well?
I didn't touch this function but I think it is fixed because it works on typo3.org and I've never heard of similar problems since then.
Otherwise, just reopen.
Also available in: Atom
PDF