New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

locomotive_search_ext_plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locomotive_search_ext_plugin

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

h1. Search Plugin

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'@
  • Add the following line: @gem 'locomotive_cms', require: 'locomotive/engine', git: 'https://github.com/colibri-software/locomotive_engine.git', branch: 'plugins'@

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

Package last updated on 02 Oct 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc