[TYPO3-UG Denmark] indexering af FE ext. med pdf'er

Lars larsv.msn at gmail.com
Thu Sep 10 09:14:06 CEST 2009


Jeg har forsøgt både at sætte $this->pi_USER_INT_obj = 1; til 0 og 
udkommenteret den.

Uden nogen forskel.

Er der noget jeg misforstår her ?

Vh
Lars



Peter Klein skrev:
> Hej Lars.
> 
> Hvis din extension er en USER_INT ext (Og det tyder det på iflg. den her 
> linie $this->pi_USER_INT_obj = 1;), så vil dens output ikke blive indexeret.
> 
> MvH
> Peter Klein / Umloud Untd
> 
> "Lars" <larsv.msn at gmail.com> wrote in message 
> news:mailman.1.1252506258.9451.typo3-ug-denmark at lists.netfielders.de...
>> Hej fantastiske liste.
>>
>> Jeg har lavet en FE extention, der viser en liste af pdf filer.
>> Jeg får dog ikke indexeret PDF'erne jeg har på listen. Og det er mit 
>> egentlige problem!
>>
>> Det skal selvf. lige nævnes at PDF filer, der er sat ind via RTE, BLIVER 
>> indexeret!
>> Jeg får pakket listen ind i <!--TYPO3SEARCH_begin--> og ..end.
>>
>> Jeg håber nogle af jer har et hint til hvordan jeg kommer videre!
>> På forhånd tak
>>
>> /Lars
>>
>> **Koden
>>
>> function main($content,$conf) {
>> $this->conf=$conf;
>> $this->pi_setPiVarDefaults();
>> $this->pi_loadLL();
>> $this->pi_USER_INT_obj = 1;
>>
>>
>> // Preconfigure the typolink
>>     $this->local_cObj = t3lib_div::makeInstance("tslib_cObj");
>>     $this->local_cObj->setCurrentVal($GLOBALS["TSFE"]->id);
>>     $this->typolink_conf = $this->conf["typolink."];
>>     $this->typolink_conf["parameter."]["current"] = 1;
>>     //$this->typolink_conf["parameter."]["filerefs"] = "";
>>     $this->typolink_conf["additionalParams"] = 
>> $this->cObj->stdWrap($this->typolink_conf["additionalParams"], 
>> $this->typolink_conf["additionalParams."]);
>>     unset($this->typolink_conf["additionalParams."]);
>>
>> //t3lib_div::print_array($this->typolink_conf);
>>     // Configure caching
>>     $this->allowCaching = $this->conf["allowCaching"]?1:0;
>>     if (!$this->allowCaching) {
>>       $GLOBALS["TSFE"]->set_no_cache();
>>     }
>> $show = $this->piVars['sort'] ? $this->piVars['sort'] : 'A';
>>
>> $alfabet = 
>> 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,Æ,Ø,Å,NUM';
>> $ei = explode(",",$alfabet);
>>
>> $content = '<div class="alfabet">';
>> foreach($ei as $k => $v) {
>>
>> $temp_conf = $this->typolink_conf; $temp_conf["additionalParams"] .= 
>> "&tx_hfbrumbehovview_pi1[sort]=".$v;
>> $temp_conf["useCacheHash"] = $this->allowCaching;
>> $temp_conf["no_cache"] = !$this->allowCaching;
>> $ABC_link = $this->local_cObj->typolink($v, $temp_conf);
>>
>> if ($show == $v) {
>> $content .= '<span class="selected">'.$v.'</span>';
>> }
>> else { //$content .= '<a 
>> href="'.$this->pi_getPageLink($GLOBALS['TSFE']->id,'',array($this->prefixId."[sort]" 
>> => $v)).'">'.$v.'</a>';
>> $content .= $ABC_link; }
>> } $content .= '</div><br/>';
>>
>> $select_fields = 'DISTINCT(name), fil_url, page';
>> $from_table = 'hfb_rumbehov';
>> $where_clause = '';
>> $groupBy = 'name';
>> $orderBy = 'name ASC';
>> $limit = '';
>> $uidIndexField = '';
>>
>> $res = 
>> $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit,$uidIndexField);
>> $content .= '<table class="gamle_vare"><tr><td 
>> class="liste_header">Stikord</td><td class="liste_header">Side</td></tr>';
>> foreach ($res as $k => $v) { $n = is_numeric(substr($v['name'],0,1)); if 
>> ($show == substr($v['name'],0,1) && $show != 'NUM') { $content .= '<tr><td 
>> class="fagstof_liste_navn"><a href="'.$v['fil_url'].'" 
>> target="_blank">'.$v['name'].'</a></td><td 
>> class="fagstof_liste_side">'.$v['page'].'</td></tr>'; }
>> if ($show == 'NUM' && $n ) { $content .= 
>> '<tr"><td>'.$v['name'].'</td><td><a 
>> href="'.$v['fil_url'].'">'.$v['page'].'</a></td></tr>';
>> }
>> } $content .= '</table>'; return $this->pi_wrapInBaseClass($content);
>> } 
> 
> 


More information about the TYPO3-UG-Denmark mailing list