Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

009. Adding configuration

Astrid edited this page Oct 17, 2019 · 5 revisions

In this chapter we will ...

Now, we want to add settings in a configuration.

t9_1

t9_2

Newly created or Modified files

Newly created files

Modified files

changelog.xml

foo_update.xml

administrator/components/com_foos/Model/FoosModel.php

administrator/components/com_foos/View/Foos/HtmlView.php

administrator/components/com_foos/config.xml

administrator/components/com_foos/foos.xml

administrator/components/com_foos/forms/foo.xml

administrator/components/com_foos/tmpl/foo/edit.php

administrator/components/com_foos/tmpl/foos/default.php

All changes at a glance

https://github.com/astridx/boilerplate/compare/t8...t9

More detailed explanations

File Structure

Example in Joomla 4

Side Note

Test your component

Now you can zip all files and install them via Joomla Extension Manager.

Now you can globally use settings for your extension. You will find a button in the top right corner of the back end where you can open the options.

t9_1

The options are the configuration that you can use for all the items in your extension.

t9_2

Concluding Remark

You can now use your component very flexibly with the help of configuration options.

What is next? Maybe you like to offer some settings only to a limited number of users. How to do this is the topic of the next chapter.

Overview of all files