Creating a custom configuration parameter
The widget is created. It shows up in the frontend and the right products are shown for the given category ID.
To configure the category ID, we have to copy it from the category page and paste it in the textbox. For better usability, we will create a custom widget in the configuration field where we can select a category from a pop-up window.
To prepare yourselves, look at how you can configure the category for the Catalog Category Link widget in the backend. We will configure the same pop-up window for the widget that we created in previous recipes.
How to do it...
Perform the following steps to and you can create a custom configuration parameter:
- When we look at the Catalog Category Link widget ...