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

How do I get content from navigation/left.phtml into catalog/view.phtml? 
 
winzippy
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-02-08
Rochester, NY, USA
 

I’ve already tried using

<?=$this->getChildHtml('left')?>
as well as a simple include, but to no avail.

My view.phtml file looks like this:

<?=$this->getMessagesBlock()->getGroupedHtml()?>
<?if
($this->isContentMode()):?>
    
<h2 class="category-head"><?=$this->getCurrentCategory()->getName()?></h2>
    
<?=$this->getChildHtml('left')?>
    <?
=$this->getCmsBlockHtml()?>
<?elseif
($this->isMixedMode()):?>
    
<h2 class="category-head"><?=$this->getCurrentCategory()->getName()?></h2>
    
<?=$this->getChildHtml('left')?>
    <?
=$this->getCmsBlockHtml()?>
    <?
=$this->getProductListHtml()?>

<?else
:?>
    
<h2 class="category-head"><?=$this->getCurrentCategory()->getName()?></h2>
    
<?
    
include("../navigation/left.phtml");
    
?>
    <?if
($_imageUrl=$this->getCurrentCategory()->getImageUrl()):?>
        
<p><img src="<?=$_imageUrl?>alt="<?=$this->getCurrentCategory()->getName()?>" width="475"/></p>
    
<?endif;?>
    <?if
($_description=$this->getCurrentCategory()->getDescription()):?>
        
<class="category-description"><?=$_description?></p>
    
<?endif;?>
     
    <?
=$this->getProductListHtml()?>
<?endif
;?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
winzippy
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-02-08
Rochester, NY, USA
 

I still haven’t come up with a solution to this.  Does anyone else know how to do this?

Also, I there’s a typo in the title. The view.phtml I’m having trouble with is app/design/default/default/template/catalog/category/view.pthml.

 
Magento Community Magento Community
Magento Community
Magento Community
 
winzippy
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-02-08
Rochester, NY, USA
 

Do you think this could be done using smarty tags? I seem to be out of other options.

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