Hallo Leute,
habe gerade ein Paar Probleme mit indexed search. Meine Seiten werden nicht Indiziert, obwohl ich die Einstellungen gemacht hab, die hier schon oft im Forum genannt wurden. Deshalb hier mal der Code, villeicht fällt ja euch etwas auf.
seite = PAGE
seite {
#Indexed Search
config.index_enable = 1
config.index_externals = 1
config.no_cache = 0
typeNum = 0
bodyTag = <body bgcolor="black">
stylesheet = fileadmin/style.css
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/pr0n_vorlage.html
10.workOnSubpart = DOKUMENT
10.marks {
BANNER < plugin.tx_macinabanners_pi1
BANNER {
# show banners with this attribute, options are: top, left, bottom, right
placement = top
#mode to show banners, options are: all, random
mode = random
# list of page ids where the banners should be taken from ( comma seperated f.E.: 1,5,7)
pidList = 49
# levels of recoursion to search for banners
recursive = 0
# Limit numeber of Banners
results_at_a_time = 3
}
MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 25
MENU_OBEN.1 = TMENU
MENU_OBEN.1.NO = 1
MENU_OBEN.1.NO.ATagParams = class="linkWeiss"
MENU_OBEN.1.NO.linkWrap = |
HEADER_LINKS = TEXT
HEADER_LINKS.value = free pics
HEADER_LINKS.fontSize = 18
MENU_LINKS = HMENU
MENU_LINKS.special = directory
MENU_LINKS.special.value = 33
MENU_LINKS.1 = TMENU
MENU_LINKS.1.NO = 1
MENU_LINKS.1.NO.ATagParams = class="linkPics"
MENU_LINKS.1.NO.linkWrap = <br /> |
CONTENT = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}
STATIC = CONTENT
STATIC {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}
}
#Simulate Static Document
config.simulateStaticDocuments = 1
config.simulateStaticDocuments_addTitle = 30
}
plugin.tt_news.wrap1.wrap = <font face="Comic Sans MS" size="2" color="white"> | </font>
plugin.tt_news.wrap2.wrap = <font face="Comic Sans MS" size="1" color="white"> | </font>
plugin.tt_news.templateFile = fileadmin/news_template.tmpl
plugin.tt_news.displayList.image.file.maxW = 66
plugin.tt_news.limit = 15
plugin.tx_indexedsearch.search.rootPidList="22"
Komisch ist, wenn ich
seite.10 < styles.content
eintrage, wird die Seite indiziert, die da angezeigt wird. Leider besteht dann meine Homepage nur noch aus einer leeren Seite. Weiß jemand von euch villeicht eine Lösung?
Danke schonmal.
Sigi
Wahrscheinlich fehlt in der HTML-Vorlage dieses hier :
<!--TYPO3SEARCH_begin-->
###CONTENT_MAIN###
<!--TYPO3SEARCH_end-->
jenses
Ne, das habe ich eingefügt. Hier poste ich mal die Vorlage.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<!-- ###DOKUMENT### begin -->
<table width="1024" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20" height="22" bgcolor="#000000"></td>
<td width="1004" height="22" colspan="4" bgcolor="#000000"></td>
</tr>
<tr>
<td width="20" height="80" bgcolor="#000000"></td>
<td width="232"><img src="fileadmin/images/4.jpg" width="232" height="80" border="0" alt="" /></a></td>
<td width="150"><img src="fileadmin/images/5.jpg" width="150" height="80" alt="" /></td>
<td width="381">###BANNER###</td>
<td width="242" bgcolor="#000000"><img src="fileadmin/images/7.jpg" width="154" height="80" alt="" /></td>
</tr>
<tr>
<td width="20" height="36" bgcolor="#000000"></td>
<td><img src="fileadmin/images/19.jpg" width="232" height="36" alt="" /></td>
<td><img src="fileadmin/images/20.jpg" width="150" height="36" alt="" /></td>
<td><img src="fileadmin/images/8.jpg" width="468" height="36" alt="" /></td>
<td width="154" height="36" bgcolor="#000000"></td>
</tr>
<tr>
<td><img src="fileadmin/images/9.jpg" width="20" height="25" alt="" /></td>
<td colspan="4" bgcolor="#000000"><table width="1004" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="381">
###SEARCH###
</td>
<td width="623" bgcolor="#000000">###MENU_OBEN###</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#000000">
<td width="1024" height="32" colspan="5"></td>
</tr>
<tr>
<td height="71" bgcolor="#000000"> </td>
<td colspan="4"><table width="1072" height="19" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="149" height="19" valign="top">###HEADER_LINKS######MENU_LINKS###</td>
<td width="664" valign="top">
<!--TYPO3SEARCH_begin-->
###CONTENT###
<!--TYPO3SEARCH_end-->
</td>
<td width="19" bgcolor="#000000"> </td>
<td width="240" valign="top" align="left">
###STATIC###
</td>
</tr>
</table></td>
</tr>
</table>
<!-- ###DOKUMENT### end -->
</body>
</html>
Hab schon viel probiert, aber es funktioniert noch nicht 🙁
Indiziert werden nur gecachede Seite.
Da könnte ja irgendein PlugIn den Seitencache deaktiviert haben,
z.B. das Banner-Dingens.
jenses
Stimmt.. habe geraede probiert. Wenn ich das tt_news und
BANNER < plugin.tx_macinabanners_pi1
BANNER {
# show banners with this attribute, options are: top, left, bottom, right
placement = top
#mode to show banners, options are: all, random
mode = random
# list of page ids where the banners should be taken from ( comma seperated f.E.: 1,5,7)
pidList = 49
# levels of recoursion to search for banners
recursive = 0
# Limit numeber of Banners
results_at_a_time = 3
}
von der Seite entferne, wird sie gecacht. Zu tt_news hab ich schon mal was gelesen, aber weiß jemand wieso Advanced Banner Management die Seiten am cachen hindert? Oder kennt jemand einen workaround?
Danke schonmal
Zumindestens bei einer aktuellen tt_news Version kannn man sehr einfach den Cache ein- und abschalten.
Die Banner-Extension darfst du nicht im random-mode betreiben, denn :
// set no cache if random mode
if ($conf['mode'] == 'random') {
global $TSFE;
$TSFE->set_no_cache();
}
jenses
Hm.. es sollte aber nicht immer der gleiche Banner angezeigt werden... kann man diese Zeilen die du zeigst villeicht au-kommentieren? Villeicht funktionierts ja trotzdem. Oder gibt es villeicht eine Möglichkeit die Banner nach einander anzuzeigen? In den Modes steht leider nur random und all. Un alle Banner gleichzeitig anzuzeigen ist Blödsinn..
Aus welcher Datei hast du denn den Code-Schnipsel raus kopiert?
Aus der pi/class....php, na die Hauptklasse eben.
Rotierende Banner und gecachte Seiten sind aber irgendwie ein Widerspruch in sich selbst, meinst du nicht ? 😉