"I would like to see nothing and only when I search something I would like to see data."

To show or hide part of the layout use the IF statement

This is Catalog Page layout example:

{if:"{currenturl:string,where}"!=""}

{catalog}<!-- here is your catalog -->

{endif}

 


 

Simple Catalog layout example:

 

<div style="float:right;">{recordcount}</div>
<div style="float:left;">{add}</div>

{if:"{currenturl:string,where}"!=""}

<div style="text-align:center;">{print}</div>
<div class="datagrid">
<div>{batchtoolbar:edit,publish,unpublish,refresh,delete}</div>{catalogtable:
"<span style='text-align:center;'>#<br/>{checkbox}</span>":"<span style='text-align:center;'>{id}<br/>{toolbar:checkbox}</span>",
"<span style='text-align:center;'>*fullname*<br/>{search:fullname}</span>":"<span style='text-align:center;'>[fullname]</span>",
"<span style='text-align:center;'>*email*<br/>{search:email}</span>":"<span style='text-align:center;'>[email]</span>",
"<span style='text-align:center;'>*date*</span>":"<span style='text-align:center;'>[date:Y-m-d]</span>",
"<span style='text-align:center;'>Action<br/>{searchbutton}</span>":"{toolbar:edit,publish,refresh,delete}";
someTableClass
}
</div>
<br/><div style='text-align:center;'>{pagination}</div>

{endif}

JoomlaBoat.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters
the trademark holder in the United States and other countries.