This is a plugin for LocomotiveCMS. It was created to allow LocomotiveCMS designers to add some functionallity to the LocomotiveCMS search gem.
It provides a few liwuid tags that can be used to improve the search functionality.
h2. Installation
To use this plugin you must be using a version of LocomotiveCMS that has the plugins feature designed by "Colibri Software":https://www.colibri-software.com. You can do this by making the following changes to the Gemfile in you app:
Remove or comment out the following line:
@gem 'locomotive_cms', '~> 2.X.X', require: 'locomotive/engine'@
Then add the following lines in your Gemfile to include the plugin:
group :locomotive_plugins do
gem 'locomotive_search_ext_plugin'
end
This plugin also requires the LocomotiveCMS Search gem. To add it add the following to your gemfile:
@gem 'locomotivecms-search', require: 'locomotive/search/mongoid'@
h2. Usage
h3. Configuring Plugin
This plugin requires no configuration.
h3. Liquid Drops
This plugin has no Liquid Drops
h3. Liquid Tags
This plugin provides several tags that will improve the search functionallity.
The following is a list of tags and their options(and defaults):
search_assign
** Used to turn a search result into a page or content_entry
** Usage:
@{% search_assign <search_result> to : %}@
** Example:
{% for result in site.search %}
{% search_assign result to object: flag %}
{% if object %}
{% link_to object%}
{{ object_description }}
{% if flag %}
{{flag}}
{% else %}
Page
{% endif %}
{% endif %}
{% endfor %}
search_custom_type
** Used to do a search on a specific model using specific fields
** Usage:
@{% search_custom_type <content_type> on to %}@
** Example:
{% search_custom_type members on fields category_id to results %}
{% for member in members %}
{{member.name}}
{% endfor %}
h3. Liquid Filters
This plugin has no Liquid Filters
FAQs
Unknown package
We found that locomotive_search_ext_plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 02 Oct 2014
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
OpenSSF has published OSPS Baseline, an initiative designed to establish a minimum set of security-related best practices for open source software projects.
Michigan TypeScript founder Dimitri Mitropoulos implements WebAssembly runtime in TypeScript types, enabling Doom to run after processing 177 terabytes of type definitions.