? Success

User tests: Successful: Unsuccessful:

avatar amit4106udale
amit4106udale
11 Jan 2019

Is your feature request related to a problem? Please describe.

Yes, Currently there is no such provision to show filters container by hiding the "search tools" button. Most of the times in frontend, user don't want an extra click to open the filters. So, we need a facility to show only the filters container of the search tool.

users - joomlafilters - administration

Describe the solution you'd like

Need to add a config in custom options for showing the filter container and hide the "search tools button".

Additional context

It will reduce the number of clicks for better user experience.
Sometimes there are only one or to filter fileds in filter container so its is not needed show the "search tools" button. Instead of that, we can show the filter container directly.

For example :-
We need to pass one extra param at the time of rendering respective search toolbar, on the basis of this it will hide the "search tools" button and directly show the filter container.

Testing Instructions

While rendering search tools use showOnlyFilters parameter and set it as 1.

JLayoutHelper::render('joomla.searchtools.default', array('view' => $this, 'options' => array('showOnlyFilters' => 1)));

Votes

# of Users Experiencing Issue
4/4
Average Importance Score
4.50

avatar amit4106udale amit4106udale - open - 11 Jan 2019
avatar amit4106udale amit4106udale - change - 11 Jan 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jan 2019
Category Layout JavaScript
avatar mbabker
mbabker - comment - 11 Jan 2019

There are already other options to configure this behavior if I've read the layout file correctly. So what is adding this option actually accomplishing that can't already be done?

avatar vaibhavsTekdi
vaibhavsTekdi - comment - 11 Jan 2019

@mbabker - We don't have such configuration, we have filterHidden -> which always keeps the "search tool" open, and filterButton-> which hides button as well as the container.

As you can see below screenshot, when we apply filtersHidden config -> it gives such display,
where "search tools" button is visble, which confuses the users.

screenshot-localhost-2019 01 11-18-29-02

avatar amit4106udale
amit4106udale - comment - 11 Jan 2019

@mbabker -> as you can check the old code "<?php if ($data['options']['filterButton']) : ?> <div class="js-stools-container-filters hidden-phone clearfix<?php echo $filtersActiveClass; ?>"> <?php echo $this->sublayout('filters', $data); ?> </div> "

filters are dependent on "search tool" button.

If I use the filters layout directly to show the filters, the clear button won't work for the filters.

avatar amit4106udale amit4106udale - change - 14 Jan 2019
Title
Feature #23507 feat: Provision for showing only filter container and
Feature #23507 feat: Provision for showing only filter container and hiding the "search tool" button on list view.
avatar amit4106udale amit4106udale - edited - 14 Jan 2019
avatar ReLater
ReLater - comment - 14 Jan 2019

I have tested this item successfully on b1c47d9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23508.

avatar ReLater ReLater - test_item - 14 Jan 2019 - Tested successfully
avatar uthorat
uthorat - comment - 16 Jan 2019

I have tested this item successfully on b1c47d9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23508.

avatar uthorat uthorat - test_item - 16 Jan 2019 - Tested successfully
avatar pranotiTechjoomla
pranotiTechjoomla - comment - 17 Jan 2019

I have tested this item successfully on b1c47d9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23508.

avatar pranotiTechjoomla pranotiTechjoomla - test_item - 17 Jan 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 17 Jan 2019

maybe I did not understand the right code to use.
I tested com_associations in /administrator/components/com_associations/views/associations/tmpl/default.php

I modified the call there to
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this, options => array('showOnlyFilters' => 1))); ?> to test.

I get a Notice:
Notice: Use of undefined constant options - assumed 'options' in .../administrator/components/com_associations/views/associations/tmpl/default.php on line 63

avatar ReLater
ReLater - comment - 18 Jan 2019

Just a typo in the code. Use quoted 'options' => ... not options => ...!

avatar infograf768
infograf768 - comment - 18 Jan 2019

I just copied what was in the original PO...
Will modify it there now.

avatar infograf768 infograf768 - change - 18 Jan 2019
The description was changed
avatar infograf768 infograf768 - edited - 18 Jan 2019
avatar amit4106udale amit4106udale - change - 21 Jan 2019
Labels Added: ?
avatar amit4106udale amit4106udale - change - 24 Jan 2019
The description was changed
avatar amit4106udale amit4106udale - edited - 24 Jan 2019
avatar amit4106udale amit4106udale - change - 24 Jan 2019
The description was changed
avatar amit4106udale amit4106udale - edited - 24 Jan 2019
avatar amit4106udale amit4106udale - change - 24 Jan 2019
The description was changed
avatar amit4106udale amit4106udale - edited - 24 Jan 2019
avatar amit4106udale amit4106udale - change - 24 Jan 2019
The description was changed
avatar amit4106udale amit4106udale - edited - 24 Jan 2019
avatar amit4106udale amit4106udale - change - 24 Jan 2019
The description was changed
avatar amit4106udale amit4106udale - edited - 24 Jan 2019
avatar amit4106udale amit4106udale - change - 24 Jan 2019
Title
Feature #23507 feat: Provision for showing only filter container and hiding the "search tool" button on list view.
Feature #23507 feat: Provision for showing only filter container and hiding the 'search tool' button on list view.
avatar amit4106udale amit4106udale - edited - 24 Jan 2019
avatar amit4106udale amit4106udale - change - 28 Jan 2019
Title
Feature #23507 feat: Provision for showing only filter container and hiding the 'search tool' button on list view.
Feature #23507 feat: Provision for showing only filter container and hiding the "search tool" button on list view.
avatar amit4106udale amit4106udale - edited - 28 Jan 2019
avatar amit4106udale amit4106udale - change - 13 Mar 2019
Title
Feature #23507 feat: Provision for showing only filter container and hiding the "search tool" button on list view.
Feature #23507 feat:Provision for showing only filter container and hiding the "search tool" button on list view.
avatar amit4106udale amit4106udale - edited - 13 Mar 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
Feature #23507 feat:Provision for showing only filter container and hiding the "search tool" button on list view.
Provision for showing only filter container and hiding the "search tool" button on list view.
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar ReLater
ReLater - comment - 4 May 2019

Shouldn't this PR get a RTC

OR

shouldn't it be closed because "No new features allowed in Joomla 3!"

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 May 2019

calling @HLeithner as Release Lead J3 for Comment above.

avatar HLeithner
HLeithner - comment - 10 May 2019

Sorry to say that's a new feature and 3.x has a feature freeze plz get involved into the J4 development.
The backend template team is rewriting many parts of the template code so maybe you check the current j4 backend template code base at https://github.com/joomla/backend-template

avatar HLeithner HLeithner - close - 10 May 2019
avatar HLeithner HLeithner - change - 10 May 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-05-10 12:39:47
Closed_By HLeithner
Labels Removed: J3 Issue

Add a Comment

Login with GitHub to post a comment