Page 1 of 1

ListIt Extended search template[solved]

Posted: Mon Feb 04, 2013 10:13 pm
by Emir
I was wondering if anybody has experience in dealing with Search templates of ListIt Extended module.

When I set action parameter of ListIt to "search" and template to "filter", system outputs select drop down field for each of my custom fields. Nevertheless none of them has any value inside. When debug is On, it is clear that fields are present and valid with all their corresponding values.
Output rendered from Search(filter) template
Output rendered from Search(filter) template
Debug output

Code: Select all

ListIt2FielddefArray Object
(
    [1] => listit2fd_Dropdown Object
        (
            [id:private] => 1
            [name:private] => Region
            [alias:private] => regija
            [description:private] => Odaberite region na koji se zakon primjenjuje
            [type:private] => Dropdown
            [friendlytype:private] => Dropdown
            [value:private] => ListIt2FielddefValue Object
                (
                )

            [originator:private] => ListIt2
            [active:private] => 1
            [disabled:private] => 
            [path:private] => /home/youth8na/public_html/me/modules/ListIt2/lib/fielddefs/Dropdown
            [position:private] => 1
            [required:private] => 1
            [options:private] => Array
                (
                    [options] => BiH
Federacija BiH
Republika Srpska
Distrikt BrĨko

                )

            [caller:private] => 
            [item_id:private] => -1
            [values] => Array
                (
                )

        )

    [2] => listit2fd_MultiSelect Object
        (
            [id:private] => 2
            [name:private] => Kategorija
            [alias:private] => kategorija
            [description:private] => Odaberite kategoriju
            [type:private] => MultiSelect
            [friendlytype:private] => Multi Select
            [value:private] => ListIt2FielddefValue Object
                (
                )

            [originator:private] => ListIt2
            [active:private] => 1
            [disabled:private] => 
            [path:private] => /home/youth8na/public_html/me/modules/ListIt2/lib/fielddefs/MultiSelect
            [position:private] => 2
            [required:private] => 1
            [options:private] => Array
                (
                    [options] => Edukacija
Evropske integracije
Migracije
                )

            [caller:private] => 
            [item_id:private] => -1
            [values] => Array
                (
                )

        )

    [3] => listit2fd_TextInput Object
        (
            [id:private] => 3
            [name:private] => E-mail
            [alias:private] => email
            [description:private] => 
            [type:private] => TextInput
            [friendlytype:private] => Text Input
            [value:private] => ListIt2FielddefValue Object
                (
                )

            [originator:private] => ListIt2
            [active:private] => 1
            [disabled:private] => 
            [path:private] => /home/youth8na/public_html/me/modules/ListIt2/lib/fielddefs/TextInput
            [position:private] => 3
            [required:private] => 1
            [options:private] => Array
                (
                    [max_lenght] => 255
                    [size] => 20
                )

            [caller:private] => 
            [item_id:private] => -1
            [values] => Array
                (
                )

        )

)
1
Search (filter) template that comes with ListIt Extended

Code: Select all

<div id="{$modulealias}_filter">
{$formstart}
<h3>{$filterprompt}</h3>
{foreach from=$fielddefs item=fielddef}
	<h3>{$fielddef->fielddefs.alias.value}</h3>
	<div class="row">
	<label for="filter_{$fielddef->alias}">{$fielddef->name}</label>
	<select name="{$actionid}search_{$fielddef->alias}" id="filter_{$fielddef->alias}">
		<option value=''>{$mod->ModLang('all')}</option>
	{foreach from=$fielddef->values item=value}
		<option>{$value}</option>
	{/foreach}
	</select>
	</div>
{/foreach}
<input class="search-button" name="submit" value="{$mod->ModLang('search')}" type="submit" />
{$formend}
</div>
CMS Made Simple version 1.11.4
ListIt Extended version 1.3.2

Hope that someone can help with this. Many thanks in advance.

Hopefully someone can help. Many thanks in advance.

Re: ListIt Extended search templates

Posted: Mon Feb 04, 2013 10:21 pm
by Dr.CSS
Looks like you set them all as private so not viewable by public...

Re: ListIt Extended search templates

Posted: Mon Feb 04, 2013 10:28 pm
by Emir
Dr.CSS wrote:Looks like you set them all as private so not viewable by public...
Thanks Dr.CSS. I taught the same after inspecting Debug output but haven't seen any option for setting Custom fields to private nor public.

On the other hand, in Summary view they are all listed as expected which makes me think that their visibility is not a problem.

Any idea on how to set them to Public or am I missing the point?

Thanks once again