Jump to content

edit left column / module


waxdaddy

Recommended Posts

Edit your module's tpl file and add below code:

 

{if $page_name == 'search'}

 

your modules code here

 

{/if}

 

By adding this if module will be displayed only in search result page.

 

Thats not exactly what i was asking. I want to be able to access my search results from the module, ie to display faceted navigation links...

Link to comment
Share on other sites

  • 2 weeks later...

So to anybody else who might want to do something like this, you can access search results from any blocks template via smarty. all the variables assigned to smarty are available globally unless you specifiy a scope when you assign it.

 

So if in my search results template the data was stored in $search_results, you could just do {$search_results} in any other template used on that page and access the results

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...