Sharing is helping.

We offer you this space to share your knowledge about Magento and learn from our experienced customers.

    Home Forums "How do I" questions Add CMS pagelink to topmenu

    This topic contains 5 replies, has 2 voices, and was last updated by  Espn 4 years, 2 months ago.

    Viewing 6 posts - 1 through 6 (of 6 total)
    • Author
    • #4572


      I know the functionality of creating categories and showing a static block instead of products. A topmenu item is created then ….

      But, I like to add a CMS page menu-item to the topmenu (where it should also adept the cms formatting)…..

      any idea how ….




      I am looking for the same solution for hellocurl, thank you!



      f3szg9 hhhntzuqnsco, [url=]soefhjyxvupj[/url], [link=]auebxjemucka[/link],



      Thank you for the blog!Probably following code will help sooemne to show products randomly from a particular category:We need to write code for home cms like:{{block type= catalog/product_list category_id= 50 template= catalog/product/list_home.phtml }}Code: ?php$_productCollection=$this- getLoadedProductCollection();$categoryID = $this- category_id;//$categoryID = $this- getCategoryId();if($categoryID){ $category = new Mage_Catalog_Model_Category(); $category- load($categoryID); // this is category id $collection = $category- getProductCollection();} else{ $collection = Mage::getResourceModel(‘catalog/product_collection’);}Mage::getModel(‘catalog/layer’)- prepareProductCollection($collection);$collection- getSelect()- order(‘rand()’);$collection- addStoreFilter();$numProducts = $this- getNumProducts() ? $this- getNumProducts() : 1;$collection- setPage(1, $numProducts)- load();$_productCollection = $this- _productCollection = $collection;? ?php if(!$_productCollection- count()): ? div class= note-msg ?php echo $this- __(‘There are no products matching the selection. Please provide a category ID.’) ? /div ?php else: ? ul ?php $_collectionSize = $_productCollection- count() ? ?php foreach ($_productCollection as $_product): ? li a href= ?php echo $_product- getProductUrl() ? title= ?php echo $this- htmlEscape($_product- getName()) ? img src= ?php echo $this- helper(‘catalog/image’)- init($_product, ‘small_image’)- resize(105, 105); ? width= 105 height= 105 alt= ?php echo $this- htmlEscape($_product- getName()) ? / /a /li ?php endforeach ? /ul ?php endif; ? This code displays a single product.



      3a6tam pdhfytwzwncd


    Viewing 6 posts - 1 through 6 (of 6 total)
    Reply To: Add CMS pagelink to topmenu
    Your information:

    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">