Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:56:22+00:00 2026-06-05T06:56:22+00:00

I am a bit of a noob at Magento, just started using it. So,

  • 0

I am a bit of a noob at Magento, just started using it. So, what I’m trying to do is put together on a CMS page a simple list (a name – link pair) of all the products from a given category. To act as sort of an index. Inserting this block in my CMS page helped me move forward a bit.

{{block type=”catalog/product_list” name=”home.catalog.product.list”
alias=”products_homepage” category_id=”9″
template=”catalog/product/list.phtml”}}

However, this displays everything about a product (price, picture, add to cart button etc.), plus it only allows for max 30 entries per page.

I just need it to show a simple name – url pair. And if possible, without editing existing files. Any ideas or pointers would be much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:56:23+00:00Added an answer on June 5, 2026 at 6:56 am

    OK, got this working. The script looks kind of like this (the following only retrieves product names; obviously can be extended):

    function getProdList ($catId)
    {   
        $categories = new Mage_Catalog_Model_Category();
        $categories->load($catId); // the id of your desired category
        $collection = $categories->getProductCollection()->addAttributeToSelect('name');
    
        foreach ($collection as $product)
        {
            echo sprintf("%s<br />", $product->getName());
        }
    }
    

    When you invoke the function you just pass to it the ID of the category who’s products you wish to view. Create a .phtml file, place it somewhere in your magento templates folder. Then you use a block statement in your CMS page where you want to insert the list:

    {{block type="core/template" name="fileNameHere" template="path/to/file.phtml"}}
    

    Thanks to Lucasmus for setting me on the right track. Hope this helps someone out there. Peace!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a noob at json (know a bit of jquery)....and trying to get a
re: S#arp Architecture A bit of a noob question about where to put certain
Bit of background, I'm a total lisp noob, only started a few weeks ago,
A bit of a noob here so apologies in advance. I am trying to
I'm trying to make a tracking system and am a bit of jquery noob.
I'm bit of a noob so please bear with me. I'm trying to open
Might be a bit of noob question but it's something that's been getting me
Bit of a noob question but: I have a custom class defined as: public
I am a bit of a noob when it comes to JAVA script, I
i think this is a bit of a noob question, but here goes. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.