Hallo zusammen,
ich habe den Versuch gestartet mit der Extension an_searchit die Tabellen von der Extension moc filemanager zu durchsuchen, jedoch ohne erfolg.
Hier der verwendete TS-Code:
...
#new search
temp.searchitConfig{
sections{
1{
title = Seiteninhalt
table = tt_content
fields = header|bodytext|imagecaption
}
2{
title = QMS
table = tx_mocfilemanager_log
header.caption = Zuständige Person
fields = fullpath|mount
PID = 2
}
3{
title = QMS 1
table = tx_mocfilemanager_mounts
fields = pid|path|name
customBody.show = 1
customBody{
title{
length = 0
wrap = | <br />
}
contact{
length = 0
wrap = Kontaktadresse:<br />|<br />
}
}
#select = ORD(LOWER(t.title)) AS letter
#params = no_cache=1&tx_anassocbase_alphabet[letter]=#letter#
PID = 2
}
}
}
temp.searchitForm < plugin.tx_ansearchit_form
temp.searchitForm {
resultPID = 7
format = label,field, button
label.caption= Suche
label.cssStyle = margin-right:10px;
field.title = Bitte geben Sie einen Suchbegriff ein
field.cssStyle = margin-right:10px;
button.caption = suchen
}
temp.searchitOverview < plugin.tx_ansearchit_resOverview
temp.searchitOverview {
config < temp.searchitConfig
headline.show = 1
headline.caption = Gefunden in
headline.wrap = <br /><h3>|</h3><br/>
sections.format = name, count
sections{
NO.wrap = |<br/>
ACT = 1
ACT.doNotLink = 1
ACT.wrap = |<br/>
name.wrap = |
count.wrap = (|)
}
sections.wrap = |<hr style="border:none;border-bottom:solid #C9C9C9;height:1px;”>
noResults.caption = Ihre Suche brachte leider keine Ergebnisse.
}
temp.searchitList < plugin.tx_ansearchit_resList
temp.searchitList{
config < temp.searchitConfig
headline.show = 1
headline.caption = Ergebnisse
headline.wrap = <br/><br/><h3>|</h3><br/>
}
seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/style.css
seite.meta.AUTHOR = shino
seite.meta.DESCRIPTION = Intranet Solution
# Einstellungen für die QM Suche
seite.config.index_enable=1
seite.config.cacheable=1
seite.config.language = de
seite.config.index_externals = 1
# Laden der HTML-Design-Vorlage
seite.10 = TEMPLATE
seite.10.template = FILE
seite.10.template.file = fileadmin/suche.html
#Bearbeiten/Setzen des Menü-Titels
seite.10.marks {
LOGIN < temp1.login
STATUS < plugin
SUCHE < temp.searchitForm
RESULT < temp
....
Das html template kann man hier ein sehen:
<div align="center">
<table width="944" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="261" height="87" valign="top">###MENUE-TITLE###</td>
<td width="678" rowspan="3" valign="top"><div align="center">
<p><img src="fileadmin/images/logo_klein.png" width="559" height="75"></p>
<p>###LOGIN###</p>
</div></td>
<td width="5"> </td>
</tr>
<tr>
<td rowspan="2" valign="top"><a href="http://localhost/index.php?id=7" title="Index basierende Suche" target="_top">Suche</a> | <a href="http://localhost/index.php?id=2" title="System" target="_top">System</a> | <a href="http://localhost/index.php?id=4" title="Hilfe zum System" target="_top">Hilfe</a> </td>
<td height="19"> </td>
</tr>
<tr>
<td height="19" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="37"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="311" colspan="2" valign="top"><p>###SUCHE###</p><p>###RESULT###</p> <p> </p></td>
<td> </td>
</tr>
<tr>
<td height="167" colspan="2" valign="top"><div align="center">
<p></p></p>
<img src="fileadmin/images/fit2gether_einfarbig.png" width="479" height="113"> <p>Intranet Solution</p>
</div></td>
<td> </td>
</tr>
<tr>
<td height="14"></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</body>
</html>
Der Sysordner mit dem Inhalt den es zu durch gilt hat die PID 6, die Suche findet auf der PID 7 statt und der Inhalt des Sysordners wird auf der PID 2 dargestellt.
Alledings funktioniert das ganze nicht #angry# und ich weiß nicht warum :x
Gruß shino