Page 1 of 1

[Solved] listit2 doesn't search by item_id

Posted: Thu Jun 25, 2015 4:45 pm
by magallo
Hi all, i've been trying to have a search box to find items by their item id. While submitting words would return some items (title) submitting numbers would return nothing.

{ListIt2Portfolio action="search"}

There used to be a filter mode that seems to be not functioning ether.

Listit2 v=1.4.1
cmsms = 1.11.13

Re: listit2 doesn't search by item_id

Posted: Sun Jun 28, 2015 4:56 pm
by Jeff
Typically the item_id is an internal number and is not known by the web user so it doesn't make sense to search for it.

You could do what you want with a simple form and smarty.

{if empty($smarty.request.item_id)}
<form>
<input name=item_id>
</form>
{else}
{ListIt2Portfolio action=detail item=$smarty.request.item_id}
{/if}

Re: listit2 doesn't search by item_id

Posted: Tue Jun 30, 2015 10:41 pm
by magallo
Thanks, that did it.