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 9218447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:51:57+00:00 2026-06-18T02:51:57+00:00

I am new to Magento and completely lost. I have a problem in assigning

  • 0

I am new to Magento and completely lost. I have a problem in assigning CMS pages to navigation bar.

Say from manage categories I am creating a sub category contact us & want to show a cms page named contact us in the frontend when clicking on that contact us menu. What do I have to do for that? And after clicking on the menu it should go to a page like mysite.com/contact-us.html. It is going there but it’s showing there are no products matching the selection.

  • 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-18T02:51:58+00:00Added an answer on June 18, 2026 at 2:51 am

    You can use this code to get all cms pages dynamically in navigation

    Place this code in header file below topcontainer

      <?php $collection = Mage::getModel('cms/page')->getCollection()->addStoreFilter(Mage::app()->getStore()->getId());?>
    <?php  $collection->getSelect()
    ->where('is_active = 1'); ?>
    <ul id="nav">
    <?php foreach ($collection as $page): ?>
    <?php $PageData = $page->getData(); ?>
    <?php// print_r($PageData);?>
    <?php if($PageData['identifier']!='no-route' && $PageData['identifier']!='enable-cookies' && $PageData['identifier']!='home2') { ?>
    <li>
    <a href="/magento/index.php/<?php echo $PageData['identifier']?>"><span><?php echo $PageData['title'] ?></span></a>
    </li>
    <?php } ?>
    <?php endforeach; ?>
    </ul>
    

    Note change this part of code “/magento/index.php/” according to your domain

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

Sidebar

Related Questions

I'm implementing a new template for a Magento site. I have issues with categories
I am new to Magento CMS, i have configured products using admin panel, at
I am new to Magento and am facing a problem. In my categories, I
I am new in magento eCommerce. I have this problem: here, ¥27 is shown
I am new too magento. I have one problem to create an activation key
I am a new to magento. I wanted to move the search bar from
I'm new to Magento so sry if it's a newbie question. I have a
I am trying to import the customers into my new magento installation from an
I am new to Magento. I would like to export following data from order
I am new to magento. I have added two text fileds(custom options) for products

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.