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.

Getting ready

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:

  1. When we look at the Catalog Category Link widget ...

Get Magento 1.8 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.