If you'd like to let your users know how many search terms there has been on a search then .
Go to the View you are using for the search page .
administration > Structure > Views
> go to the display you are on ie 'page'
> in the middle panel find 'HEADER'
> click add
> find 'Global: Results summary'
> this will be pre filled with 'Displaying @start - @end of @total' which you can change and add extra tokens if you need.
Thursday, 26 February 2015
Monday, 23 February 2015
drupal 7 search api facets change Show more text
Go to > Administration > Configuration > Search and Metadata
Edit > 'Facet "more" link text
And Edit 'Facet "fewer" link text
‘
SAVE
Friday, 20 February 2015
drupal 7 how to make a view from indexed search
drupal create a search view for indexed node solr
The key here is to choose the name of the search index from the ‘show’ drop down box when you ‘Add a new view’ . Check this page for full instructions. https://www.drupal.org/node/1597930
Tuesday, 3 February 2015
MAMP Pro issue with changing php.ini files
The issue here is caused by trying to be too clever and changing php.ini files in the address given in you php info.
when what you need to do is use the MAMP Pro UI
MAMP PRO > FIle > Edit Template > php.ini > your default
when what you need to do is use the MAMP Pro UI
MAMP PRO > FIle > Edit Template > php.ini > your default
Tuesday, 27 January 2015
Drupal Theming - Bootstrap Import errors - import not found or unreadable: bootstrap.
here was the error
error sass/bootstrap/test/dummy_sass_only/import_all.sass (Line 1: File to import not found or unreadable: bootstrap.
Load paths:
*/sites/all/themes/*/sass
/Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets Compass::SpriteImporter)
The fix was to change this line in /sites/all/themes/my_theme/sass/custom.scss
@import 'bootstrap/assets/stylesheets/*';
to
@import 'bootstrap/assets/stylesheets/bootstrap’;
Adding Excerpts to Solr Search Results - Including attachments
First off I’m going to address the question ‘ How to Add Excerpts to the Solr Search API ‘ .
This is worthy of note as the obvious way is to do it through the Search API UI; when in fact this method needs to be disabled and instead edited on the Solr Server Settings ‘ Still within Search API setting ‘
Step-by-step guide
- Check the following is disabled.
> admin > configuration > filters > under ‘Processors
> check that ‘Highlighting’ is unticked
> SAVE SETTINGS
> admin > configuration > 'Your Server' > edit
2.
> under 'Advanced' > tick 'Return an excerpt for all results.'
> 'Save settings’
3. Then in your view for the search you have add ‘Search: Excerpt’ Field.
Adding an excerpt from an Attachment
There’s is a bug with Search API and Excerpts; currently there is a patch which isn’t on the development release. Go to this page to get this
Friday, 23 January 2015
Drupal 7 - how to make a panelled Search page.
Instructions on how to make a panelled Search page . Like this
Step-by-step guide
Add the steps involved:
- in > admin > Structure > Blocks
- Search for your facets and select the block you want them to go in . ie 'Sidebar First'
- SAVE
- open your View > Page .
- under FORMAT change Show to 'Panel Fields'
- In Settings choose your Panel Layout from the list. ie 'AT One Column' should display the above block example.
7. And then still in the VIEW - making sure you are in the 'Page' display; otherwise you won't see this option. Under 'Advanced' - you should now see under 'Exposed Form' the text 'Exposed form in block:' - Change this to Yes.
8. Once you've added this to the view you'll now be able to go back to > structure > blocks.
And see the exposed form here to move to the block you wish.
Subscribe to:
Posts (Atom)

