Search result template caller?

CyberAP

Well-known member
Is it possible to get a template caller name when using search_result templates?

For example we have member_recent_content that calls search_result_*content type*. Can we use some variable in search_result_... to determine who called it? So for example in member_view we have one display of posts but in search results it's different.
 
You can look at $viewName, $controllerName and/or $controllerAction in the template and react based on that.
 
Back
Top Bottom