PRM VIEW question

Phoca Restaurant Menu - restaurant menu manager
AWiki
Phoca Member
Phoca Member
Posts: 47
Joined: 06 Nov 2023, 08:39

PRM VIEW question

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49205
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PRM VIEW question

Post by Jan »

Hi, for now, only IDs can be used as parameter, so to use fields, the plugin needs to be customized.

Jan
If you find Phoca extensions useful, please support the project
AWiki
Phoca Member
Phoca Member
Posts: 47
Joined: 06 Nov 2023, 08:39

Re: PRM VIEW question

Post by AWiki »

ok thanks
henryjamesss
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 30 Dec 2025, 15:12

Re: PRM VIEW question

Post 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.
Post Reply