Howto pull term IDs of current search from URL to construct views argument

ju.ri - October 4, 2009 - 10:46
Project:Faceted Search
Version:6.x-1.0-beta2
Component:Taxonomy Facets
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi all,
I would love to use this great module for my main search, but cannot solve one issue:
at the moment I use a view with exposed filters to filter content. One field in the view is constructed by pulling the term ID of the current search from the URL and passing it on as an argument to an embedded view like this:

<?php
   
//gets the term variable
   
$termvariable1= $_GET['tid1'];
   
//passes the variable on as an argument
   
   
print views_embed_view('name_of_the_subview', 'block_1'$termvariable1);
   
?>

That way the embedded view also gets filtered by the current search terms.

In faceted search the URL is constructed differently, like: "...results/taxonomy%3A10", so the $_GET[] method doesn't work.
Is there a way in PHP to pull the current search terms from the faceted search URL in a similar way?
Any help is very much appreciated!

 
 

Drupal is a registered trademark of Dries Buytaert.