• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Hw to hide the status in the Filtering module?

Hw to hide the status in the Filtering module? 9 years 1 week ago #30738

  • peeps2
  • peeps2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hello,

How to hide the Status option in the Filtering module?

It is unnessessary to filter with Published or Unpublished entries. Users cannot see unpublished entries. We would like to hide the whole status issue.

kuudesaisti.net/ilmoitukset-list-entries

I don't see such option in the module settings. Please advise!

- Anne
The administrator has disabled public write access.

Hw to hide the status in the Filtering module? 8 years 4 months ago #33169

  • ralphd
  • ralphd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Did you find a way of hiding the Status option please.
The administrator has disabled public write access.

Hw to hide the status in the Filtering module? 8 years 1 month ago #34042

  • jay08
  • jay08's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Yup...This is something I want as well. The Status filter is irrelevant.

JAY
The administrator has disabled public write access.

Hw to hide the status in the Filtering module? 7 years 7 months ago #35624

  • webadmin24
  • webadmin24's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
I don't know if people are still looking for the answer to this, but I was trying to do this, too, and I think I have it.

First, you have to create a template override. For general information on this see:

https://www.rsjoomla.com/support/documentation/rsdirectory/getting-started/performing-template-overrides.html

In this particular case, you have to move \modules\mod_rsdirectory_filtering\tmpl\default.php

to the following location:

\templates\template_name\html\mod_rsdirectory_filtering

Please note that you have to create the directory.

After that, I removed the following lines:

<div class="rsdir-filter rsdir-filter-status control-group">
<div class="rsdir-filter-caption"><?php echo JText::_('MOD_RSDIRECTORY_FILTERING_STATUS'); ?></div>
<label class="rsdir-checkbox-label checkbox">
<input class="rsdir-checkbox" type="checkbox" value="1" name="status[]"<?php echo in_array(1, $status) ? ' checked="checked"' : ''; ?> />
<?php echo JText::_('MOD_RSDIRECTORY_FILTERING_PUBLISHED'); ?>
</label>
<label class="rsdir-checkbox-label checkbox">
<input class="rsdir-checkbox" type="checkbox" value="0" name="status[]"<?php echo in_array(0, $status) ? ' checked="checked"' : ''; ?> />
<?php echo JText::_('MOD_RSDIRECTORY_FILTERING_UNPUBLISHED'); ?>
</label>
</div

There were lines 45 to 55.

I really don't know much about editing a php file, so I don't know if I removed enough, or more than enough or what. This was all between division tags, so I assumed it was enough and it seems to have worked out okay. The original is always there just incase.
The administrator has disabled public write access.
The following user(s) said Thank You: info6644

Hw to hide the status in the Filtering module? 7 years 7 months ago #35686

  • jeffhoneyager
  • jeffhoneyager's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Thank you received: 8
Thank you!

Question: why does it display status in the first place? It is asking the visitor, "Do you want to search on entries you can't see anyway?"
The administrator has disabled public write access.

Hw to hide the status in the Filtering module? 7 years 7 months ago #35688

  • webadmin24
  • webadmin24's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
I was wondering that myself. It does not really make sense except for superusers or others who can see published or unpublished postings on the front end. They might want to look at the front end and see published/unpublished entries. For regular users, though, they would not be able to see unpublished entries, so why give them the choice? Anyway, I hope the above override helps.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!