Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [filter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
130 views

JLayout Search Tool not populating filters and inputbx

I am converting the searchbar in one of my components to JLayout Search Tools searchbars to become more ready for J!4. Everything is working fine but it is not populating the filters. In view.html....
1 vote
1 answer
118 views

Category blog view - filter by tags

Joomla 5. I am using the category blog view to show all the articles in a category. I have set up tags and applied them to the articles to enable some kind of filtering on the same page/view? Ideally ...
2 votes
1 answer
371 views

How can I filter the Persian alphabet in PHP for Joomla 4?

Before anything, I must say this code works as well for the English language, but in Persian it never works. I use this code on model/celebrities.php. This code shows my frontend model: class ...
2 votes
1 answer
20 views

Unset filter from user state

I like to unset my search filter that is saved in the user state. I have a search input with id filter_search This is the code to save the filter. $context = $this->getUserStateFromRequest($this-&...
1 vote
0 answers
47 views

Ignore active filter states when getting items from ListModel

When trying to get all items from my list model inside a plugin, I use this: $objects = $app->bootComponent('com_foo')->getMVCFactory()->createModel('Objects', 'MyModel', ['ignore_request' =&...
1 vote
1 answer
500 views

Customizing filters layout from joomla.searchtools.default for list view of custom component

In Joomla 4, there is the layout joomla.searchtools.default for the filters in a list view that you can see everywhere in the BackEnd. In a list view of my custom component (FrontEnd), I managed to ...
1 vote
0 answers
138 views

Pre-filter set without any effect in List Fabrik Joomla

I have a List "Document Manager" defined in Fabrik module in Joomla and I want to pre-filter the documents from the list, in order to show only the documents belonging to the currently ...
1 vote
0 answers
86 views

How do I get the tag parent with Joomla 4?

I'm using Joomla 4 and need to use the new API to get tags which have a specific parent. (I am already able to do it with the legacy API using the $tag->parent_id). It seems that the new API doesn'...
1 vote
0 answers
31 views

Retrieving state variables using Ajax in 3.10.4

I have a site which displays a directory of registered users on the frontend. I've allowed users to select topics of interests when they're registering. In the directory they then can search by names ...
1 vote
1 answer
425 views

Using form XML for custom filter and removing group definition

I'm creating a small component with a search module. I will dumb this example down so that the question will be clear. The component manages books. The book form XML looks like this and its structure ...
3 votes
0 answers
186 views

How to create custom filter type option for a custom field to extend the custom fields in Joomla?

I'm trying to figure out how to add/extend the "Filter" options for a Custom Field. I first started looking to see if I could figure out where I could add my own filter to the list of ...
0 votes
1 answer
1k views

Smart search filter not working

I am using a filter on a smart searchbar, I only want to search for tags, categories and articles. When I am using the filter and I search for example tags, it won't show any result. If I deactivate ...
1 vote
0 answers
103 views

Filtering Subcategories by Tag

Hoping someone can provide some insight on this one; I've been stuck on this last piece of the puzzle for a while and have yet to figure it out in Joomla 3.9. Apologies for the long explanation. I ...
2 votes
2 answers
134 views

Link to Page & Pre-Filter Portfolio Items

Joomla 3.9.10 I am using this template. I would like to create a link on my home page that when clicked, will take the user to the portfolio page and display a pre-selected tab.. For example my link ...
0 votes
2 answers
63 views

Server name removed from text when submitting JForm TinyMCE editor field

I'm working a custom Joomla module that has a JForm with an editor field. My users use this form to edit and send some email messages to our customers. The field is prefilled by the system with some ...
1 vote
2 answers
221 views

Filtering product query with two sets of filters. (J2Store)

I have two disjointed sets of product filters, $special_filters and $other_filters. I'm trying to retrieve the products from the database which match any of the filters in $special_filters AND any of ...
1 vote
1 answer
276 views

Why does Joomla remove html tags from submitted text even when filter types are set to raw?

I'm trying to retrieve and save a html formatted text submitted thru a Joomla editor field. I went thru some of the available docs (https://docs.joomla.org/Retrieving_request_data_using_JInput#...
1 vote
1 answer
505 views

in Joomla 3.8 default search tools do not respond in my own component and cannot set and get state of the filters

I try to get some help from you to spot what I am doing wrong (what I am missing) on applying search tools and filters in the admin of Joomla 3.8 in my own component. I am pulling my hairs out since ...
2 votes
1 answer
2k views

Manually render filter form fields in layout

I am using the searchtools filters in the front end of a custom component. So I am displaying the fields in my template : <?php echo JLayoutHelper::render('joomla.searchtools.default', array('...
3 votes
1 answer
333 views

Tags filter field - how to add custom "placeholder"?

I have added a tags filter in my component's list with multiple enabled. <field name="tag" type="tag" label="-Select a Tag-" description="Filter by Tags" multiple="...
0 votes
0 answers
146 views

Joomla 3.7.2 Smart Search Filters Uneditable

Just updated a site from 2.5 to 3.7.2 and now I can't access my smart search filter settings. When I go into one of them I'm supposed to see selections and checkboxes. See link. https://docs.joomla....
0 votes
2 answers
312 views

How to preserve HTML input via wysiwyg into custom html module?

I am getting strange behavior while trying to add custom html via a custom html module. My markup is getting altered and the behavior is affected as a result. I want to have an anchor tag wrapped ...
2 votes
1 answer
309 views

when calling "JRequest::get('FilterForm')" result is empty

When calling the method $this->filterForm = JRequest::getVar('FilterForm');, I get an empty result. But checking the com_banners component on the same system shows a result. What can I do to get ...
2 votes
1 answer
654 views

State is not populated to my View

I have followed the article on the Joomla Developer Sites to create a sorting filter for my list (https://docs.joomla.org/Adding_sortable_columns_to_a_table_in_a_component). But I cannot get it work. ...
2 votes
1 answer
120 views

Filter an IP address

I've written the following to get the user IP: private function getIpAddress() { $server = JFactory::getApplication()->input->server; if (!empty($server->get('HTTP_CLIENT_IP'))) ...