Page 1 of 1

PRM VIEW question

Posted: 15 Nov 2024, 17:11
by AWiki
Hi, I have a question in regards to prm view - can I use a Joomla field as input parameter instead entering each menu day ID?

{prm view=weeklymenu|menuday=291,292,293,315,294}

{prm view=weeklymenu|menuday={field 7}} where field 7 would include all the menu day ID's. If yes what would be the correct format?

Thanks and Regards Alfred

Re: PRM VIEW question

Posted: 15 Nov 2024, 17:16
by Jan
Hi, for now, only IDs can be used as parameter, so to use fields, the plugin needs to be customized.

Jan

Re: PRM VIEW question

Posted: 16 Nov 2024, 18:54
by AWiki
ok thanks

Re: PRM VIEW question

Posted: 30 Dec 2025, 15:17
by henryjamesss
Yes, this should be possible as long as the field output resolves to a plain, comma-separated list of IDs.

If Field 7 contains something like:

291,292,293,315,294


then using:

{prm view=weeklymenu|menuday={field 7}}


should work.

Just make sure the field is a text field, not formatted with HTML, and that it outputs only the IDs (no spaces, labels, or extra characters). If the field adds markup, PRM won’t be able to parse it correctly.