---
title: "Suchformular in TypoScript erstellen"
url: "https://www.typo3.net/d/81121-suchformular-in-typoscript-erstellen"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2008-08-27"
last_reply: "2008-08-27"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Suchformular in TypoScript erstellen

TYPO3 › Menüs · 0 Antworten · gestartet 2008-08-27

## Eröffnungsbeitrag

**Thomas01** · 2008-08-27 · [Beitrag #1](https://www.typo3.net/d/81121-suchformular-in-typoscript-erstellen/1)

Hallo,

ich hätte da wieder einmal eine Frage.
Also ich habe jetzt einen "sys"ordner erstellt
und darin in "News Category" Kategorien angelegt.

Nun möchte ich ein Suchformular erstellen, um "News-Beiträge" selektiert nach Kategorien aufzurufen.

Dazu habe ich folgenden Quelltext erstellt. Ich bekomme das Formular aber nicht angezeigt. Den Hinweis habe ich aus einem Webforum. Ist es möglich, so ein Formular z
u erzeugen und Texte aufzurufen?

plugin.tt_news.categorySelection.data = GPVar : categories

get_categories = CONTENT
   get_categories {
       table = tt_news_cat
       select {
       pidInList = 1156
       where = parent_cagtegory=0
       orderBy = templates
   }
   renderObj = COA
   renderObj {
    10 = Rigokat
    10.field = 7
    10.dataWrap=<option value="|">
    10.insertData = 1

    20 = Salal
    20.field = 18
    20.wrap = | </option>

    30 = Rubrik
    30.field = 58
    30.wrap = | </option>
   }
}
lib.news_filter = COA
lib.news_filter {
<form action="Saison" id="7" method="get">
<label for="Rigokat">Rigokat:</label>
<select name="Rigokat" id="7">
<option value="0">Rigokat1</option>
<option value="1">Rigokat2</option>
<option value="2">Rigokat3</option>
</select>

<form action="templates" id="18" method="get">
<label for="Salal">Salal:</label>
<select name="Saison" id="7">
<option value="0">Salal1</option>
<option value="1">Salal2</option>
<option value="2">Salal3</option>
</select>

<form action="templates" id="58" method="get">
<label for="Rubrik">Rubrik:</label>
<select name="Saison" id="7">
<option value="0">RubrikA</option>
<option value="1">RubrikB</option>
<option value="2">RubrikC</option>
<option value="3">RubrikD</option>
</select>

<input type="hidden" name="no_cache" value="0" />
<input type="button" value="Suchen" onclick="filter_news();" />
</form>

<script type="text/javascript" src="Website/tt_news/templates"></script>

function filter_news()
{
	var categories = ' ';
	var.Saison = document.getElementById('7');
	window.location = document.getElementById('7').action +"?categories=8,9,11,13,14,15,16,17" + categories;
	var.Spieltag = document.getElementById('18');
	window.location = document.getElementById('18').action +"?categories=19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57" + categories;
	var.Rubrik = document.getElementById('58');
	window.location = document.getElementById('58').action +"?categories=59,60,61,62" + categories

categories = Rigokat + ',' + Salal + ',' + Rubrik;

---

Quelle: „Suchformular in TypoScript erstellen“, typo3.net, https://www.typo3.net/d/81121-suchformular-in-typoscript-erstellen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
