I want to search streamfield in admin panel? - wagtail

I have about 400 different types of blocks. How can I search for them from the admin panel?
Example image:
Example search form admin panel

You can't search for the block names in the default search bar. I would suggest you install wagtail-inventory and use their purpose-built search for block types:
https://github.com/cfpb/wagtail-inventory

Related

Search Highlights in file Contents

We have .net application displaying data from using Azure Search service, based on DotNet search App Template
Is there a possibility to show only parts of the file with the highlighted term - for example PDF file page with term highlighted on top?
Have you looked up using the highlight feature?
https://learn.microsoft.com/en-us/rest/api/searchservice/search-documents#highlightstring-optional
Your search results will then have a new #search.highlights field which contains a collection of passages with the searched terms. Then you can also use the $select parameter to decide which fields to retrieve and which one to ignore.
https://learn.microsoft.com/en-us/rest/api/searchservice/search-documents#selectstring-optional

How to create search engine in leaflet map using apache solr?

I'm building an app that lets user find vacation rental from map. I've several data in my leaflet application. So my question is about:
How to make a search engine from the map itself that search the marker id(and content of it)?
In this case, i wish to create a search bar outside the map which user can search any places and the result should be appear in the map in the form of marker pointer which indicate the result instead of list of result in list view.
How to make the marker appear when user query the result
Your use case have a solution In Kibana-6 with elasticsearch , there is a lucene bar search which search interactively your data.
this is my work on nyc-cabs-data :
as you can see in the lucene bar i search the field total_amount which is a column in my csv

Iframe content not able to save in module params Joomla

I am using Joomla3 with tinymce editor. I have created one module and adding one params in textarea
I am adding iframe code
in text area
but it's not saving. If i am save normal text string then it's saving
Please help me
I believe you need to add a filter to your xml code.
such as:
filter="RAW" or, probably more appropriately, filter="HTML"
This will keep Joomla from cleaning your code. There are a number of filters available to XML fields when creating modules. You can examine the code here: https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/filter/input.php#L167 to see the exact list.
What user group is the account you are using a member of? Super Users and Administrator group types should have no filtering set by default but it sounds like you might need to edit those settings.
From the main menu:
System > Global Configuration > Text Filters (tab)
You will see all the available user groups for you website. The group your user belongs to should have a Filter Type of No Filtering. Another important note is its better to add the user account to a group with the permissions then to arbitrarily adding it to a group type typically reserved for registrants, guests or low-level editing.

Display Popular today,month,all content

i'm using drupal7 and can't figure out how to display Todays/Month/All popular content in side bar.people suggest use Statistics module but only filter Todays most popular content.i think it can be done with Views module. help me. many thanks.
Views + Blocks + Statistics. The key here is to sort and filter based on the content statistics.
You configure sorting using the Field Settings section of the view's admin screen. You configure filtering from the Exposed Filters section of the same admin screen.
As for displaying it in a "side bar" (block in Drupal-speak); you need to create a Block display type from your view's admin screen.

Views Content Pane "Related content" by taxonomy

I'm currently developing a Drupal 7 site where I use Page Manager's "node_view" to customize the layout for my "Article" content type.
So, whenever viewing an Article I want to show a little box with "Related content".
I have a taxonomy vocabulary "Shared category" that I use in all my content types.
For example I also have a "Gallery" content type, so when viewing an article in with the "myTag" term - I want to show a Content Pane with images tagged with "myTag" from the "Shared category" vocabulary.
My question is about setting up the Contextual Filter for the Content Pane.
Should the "Argument input" be a Vocabulary or a Term? - I've tried both but can't get it to work.
Also I have another question: Is it possible to use a Content Pane as a block, that is shown with the Panel? - I guess not, sinse the Contextual filter value comes from Page Manager.
You won't want to manually input the argument in the panel, as it will vary for each article.
You'll want to set it automatically using a default argument that gets the tid from the node.
To get the related content block to show content based on the same terms as the node being viewed, you'd need to add a taxonomy term id argument to the view.
You can then try the 'Set a default argument' and use 'taxonomy term from URL' ( node option )
If that doesn't work, you may need to get the relevant tid from node using php code in the default argument area, with something like node_load or menu_get_object to load the node.
e.g something like
if($node = menu_get_object()){
if(isset($node->field_shared_category[$node->language][0]['tid'])){
return $node->field_shared_category[$node->language][0]['tid'];
}
}
Related content can be shown by using contextual filter in block views. This block view will contain content which are associated with the current content viewed by a user.
You can goto "Create related content block view based on terms in Drupal 7" blog post to get step by step instruction to create this block view.

Resources