J3.x:Developing an MVC Component/Adding an alias
From Joomla! Documentation
Articles in This Series
- Introduction
- Developing a Basic Component
- Adding a View to the Site Part
- Adding a Menu Type to the Site Part
- Adding a Model to the Site Part
- Adding a Variable Request in the Menu Type
- Using the Database
- Basic Backend
- Adding Language Management
- Adding Backend Actions
- Adding Decorations to the Backend
- Adding Verifications
- Adding Categories
- Adding Configuration
- Adding ACL
- Adding an Install/Uninstall/Update Script File
- Adding a Frontend Form
- Adding an Image
- Adding a Map
- Adding AJAX
- Adding an Alias
- Using the Language Filter Facility
- Adding a Modal
- Adding Associations
- Adding Checkout
- Adding Ordering
- Adding Levels
- Adding Versioning
- Adding Tags
- Adding Access
- Adding a Batch Process
- Adding Cache
- Adding a Feed
- Adding an Update Server
- Adding Custom Fields
- Upgrading to Joomla4
This is a multiple-article series of tutorials on how to develop a Model-View-Controller Component for Joomla! Version
.
Begin with the Introduction, and navigate the articles in this series by using the navigation button at the bottom or the box to the right (the Articles in this series).
This tutorial is part of the Developing a MVC Component for Joomla! 3.x tutorial. You are encouraged to read the previous parts of the tutorial before reading this.
The main purpose of this step is to provide an introduction to the Joomla router functionality, which is responsible for taking the URL in the incoming HTTP request, working out which component should be responsible for handling it, and setting up the request parameters (view=abc, id=123, etc.) correctly so that the component can access them via the standard API calls.
We will set up an alias field in each of our helloworld records, and we'll use that alias within the SEF (Search Engine Friendly) URLs for accessing our helloworld messages. To accomplish this we'll define our own custom component router.
Along the way, we'll look at some of the APIs associated with Menus and Menuitems.
Under Construction!