Project

General

Profile

Actions

Bug #14178

closed

indexed search [result] (paging, ancor corrupt)

Added by old_mrmodulo almost 20 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2004-05-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

0000112-indexed_search_fix.txt (689 Bytes) 0000112-indexed_search_fix.txt Administrator Admin, 2004-06-09 15:52
Actions #1

Updated by old_mrmodulo almost 20 years ago

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>';
}

Actions #2

Updated by old_herlaar almost 20 years ago

mrmodulo, i've tried that piece of code and it generates an PHP error on line 921, so something is wrong with it.

Actions #3

Updated by miikaawaadizi almost 20 years ago

Check to see if you're using language detection, and if you are, try with it uninstalled? (See 0000139)

Actions #4

Updated by Ingmar Schlecht almost 20 years ago

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.

Actions #5

Updated by old_herlaar almost 20 years ago

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

Actions #6

Updated by old_herlaar almost 20 years ago

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.

Actions #7

Updated by Franz Holzinger almost 20 years ago

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.

Actions #8

Updated by Ingmar Schlecht almost 20 years ago

This is related to the extension RealURL being installed on Typo3.org.

Actions #9

Updated by Michael Stucki over 19 years ago

@Ingmar: Did you refer to Franz' comment or on this bug?

Actions #10

Updated by Franz Holzinger over 19 years ago

The search at http://Typo3.org works now. Great and important!
@Michael Stucki : He has answered to my question.

Actions #11

Updated by Karsten Dambekalns over 18 years ago

With your changes to indexed search, is this fixed as well?

Actions #12

Updated by Michael Stucki over 18 years ago

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.

Actions

Also available in: Atom PDF