Zum Inhalt springen

machina_searchbox

Erstellt am 9. März 2013 · 1 Antwort · letzte Antwort am 10. März 2013

Tags: Suche, Frage

Unbekannter Benutzer ·

Hey, hab bei die machina_searchbox bei mir eigebunden, funktioniert auch alles so weit. Nur blick ich beim Template gar nicht durch, wie ich das anpassen kann #paralyzed#

Hoffentlich kann mir einer das mal erklären, will eigentlich nur eine einfache Einfache Suche nach folgendem Schema:

Bild: s1.directupload.net/…/8nj8237l.png

#topbar #search{
	display:block;
	float:right;
	width:242px;
	height:36px;
	margin:0;
	padding:10px 0 0 17px;
	color:#FFFFFF;
	background-color:#000000;
	border-left:1px dotted #666666;
	overflow:hidden;
	}

#topbar input{
	display:block;
	float:left;
	width:155px;
	margin:0 5px 0 0;
	padding:5px;
	color:#B6B6B6;
	background-color:#525252;
	border:1px solid #343434;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:12px;
	}

#topbar input#go{
	width:68px;
	height:26px;
	margin:0;
	padding:4px 0;
	text-transform:uppercase;
	color:#FFFFFF;
	background-color:#059BD8;
	border-color:#396B86;
	cursor:pointer;
	font-weight:bold;
	}
Unbekannter Benutzer · · Beste Antwort

Habs jetzt mal ausporbiert, jedoch wird nichts neues gezeigt.

Hier mein TS:

lib.search < plugin.tx_macinasearchbox_pi1
plugin.tx_macinasearchbox_pi1 {
pidSearchpage = 23
templateFile = fileadmin/templates/template_mc.html
}

Hier mein Template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Template file for the&quot;macina_searchbox&quot;extension.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="styles/mc_sb.css" type="text/css" />
</head>
<body>
<h3>Template file for the &quot;macina_searchbox&quot; extension.</h3>
<p><b>Available Markers:</b></p>
<ul>
<li>###HEADLINE### Displays the Headline</li>
<li>###ADVANCED### Advanced Search Link</li>
<li>###SUBMIT### Alttext for the submit button</li>
<li>###ACTLANG### UID of the actual language</li>
<li>###SEARCHPID### PID of the Searchpage</li>
</ul>
<!-- ###TEMPLATE### begin -->
<form action="#" method="post">
<fieldset>
<legend>Site Search</legend>
<input name="tx_indexedsearch[sword]" type="text" />
<input name="tx_indexedsearch[submit_button]" type="submit" />
<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />
<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
<input type="hidden" name="tx_indexedsearch[ext]" value="0" />
<input type="hidden" name="tx_indexedsearch[lang]" value="###ACTLANG###" />
</fieldset>
</form>
<!-- ###TEMPLATE### end -->
</body>
</html>

Hier meine CSS:

#?tx_indexedsearch[sword]{
display:block;
float:left;
width:155px;
margin:0 5px 0 0;
padding:5px;
color:#B6B6B6;
background-color:#525252;
border:1px solid #343434;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}

#tx_indexedsearch[submit_button] #tx_indexedsearch[_sections] #tx_indexedsearch[pointer] #tx_indexedsearch[ext] #tx_indexedsearch[lang]{
width:68px;
height:26px;
margin:0;
padding:4px 0;
text-transform:uppercase;
color:#FFFFFF;
background-color:#059BD8;
border-color:#396B86;
cursor:pointer;
font-weight:bold;
}