Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Many websites & many about us pages - how to create dynamic menu? 
 
freshwebs
Sr. Member
 
Total Posts:  153
Joined:  2008-05-27
Leicestershire, UK
 

Hi,
Here’s my scenario.

1) Multiple websites (not stores but websites)
2) Each shares the same template/interface, but with different skins - thus layout is the same but look is different
3) Each website has its own ‘About website’ page.
4) Each about page has the following naming convention ‘about_websitename’ . So, John Doe website about page is named ‘about_johndoe’, the Jane Doe website about page is named ‘about_janedoe’, etc

The question is:
How do I code the top links so that website displays a link to its correct ‘About’ page? I was thinking that I could pickup the website name (johndoe) and then create a link by concatenating like so:

echo  'about_' $this->getWebsite()->getName()

However, I’m not getting access to the appropriate hooks at this point $this->getWebsite() is returning nothing, etc.

Any suggestions about how to approach this problem?

Thanks,
Eddie

 
Magento Community Magento Community
Magento Community
Magento Community
 
Unirgy
Guru
 
Avatar
Total Posts:  478
Joined:  2007-09-07
 

try ‘about_’.Mage::app()->getWebsite()->getCode()

 
Magento Community Magento Community
Magento Community
Magento Community
 
freshwebs
Sr. Member
 
Total Posts:  153
Joined:  2008-05-27
Leicestershire, UK
 

Hi Saharian,
Thanks, I’ll try that & let you know how I get on.
Eddie

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top