OS Property support center

How to list categories without number of entries

  • Heidy Alpizar
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 11 months ago #45974 by Heidy Alpizar
Hello Dam,
I would like to know how can I list categories without the total number of entries for each category. I attached an image to make myself more clear. Thank you.
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #45982 by Mr. Dam
Hi,
To remove the number properties beside the category name, please follow these steps
1. Open file
components > com_osproperty > helpers > layout > listcategories.php
2. find
<?php echo $category_name?> (<?php echo $row->nlisting?>)
and remove
(<?php echo $row->nlisting?>)
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #46576 by Heidy Alpizar
Replied by Heidy Alpizar on topic How to list categories without number of entries
Thank you very much Dam. Could you please also tell me how to remove the number of properties from the Category Menu module as shown in the attached image? Thanks a lot!


Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #46584 by Mr. Dam
Hi Heidy,
To remove the number of properties in the category module, please follow these steps
1. Open file
modules > mod_oscategorymenu > tmpl > default.php
2. find
(<?php echo $total?>)
and remove it
Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan