Pleas keep in mind that SPAM will be deleted instantly

Removing Initial List all

More
11 years 2 weeks ago #3462 by 83dons
Removing Initial List all was created by 83dons
When i go to my search page it seems to automatically want to search for and list all items in the database. I only want the search to take place if a user actually enters some search criteria and does a search. How do I set up my page so that this auto list all does not happen?

Here is the page:

WEBSITE

Here is the code behind it:
Code:
<!-- see comomponents/com_joodb/assets/joodb.css for style definitions --> <!-- Search box --> {joodb searchbox|track,artist,album,year,genre,instruments,rhythm_complexity,mood,key,vocals,tempo,timbre,control} <div style="float:right;">{joodb limitbox}</div> <p>{joodb pagecount}</p> <!-- LOOP Start --> {joodb loop} <table> <tbody> <tr class="{joodb loopclass}"> <td style="width: 65%;"> <h2 style="margin:0;">Track: {joodb track}</h3> <h3 style="margin:0;">Artist: {joodb artist}</h3> <h4 style="margin:0;">Album: {joodb album} ({joodb year})</h3> <p>{joodb short_description}</p> </td> <td style="width: 35%;"> <p>Genre: {joodb genre}</br></br> Instrument: {joodb instruments}</br></br> Rhythm: {joodb rhythm_complexity}</br></br> Mood: {joodb mood}</br></br> Key: {joodb key}</br></br> Vocals: {joodb vocals}</br></br> Tempo: {joodb tempo}</br></br> Timbre: {joodb timbre}</br></br> Control: {joodb control}</p> </td> </tr> </tbody> </table> {joodb loop} <!-- LOOP End --> <h3>{joodb nodata}</h3> <!-- LOOP Pagination --> <p>{joodb pagecount}</p> <div class="pagination">{joodb pagenav}</div>

Please Log in to join the conversation.

More
11 years 1 week ago #3491 by d.hoeschen
Replied by d.hoeschen on topic Removing Initial List all
In the current pro version there are a two additional views called LISTVIEW and SEARCH.
Search only displays the search-part of the template while list-view displays the result!

Please Log in to join the conversation.

Moderators: d.hoeschenjoest
Powered by Kunena Forum