-
Notifications
You must be signed in to change notification settings - Fork 30
013. Adding Published Unpublished
Now, we want to use publish and unpublish.
Newly created files
administrator/components/com_foos/Controller/FoosController.php
administrator/components/com_foos/sql/updates/mysql/1.13.0.sql
Modified files
administrator/components/com_foos/Table/FooTable.php
administrator/components/com_foos/foos.xml
administrator/components/com_foos/forms/foo.xml
administrator/components/com_foos/language/en-GB/en-GB.com_foos.ini
administrator/components/com_foos/tmpl/foo/edit.php
administrator/components/com_foos/tmpl/foos/default.php
Click here to see all changes compared to the last chapter
Now you can zip all files and install them via Joomla Extension Manager. After that you can see a link to your component in the left side menu. Clicking on this link will open the basic backend view.
Now we have . Up to now we have no . We are going to work on this in the next chapter.
== Requirements == You need Joomla! 4.x for this tutorial (as of writing currently Joomla! 4.0.0-alpha11-dev)
== File Structure ==
=== Creating administrator/components/com_foos/Controller/FoosController.php ===
The administrator/components/com_foos/Controller/FoosController.php file is ....
==== Completed administrator/components/com_foos/Controller/FoosController.php file ====
The code for the administrator/components/com_foos/Controller/FoosController.php file is as follows: