waxdaddy Posted September 20, 2011 Share Posted September 20, 2011 Is it possible to access the results from a search in a module hooked into the left column? I only want the module to display on a search results page. I'm writing a faceted nav menu and looking for the best solution. Link to comment Share on other sites More sharing options...
waxdaddy Posted September 21, 2011 Author Share Posted September 21, 2011 So as usual no reply at all... let alone anything of any use... Wouldn't be so bad if the bloody software had ANY COMMENTS! or some DOCUMENTATION ffs Link to comment Share on other sites More sharing options...
Pshopic Posted September 23, 2011 Share Posted September 23, 2011 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. Link to comment Share on other sites More sharing options...
waxdaddy Posted September 26, 2011 Author Share Posted September 26, 2011 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 More sharing options...
waxdaddy Posted October 4, 2011 Author Share Posted October 4, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now