Discussions
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?
how do to have a dropdown menu?
Hi I try to have a dropdown menu, but I lost try, my structure is the next
Rake routes error
Hello,
I am getting errors when running rake routes. I ran the "Install Locomotive Engine" example program exactly as specified in https://locomotive-v3.readme.io/docs/getting-started-with-locomotive.
Using booleans in metafields
I set up a metafield with a boolean value and used it to control display of a portion of a page inside the tag {% if %}. I set it up in my config file using true or false for the default values, and the page displays in Wagon as I would expect based on the value I set. But when I push the site to the engine, the value I set using the back office makes no difference in the display of the page. The portion of the page I'm trying to control displays regardless of the value. I'm wondering if I have a fundamental misunderstanding of something.
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.
Search/Filter function on content entries
Hi, the old locomotive hosting admin pages had a function to search for entries. I can't seem to find it in the locomotive works portal. We have about 700 events on the site, and it's borderline unusable without it.
Creating related object using a form
So I have an events content_type and an event
, has_many
=> open_subscriptions
, so people can go to a page, select an event
, fill in their info and subscribe to the event
via the open_subscriptions
. You can see my form here http://engine.whale-agency.com/locomotive/okarnhem/preview/open-subscriptions/create_application
the problem I have is that it creates the open_subscription entry but it doesn't create the relationship to the event and I can imagine it is because of the form and how I am doing the select. Here is a gist with the code of my page with the form. https://gist.github.com/DonKoko/28bc5cc36b2a381c2860b0ee3ecd4841
Asset version extension
My client has an iframe embedded in their site from a service called mycompass.com that references the stylesheet from the client's main (locomotive.works hosted) site to style the iframe content.
'undefined method `force_encoding'' on wagon clone
I'm getting the following error when trying to clone our site.