Drupal 7, taxonomy exposed filter - drupal-taxonomy

I am working with drupal 7. How do I limit a taxonomy dropdown exposed filter to only display the terms used by nodes in view results?
I understand that the list is populated before the views takes place, but this means that i am often left with tags that display nothing ( since they are hidden with my view) any help would be much appreciated

In views:
Filter Criteria
Add - Content: Has taxonomy terms
Settings: Select the Vocabulary name.
Checkbox Expose this filter to visitors.
If you are using single filter select that, where you can see the list of Taxonomy terms. If you have child terms select hierarchy check box and specify the depth of it. only appears when you Add - Content: Has taxonomy terms (with Depth) -- refer to second step above.
Now select the terms you want to display, and make sure to checkbox Limit list to selected items
You can also add (Global: text area) under No result behavior in Advanced if you still want to show all taxonomy terms but want to show some thing to user like coming soon instead of leaving the selected taxonomy term showing empty page.

Related

magento 1.8 search results filter contains all attributes

On each category page, filter work correctly (can chose only parameters from products which apply to this category), but in search result page - filter consist of all attributes.
Please help me to fix problem with filter on search result page.
"Search result page - filter consist of all attributes."
I think you are referring to the "Layered Navigation" on the search results page.
You can specify which attributes appear on the search results page under the attribute settings;
Catalog -> Attributes -> Manage Attributes.
Select the attribute (filter) you wish to display or remove.
Now under "Frontend Properties" you will see the option "Use In Search Results Layered Navigation"
Adjust this value according to your requirements.

Translate Magento Shop Categories

I want to translate categories in magento but I didn't found any way but only to add products multiple times and set different store view but that is really very time consuming if I have lots of categories and lots of site views.
Any short way to translate categories?
Yeah, that one is one of these things that can be done without extensions but are not intuitive. I had to check a video from youtube to get to the solution, which is:
Go to Catalog->Manage categories.
Select the category you want to translate. I am assuming that this category applies to the whole store, all store views included.
Then at the top left box select the store view that you want to display the category in a different language, i.e. "English".
Now the general information tab of the category shows checkboxes with the option "Use default value". Uncheck the checkbox for the field "Name" and change the name for the translated text.
Save category.
In case you find difficult to follow my instructions check this video:
https://www.youtube.com/watch?v=VppfnO14jfE

Implementing drill down in Kibana 4

Is it possible, and if so, how, to implement drill down in Kibana 4?
For example, lets say a dashboard has a pie chart which represents products.
Beneath that, there could be a table which shows component parts which are used to make products, together with supplier name, cost, availability, and other details. Clicking a product in the pie chart will filter the table to only show parts for that specific product. Selecting the supplier field would drill to another table showing the details for the supplier.
This requires that there be a multi-column table widget which would be used to display the details for each part, and that each column in the table could potentially be a link to another table.
In addition, lets say that there are three charts at the top of the dashboard. Clicking on each one should swap out the area below to display a table with a specific query and data columns relevant to the selected chart.
Is this kind of functionality abailable in Kibana?
You can mostly achieve this type of functionality in Kibana 4. What you'll want to do is create a search that has the fields that you want to display and save that. Next you'll create your visualizations that have the things you want to drill down on.
Finally, create a dashboard with all of the visualizations on it, and then also add the Search (when you hit +, there's a tab that says Searches. Choose your saved search there.
When you click on your widgets, it will start adding filters and refreshing the page, including your "search".
On the search widget that's on the dashboard, you can click on the rows and they will expand to show the fields. Next to each field is a +/- that will let you filter to that value or exclude that value.
I Think Kibi has this feature But again I think it is for relational database tables
Please refer to this issue
https://github.com/elastic/kibana/issues/4439

Magento: How Search Box Results Are Generated

I am a newbie in Magento and I have a question regarding the way the search box works.
If I understand correctly, the searchbox uses the catalogsearch_query table which is populated with the search terms the customers have entered in the input box. As a result these make up suggested results when someone types in a word.
The thing is, some of the customers may have entered something completely irrelevant to the store products (store that sells shirt dresses) e.g. black car with white stripes and it will show up as a result if the next customer types in the word 'black'.
Is there a way I can avoid something like that by manually modifying the code? If yes, what files would I have to change to achieve the required result?
Thank you for your time and your help!
What you can do is go to catalog in the admin and go to the catalog search tab, you can change the "search type" from "like" to "full text" and it will search exact string, however for this to be accurate attributes and titles have to be setup appropriately to your type of product. I wish I had a direct answer but messing around changing the settings of attributes being searchable and changing the configuration of the search method are good areas to start.

Custom filter in Magento's layered navigation

I have a list of alpha-numeric size attributes that I need to be able to filter, either in advanced search or in layered navigation (I'm referring to Magento, if anyone else decides to remove that from the title).
the problem is that I should be able to set them as intervals. Imagine shoe sizes: 25, 25/, 31, 31/. I would like to be able to set something like:
20-25/
26-30
30/-40
With the first filter returning all shoes available in that size interval, obviously. How can I achieve this?
It occurred to me assigning thos intervals as attributes before I export them from SQL Server... Maybe that would save me some trouble...
Magento doesn't have an option to make attributes as intervals, only the price attribute is filtered like that.
I think you can do this with 2 attributes: first would be shoe size, and show this one only in the product details page, so you would list values like 25/26/27... and the second would be shoe size interval, an show this one in layered navigation/search and have values like 25-30/30-35/35-40... both of them would be dropdowns in the admin area.
You can make a module that extends Magento's default navigation, you have to rewrite filters block and model from catalog in frontend and attributes from admin so that you can add an extra option to the attribute like "interval".

Resources