Alles ist so kompliziert!
Irgendwo hab ich noch einen Hundling !?
Code: Alles auswählen
<we:form id="self">
<label><input name="hosting" type="checkbox" value="1" /> *nur Hosting</label>
<label><input name="ssl" type="checkbox" value="1" /> *SSL</label>
<label><input name="d46" type="checkbox" value="d46" /> *d46</label>
<label><input name="maps" type="checkbox" value="1" /> *Google Maps</label>
<label><input name="entwurf" type="checkbox" value="1" /> *Entwurf</label>
<button type="reset">Zurücksetzen</button>
<button type="submit">Filtern</button>
</we:form>
<we:condition name="condi">
<we:conditionAdd field="Nurhosting" compare="=" type="request" var="hosting" /><we:conditionAnd />
<we:conditionAdd field="SSL" compare="=" type="request" var="ssl" /><we:conditionAnd />
<we:conditionAdd field="Server" compare="=" type="request" var="d46" /><we:conditionAnd />
<we:conditionAdd field="Googlemaps" compare="=" type="request" var="maps" /><we:conditionAnd />
<we:conditionAdd field="Entwurf" compare="=" type="request" var="entwurf" />
</we:condition>
<we:listview type="object" name="webref" classid="11" condition="$condi">
((Nurhosting = "1") AND (SSL = "") AND (Server = "") AND (Googlemaps = "") AND (Entwurf = "1") )
Das heißt, er sucht alle Objekte, wo die Checkbox Entwurf aktiv ist und die Checkboxes Nurhosting, SSL, Server nicht aktiv sind.
Ich will aber eigtl. nur alle Objekte auflisten, wo die Checkbox Entwurf aktiv ist...
Muss ich da irgendwo Wildcards einbauen oder kann ich abfragen, ob im Filter-Formular bestimmte Checkboxes nicht aktiviert wurden? Mit dem Tag we:ifNotEmpty gehts aber nicht...
Code: Alles auswählen
<we:ifNotEmpty name="hosting" doc="self" type="checkbox"><we:conditionAdd field="Nurhosting" compare="=" type="request" var="hosting" /><we:conditionAnd /></we:ifNotEmpty>
Christoph