Monday 21 July 2008 2:53:28 am
At the news folder I created a form to filter the news by:
- day
- month
- year
- group (attribute class options list [selection])
- type (attribute class options list [selection]) - area (other folder)
<form>
<fieldset>
<legend>by Date</legend>
<label for="Day" class="hide">Dia</label>
<select title="{'Day'|i18n( 'design/.../node/view/full' )|wash()}">
<option value="">Any</option>
...
</select>
<label for="Month" class="hide">Mes</label>
<select title="{'Month'|i18n( 'design/.../node/view/full' )|wash()}">
<option value="">Any</option>
...
</select>
<label for="Year" class="hide">Año</label>
<select title="{'Year'|i18n( 'design/.../node/view/full' )|wash()}">
<option value="">Any</option>
...
</select>
</fieldset>
<fieldset>
<legend>by Group</legend>
<select title="{'by Group'|i18n( 'design/.../node/view/full' )|wash()}">
<option value="">Any</option>
...
</select>
</fieldset>
<fieldset>
<legend>by Type</legend>
<select title="{'by Type'|i18n( 'design/.../node/view/full' )|wash()}">
<option value="">Any</option>
...
</select>
</fieldset>
<fieldset>
<legend>by Area</legend>
{def $areas=fetch( 'content', 'list', hash( 'parent_node_id', 176 ) )}
<select title="{'by Area'|i18n( 'design/.../node/view/full' )|wash()}">
<option value="">Any</option>
{foreach $areas as $area}
<option value="{$area.name}">{$area.name}</option>
{/foreach}
</select>
</fieldset>
<input id="boboton" name="boton" type="submit" value="Show" title="{'Show'|i18n( 'design/.../node/view/full' )|wash()}">
</form>
My questions are:
- What is the action/metod to use?
- How to fetch date? 1, 2, 3, 4... January, February, March... 2000, 2001, 2002...
- How to fetch options selection attribute?
- Is the right way to do this?
- Another way?
- Do I think correctly? Thanks in advance.
|