tags - Magento include phtml file within another phtml file -



tags - Magento include phtml file within another phtml file -

i making custom home page magento website in phtml file named home_banner.phtml, in turn have referenced in cms->pages->home page content next code

{{block type="core/template" template="theme/home_banner.phtml"}}

in home_banner.phtml have called tags/popular.phtml display popular tags.

<div class="last-posts-grid clearfix"> <?php echo $this->getlayout()->createblock('core/template')->settemplate('tag/popular.phtml')->tohtml(); ?> </div>

however tags not beingness displayed though anchor tag says "view tags" id getting called correctly. ul class="tags-list" visible in page source tags not visible. suggestions?

you made little error in template file. template file has below:

<div class="last-posts-grid clearfix"> <?php echo $this->getlayout()->createblock('tag/popular')->settemplate('tag/popular.phtml')->tohtml(); ?> </div>

i tested , working fine.. hope helps..

tags magento-1.9 php

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -