Posts Tagged ‘popular terms’

How to Display the Content of the Left Column on the Popular Search Terms Page

January 4, 2011

Another morning and much of the afternoon has been spent frustratingly trying to discover why, when the Popular Search Terms page (and some others) load with a left column, the column is visible – but completely empty. However, the Advanced Search page shows the left column content correctly. Irritating, no?

More by luck than judgement I have found a simple solution.

In the catalogsearch.xml file (found in app/design/frontend/default/yourtheme/layout) at the bottom of the page there is the following reference to the Search Term option:

<catalogsearch_term_popular translate="label">
<label>Popular Search Terms</label>
<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
<reference name="content">
<block type="catalogsearch/term" name="seo.searchterm" template="catalogsearch/term.phtml"/>
</reference>
</catalogsearch_term_popular>

All I did (more as a ‘hit-and-hope’ solution than anything) was comment out (or delete if you prefer) the following lines:

<remove name="right"/>
<remove name="left"/>

And what do you know? My left column content appeared on the Popular Terms page.

Advertisements