List Manager Forum

Filter presetting and execution via link and POST

User Thomas Scheuer 2025-01-15 13:10:56

Hi, here I am again,

I would like to have some tiles on the start page that go to the List Manager page when clicked. Parameters are to be passed via POST, with which a filter is pre-assigned and the search is executed. For example, I have a tile for the music category on the start page, when I click on it I should go to the List Manager page, music is selected in the category filter and is also displayed in the filter and all events with the music category are displayed. Somehow I can't get this to work.

Your account is still active ;-)

Best regards, Thomas

Moonsoft support 2025-01-15 14:02:47

Hi,
that kind of function of applying external post parameters is not built in by default, but you can simulate a similar behaviour using a fixed-filter at your list, this way:

-- Copy your list, and set at display->fixed custom filter your custom query, for your case, something like

kategorie like '%Music%'

-- Publish this list (maybe you will want to remove the manual kategorie filter, it won't have sense as the kategorie now is fixed).

-- Create a button on another page, linking to this new list. The music categorie will be always applied, and combined with the rest of the filters you may want to add.

Hope this helps, regards
Guillermo V.
Moonsoft Team

User Thomas Scheuer 2025-01-15 15:18:24

Hi,
that's not the answer I was hoping for. I understand what you mean, but the visitor should be able to select also other categories on the List Manger page after landing there. There will be several categories (approx. 15 - 20) and also other (linked) filters, which would result in a huge number of pages and would not offer the variability that I / the visitor needs. Is there no other way to achieve this? It doesn't have to be with POST or GET, maybe via session variables or something like that and a bit of PHP and/or JS?

Best regards, Thomas

Moonsoft support 2025-01-15 16:39:13

Hi,
right, if you set it with the fixed filter, then you restrict always the view to that category. There is no way to build an 'external' menu in some other page able to redirect to a pre-filtered table, still keeping the option to navigate other options. But of course, with some custom code at the extension and some js code at the javascript section for the list such a function could be developed.

If you're interested in getting a quote, please let us know, we'll take a deeper look and confirm the best approach, at first sight it doesn't seem a very complex development.

Regards
Guillermo V.
Moonsoft Team

User Thomas Scheuer 2025-01-16 13:16:59

Hi
OK send me an quote. But keep in mind that I need the solution for a total of 4 filters, maybe a few more or less. So it should be a “universal” solution.

Greetings, Thomas

Moonsoft support 2025-01-16 14:42:47

Hi,
sure, it won't be a 'hardcoded' solution just for one specific filter. We've thought about a simple solution where you could send as many filters as needed at the url. All filters at ListManager have a 'name/identifier' that you introduce when you create them, you will be able to use those names this way:

?kategory=Music&filter2=othervalue&filter3=....

so we will be able to recover all the parameters, assign them to the proper filter matching its names and then launch.
This change won't take much time, one hour should be enough to have it ready , we'd need to change the extension and also add some more js to the list to handle data. In case you want to proceed, you can get 1 hour of support here:

https://www.moonsoft.es/#developments

and it could be ready in a couple of bussiness days from your confirmation.

Please let us know if you need more information, thanks

Best regards
Guillermo V.
Moonsoft Team

User Thomas Scheuer 2025-01-16 16:11:44

Hi
OK, but that we understand each other correctly:

1. I don't want the data to be displayed in the URL, so a POST (no GET) or similar solution would be useful. I would prefer POST as it gives me the most flexibility. My starting point then would be (simple example):

<form action=“index.php/...” method=“post”>
<label for=“input1”>Filter</label>
<input id=“input1” type=“hidden” name=“Category” value=“Music”>
<input id=“input1” type=“hidden” name=“City” value=“Munich”>
<input ...>
<input type=“submit” value=“Submit”>
</form>

or something similar...

2. the corresponding filter should then be pre-assigned in the List Manager with the transferred selection, the data should be selected and then, of course, it should be possible to change it.

If you see points 1 and 2 as I do, then I am willing to pay an hour. even if that is a lot, because it is not a special solution for me, but is then available to all users. But anyway, please just confirm that this is the way to go and I'll buy an hour.

Regards, Thomas

Moonsoft support 2025-01-16 16:28:39

Hi,
no sorry, the solution proposed requires only a single hour of development because its based on the url parameters, which is the simplest solution we could think of. Given you say one hour is 'a lot' , another post or more complex solution is out of discussion, given it would require much more time to develop it. So sorry we can't help you with this new function, but no need to say the extension is opensource , and we follow strict Joomla standards, so any other dev can customize and add any new function you need.

Best regards
Guillermo V.
Moonsoft Team

User Thomas Scheuer 2025-01-16 17:58:32

Hi,

why so upset. I was just summarizing my requirements again and thought that's what you were referring to in your quote. But apparently not and it was good to clarify that. The fact that I was actually interested in a POST solution is also in the ticket title. Even though I can't understand why it's more time-consuming with POST, I'd like to transfer the one hour to you. I don't have the time to do it myself at the moment. Will I get an invoice from you?

Regards Thomas

User Thomas Scheuer 2025-01-16 18:01:59

Addendum
means I agree with your solution

Regards Thomas

Moonsoft support 2025-01-17 10:18:57

Hi,
no upset at all, sorry if it sounded like that, just wanted to explain that we had quoted just a single hour because we found the 'url solution' which is much more simple than the post. It's a completely different solution because with the url/get we won't have to pass&process the parameters at the server, they can be handled directly with the js we can add to the list and use the already existing filter function. As you said one hour was already more than you expected, we can't find any other more simpler solution to achieve this function, this is what we wanted to transmit to you.

If you finally decide to go with the url solution, then you can get one hour from the support, and then at your user dashboard you will be able to download your invoice (let us know if you want to see there any specific concept, instead of the default '1h of support')

Thanks, best regards
Guillermo V.
Moonsoft Team

User Thomas Scheuer 2025-01-17 10:49:28

Hi,

I'm reassured if you're not upset. But please let me summarize the intended solution again so that there is no confusion:

1. the filter name and the value are transmitted via URL.
2. the data is selected and displayed according to the filter in the URL.
3. the filter is preset in the list with the selection from the URL.
3. you can then make a different selection in that filter and the data is displayed accordingly.

Please let me know if this is what you mean. I hope that this is the last question and that you can get started after the money has arrived.

Regards Thomas

Moonsoft support 2025-01-17 15:29:00

Hi,
right, perfectly explained, this is exactly how it would work. But don't hesitate to contact again in case you have any other question/doubt before proceeding.

Thanks, best regards
Guillermo V.
Moonsoft Team

User Thomas Scheuer 2025-01-19 18:46:39

Hi,

this weekend I dived deeper into the code of your component and I must say that it is very impressive. However, I also realized that unfortunately I can't use it after all. I have too many special requirements where I would have to make a lot of hacks in the core files and that is not so good, as you know. So I wrote my own component, which I can now use to cover everything. It is technically ready (including my POST request), now only the styling is missing.
Maybe you'll consider my request to pass filter parameters to the component via GET (maybe also via POST), I think it would be a good benefit for your users. Even if I don't give you an “hour” for it ;-)

And again, many, many thanks for your great support, which is unfortunately no longer common today.

Good luck and best regards, Thomas

Moonsoft support 2025-01-20 09:01:27

Ok, we'll close the ticket then, many thanks for the feedback and good luck!

Best regards
Guillermo V.
Moonsoft Team

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!