Welcome, Guest
Username: Password: Remember me
Pleas keep in mind that SPAM will be deleted instantly
  • Page:
  • 1

TOPIC:

Removing Initial List all 6 years 3 months ago #3462

  • 83dons
  • 83dons's Avatar Topic Author
  • Offline
  • Posts: 2
  • Thank you received: 0
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:
<!-- 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 or Create an account to join the conversation.

Removing Initial List all 6 years 3 months ago #3491

  • Dirk
  • Dirk's Avatar
  • Away
  • Posts: 1185
  • Karma: 21
  • Thank you received: 224
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 or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Dirkjoest