Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
You can change this under Settings & Account at any time.
Search API + Facet API + Panopoly on Drupal 7
Transcript of Search API + Facet API + Panopoly on Drupal 7
On the installation of Panopoly there is plenty of information on the project page (http://drupal.org/project/panopoly). If you're following along with this tutorial, make sure you install the Panopoly News app, since we're using it for our example content.
For the latest Panopoly development release, use the instructions given here: http://drupal.org/node/1717546
When you're done, it should look a little like this Panopoly + Search API + Facet API Modules needed All modules we need for setting up a search page with facets are pre-installed, but devel is not and we're using it here to add some content to our site.
You can add your own content, or install the devel module (http://drupal.org/project/devel) the way you're used to and enable devel and devel_generate Go to the address admin/config/development/generate/content and generate some News nodes So much for our content, now we want to search something. Search API comes with a basic Search server you can modify, but we'll just start a new one. Head over to admin/config/search/search_api/add_server Great! To handle the search index inside of Drupal, choose 'Database service'. Use a dedicated index server like Solr for bigger projects. Now the index. Go to admin/config/search/search_api/add_index Choose Node item type, and 'News server' as server push the button sounds good Views Of course we want to use views for the display of our indexed nodes, so go ahead and add one at admin/structure/views/add Panopoly this is the index we just made no need for a page, we will use content panes Go! with a little luck you will see a list of node ID's in the preview. These are the unfiltered ID's of all the indexed nodes in our news server add the fields you want to see on your search result, and change the view display into a table, or whatever is appropriate. Add a panel pane, as we want this view to be available on our 'Panelized' pages.
Save this view! At this moment we have the Search server in place and a view to display the indexed nodes. Let's go back to Search API, because we forgot (or I did at least) to set up the fields for facet searching.
We want to go to admin/config/search/search_api/index/news_index/facets So far so good Search API
& Facet API (this will depend on your index's name) I have enabled facets on the fields 'is new' 'date created', 'author' and 'categories' Save configuration After saving the index, on the 'Fields' tab, choose the fields you want to index.
I'm indexing the title, Date created, Node ID, etc. Save your configuration and click on the 'Status' tab. By saving the facet configuration in the last step, we have created a block for each facet of the indexed nodes. Panopoly doesn't use blocks however, so we need to make them available for our pages. Head over to admin/structure/panels/settings/panel-page Panels Here we can make available all possible elements to our Panel pages. Find the vertical tab 'Allowed Block Content' and add all Facet blocks. Let's add that page now:
node/add/landing_page is where we are After hitting the + button on one of our Panel regions, we get this window. Start by adding the view we created. You can find it on the 'View Panes' vertical tab. next up, the facet blocks And that's it hit save and behold
http://netzkoop.de email@example.com firstname.lastname@example.org