Discussions

Ask a Question

Radio button type?

I have a field type which is currently a "select", which works fine. I'd like to display it as a series of radio buttons instead. Is that possible? I'm looking at the field types list and don't see anything about radio buttons. https://locomotive-v3.readme.io/docs/define-a-content-type

What is super_admin?

I noticed that in the Mongo collection 'locomotive_accounts' the user has a 'super_admin' field. But I didn't find any information about it.

Quick Start Issue - Digital Ocean

I've just stumbled across Locomotive and it looks really good so thought I'd give it a go. Starting with the quick start guide it all went well until I got down to number 5. Deploy the site. I've got a droplet setup on Digital Ocean and not sure what to do. I ran the command in shell but got an error back? Do I need to do something else to get it to work with Digital Ocean?

Please fix "Deploy on Heroku"

I tried installing using the instructions found in https://doc.locomotivecms.com/v4.0/docs/heroku . It seems it would be an easy change to switch ruby version to a version that Heroku supports: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes Heroku returns this log: -----> Ruby app detected -----> Compiling Ruby/Rails Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.2.2.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3. Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.2.2.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3. ! ! An error occurred while installing ruby-2.2.2 ! ! This version of Ruby is not available on Heroku-18. The minimum supported version ! of Ruby on the Heroku-18 stack can found at: ! ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes ! ! Push rejected, failed to compile Ruby app. ! Push failed

Wagon server 'killed' on certain pages

On a previous project and now a current one, we face the problem that wagon is killed during page load on wagon. ``` Agrano Alto Started GET "/events" at 2016-05-29 12:55:58 +0000 Params: {} Timezone: UTC Detecting locale DE Found page "Events" [events] Completed 200 OK in 249.3ms Killed ``` This usually happens, before images are loaded/done loading as it seems. On the engine it works totally fine. Is this a known issue/any hints on the causes?
ANSWERED

Search possibility

Hello, I'm looking for adding search functionality to the site. I can't find any information in the docs. Can someone help me to understand if it's possible?

Best way to use with_scope and params to filter content (Shop)

Hi, what is the best way to filter with_scope and multiple params like category, color, size etc. and the case that maybe only one or two params are selected. Example: {% with_scope category: category, colors.in: [color], size.in: [size] %}... When a user clicks on a category, no product appears. If i delete the colors.in and size.in it works. My current workaround is: {% assign category = params["category"] | default: '/^/' %} {% assign size = params["size"] | default: null %} {% assign color = params["color"] | default: null %} and a lot of if.. else if.. else.. but i think there must be a cleaner approach Thanks

How to change Logo

Hiya Is it possible to change the logo on the site? furthermore is it possible to change the ability to stop allowing users to create sites unless administrations?

Access secont element in contents array

It is possible to access contents.posts.first and .last. How do I access arbitrary elements? I know I can do .all[i], but this fetches all documents from the database and is thus inefficient. In locomotivecms_steam-1.1.1/lib/locomotive/steam/liquid/drops/content_entry_collection.rb a slice(index, length) function is defined which should do exactly what I want. However it is protected and cannot be accessed over the liquid API. What do?

Using variable into section set up

Hi everybody, I use a text_color section setting as select in all my sections. To avoid writing the same c olors array in every section, i have created a variable to store all the custom colors, now I need to use this variable in section settings like this ` { "label": "Theme color", "id": "theme_color", "type": "select", "options": colorsSpectre }` but it's not working. How can I do it? Thank you for advance