Questions tagged [filter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
46 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 ...
j00m's user avatar
  • 191
2 votes
1 answer
328 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 ...
Ali Zangeneh's user avatar
2 votes
1 answer
19 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-&...
Jbadminton's user avatar
1 vote
0 answers
44 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' =&...
maidan's user avatar
  • 403
1 vote
1 answer
443 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 ...
framontb's user avatar
  • 237
1 vote
0 answers
130 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 ...
Iulia Chirtes's user avatar
1 vote
0 answers
81 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'...
Confidant's user avatar
  • 131
1 vote
0 answers
29 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 ...
chavab_1's user avatar
  • 195
3 votes
0 answers
177 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 ...
seamonkey's user avatar
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 ...
MatB's user avatar
  • 1
1 vote
0 answers
97 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 ...
Grant G's user avatar
  • 714
1 vote
1 answer
403 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 ...
Mike's user avatar
  • 341
2 votes
2 answers
133 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 ...
jonboy's user avatar
  • 3,603
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 ...
wanderlusted's user avatar
0 votes
1 answer
127 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....
Robert Dam's user avatar
1 vote
2 answers
214 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 ...
William's user avatar
  • 299
1 vote
1 answer
273 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#...
wanderlusted's user avatar
1 vote
1 answer
503 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 ...
Zollie's user avatar
  • 2,926
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('...
mixahlos's user avatar
  • 418
3 votes
1 answer
327 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="...
FFrewin's user avatar
  • 19.7k
0 votes
0 answers
145 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....
Faye's user avatar
  • 1,348
0 votes
2 answers
306 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 ...
nizz0k's user avatar
  • 537
2 votes
1 answer
301 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 ...
DreiBaer's user avatar
2 votes
1 answer
635 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. ...
tria1312's user avatar
2 votes
1 answer
117 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'))) ...
Lodder's user avatar
  • 26.9k