Displaying Magento Brand Names on a CMS Page
As an experienced developer, I often encounter queries from fellow professionals seeking guidance on various Magento functionalities. Recently, one of our readers asked how to display a list of brand names with links on a separate CMS page in their Magento store.
Understanding the Requirement
The reader mentioned that they have already created a category containing all the brands but are facing difficulty in displaying the brand names and links without images on a dedicated CMS page called “brands”.
The Approach: Using Magento’s Built-in Features
To achieve this, we can utilize Magento’s built-in content management system (CMS) to create a custom page. Here is a step-by-step guide:
-
Create a New CMS Page
Log in to your Magento admin panel and navigate to the “CMS” section under the “Content” menu.
Click on “Add New Page” and provide a title for your brand list page, such as “Brands”.
-
Use a Block for Dynamic Content
Instead of typing static text, we will use a block to dynamically generate the list of brands. In the content editor (WYSIWYG), click on the “Insert Widget” icon.
-
Select the Products Block
In the widget selection popup, choose the “Products” category from the left sidebar. Then select the “Catalog Product List” block and click “Add Block”.
-
Configure the Block Settings
In the configuration panel that appears, you can customize various settings:
- Product Listing Type: Choose “Brands”.
- Brand: Select your brand category created earlier.
- Number of Products to Display: Set this value according to how many brands you want to display on a single page.
-
Configure the Block Display Settings
You can configure additional settings like sorting order, pagination, and layout options for the block.
-
Save and Apply Changes
Once you are satisfied with the settings, click “Apply Widget” in the top right corner of the popup.
-
Preview and Publish Your CMS Page
Click on the “Preview” button to see a live preview of your brand list page. If everything looks as expected, click “Save Page” to publish it.
Code Example: Block Configuration
Here is an example of how the block configuration might look:
<block type="catalog/product_list" name="brands-list" template="catalog/product/list.phtml">
<action method="setCategoryId"><category_id>1</category_id></action>
<action method="setColumnCount"><count>4</count></action>
<action method="setMode"><mode>list</mode></action>
</block>
Best Practices for CMS Page Creation
- Always use clear and descriptive titles for your CMS pages.
- Ensure that the content is relevant to your target audience.
- Regularly update the content to keep it fresh and engaging.
Conclusion
Displaying a list of brand names with links on a separate Magento CMS page can be achieved using the built-in CMS features. By following this guide, you should now be able to create a dynamic and user-friendly brand list for your customers.
For more advanced customizations and best practices in Magento development, I recommend checking out our comprehensive guides at Laravel Company.
Remember that regular updates and relevant content are key to maintaining an engaging online presence. Don’t hesitate to reach out if you have any further questions or need additional assistance with your Magento store.
Happy coding!