Use component config in the frontend

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
sandomatyas
Joomla! Intern
Joomla! Intern
Posts: 54
Joined: Mon Jun 19, 2017 10:57 am

Use component config in the frontend

Post by sandomatyas » Sat Dec 02, 2023 6:26 am

Hi,

I am working on building a frontend-only Joomla 5 component with list, edit views, forms, fields, etc. I am aiming to adhere closely to the Joomla core API.

I am currently exploring the best method to incorporate a configuration option for the component in the frontend. I would like to provide users in a specific user group with the ability to modify certain settings related to the component. This is like the config.xml but implemented in the frontend and exclusive to this particular component.

Any advice?

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2514
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Use component config in the frontend

Post by ceford » Wed Dec 06, 2023 9:18 am

Do you mean that users in a specific group may have their own individual settings or that any user in that group may change the settings for everyone? For the former you will need either a parameter in the params field of the users table or an extra table. For the latter you will need a form to allow users to change selected extension parameters.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43862
Joined: Sat Apr 05, 2008 9:58 pm

Re: Use component config in the frontend

Post by Webdongle » Wed Dec 06, 2023 11:34 am

afaik you would need to allow that to be configured in Joomla admin in the Components Options ... Permissions. Joomla will then control what (the members of) the user groups can see and what they can do.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Post Reply

Return to “Joomla! 5.x Coding”