OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Empty categorylisting - which template (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Empty categorylisting - which template

Aktiweb (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Empty categorylisting - which template 6 Years, 9 Months ago
Karma: 0  
Hi,

I have a menu showing a single category.
It use my template of choice in both category and house views.

But, if there is no posts in the category it use same other template. Which one??

I have this code in my override but that template never loads.

Code:

if (count($rows) == 0) {
echo "NOTHING TO SHOW!";
} else {
....
}



Regards,
Olle
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Empty categorylisting - which template 6 Years, 9 Months ago
Karma: 101  
Dear Olle,


If override for you works good for not empty category, it must works good and for empty category.

Where and how you show empty category ?

By default we not show empty category, We show it only if it has child not empty categories

Regards
Andrew
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Aktiweb (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Empty categorylisting - which template 6 Years, 9 Months ago
Karma: 0  
Hi,

OK, so if you not show empty category. How can I show a message to the users when a category is empty?

Something i loading...

This is the code rendered in the component area on the "empty page".

Code:

<div class="mainbody">
<div class="container">
  <div class="mainbody-inner row">
    <main id="content" class="content span12" role="main">
      <div id="system-message-container"> </div>
        <div class="componentheading"> Lokaler </div>
          <table class="basictable table_48" width="100%" cellspacing="0" cellpadding="4" border="0">
            <tbody>
              <tr>
                <td> </td>
                <td width="120" align="center">
                  <img src="/farstukvisten_ud/./components/com_realestatemanager/images/rem_logo.png" alt="Real Estate Manager logo" align="right">
               </td>
             </tr>
           </tbody>
         </table>
       </main>
     </div>
   </div>
</div>



Regards,
Olle
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Empty categorylisting - which template 6 Years, 9 Months ago
Karma: 101  
Dear Olle

You see result function: displayHouses_empty

from file:

{site}/components/com_realestatemanager/realestatemanager.html.php

Regards
Andrew
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»