Upgrade Your Drupal Skills
We trained 1,000+ Drupal Developers over the last decade.
See Advanced Courses NAH, I know EnoughLink to search page with advanced search fieldset expanded!
Create the link:
Advanced Search
Or you could even add it to the search box with jQuery (I'm adding it to a Custom Search block here): /* jQuery to expand advanced search field is contained in js_injector rule (in db) */ $('Advanced Search').appendTo('.block-custom_search_blocks .form-item');
Then, add a jQuery script. I used JS Injector to add this only to the 'search*' pages. //wait until the rest of the jQuery has been loaded $(document).ready(function() { //break apart url to get anchor var url = document.location.toString(); if (url.match('#')) { var anchor = '#' + url.split('#')[1]; }
//click collapsed fieldset to expand if (anchor == '#advanced-search'){ $('.search-advanced legend').find('a').click(); } });
About Drupal Sun
Drupal Sun is an Evolving Web project. It allows you to:
- Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
- Facet based on tags, author, or feed
- Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
- View the entire article text inline, or in the context of the site where it was created
See the blog post at Evolving Web