Discussions

Ask a Question
ANSWERED

How can I handle an "model_form" AJAX response?

The guide [Create a contact form][1] briefly mentions that you can use the JSON API by adding `json: true` to the options. It gives an example response, but not much more than that. In my opinion the guide is missing some key information. It doesn't tell me if I am responsible for making the request via JavaScript or if the Rails or LocomotiveCMS is doing this for me. If the latter is the case it should also describe how to handle the response. Eg. What event should callbacks be attached to? I'd like to submit some data via an AJAX request but am currently unsure how to do this. I'd like to know the two things mentioned above. 1. Must I initiate the AJAX request myself or is this done by the framework/CMS? 2. If I don't have to initiate the request, how do I attach a callback to handle the response? [1]: https://doc.locomotivecms.com/docs/create-a-contact-form#notes

Localize Section

Is it possible to localize a section without duplicating the template?

How to access Content Creator?

I have created a content type and when someone create a content entry I want to show his name without him to enter it. Is it possible to access the creator name in the liquid template?

MongoDB 3.4 EOL – Heroku

Hi, I have a bunch of Locomotive instances running on Heroku. Unfortunately the MongoLab extension is being phased out by November (they recommend migrating by September) and Compose no longer supports MongoDB 3.4. I am having difficulties finding a cost-effective cloud solution for that version of MongoDB, given that it has been marked end of life since January of this year. Do you have any suggestions? Do you plan on updating Engine to support a more recent version of Mongo? Thanks in advance

station.locomotive.works - site returning error

After I removed one of the languages from the site settings. I got an error which referred me to contact the administrator. I can't open the site anymore to delete it.

BUG: Locomotive crashes due to SVG resize

Hello! I use a lot of SVGs throughout my page. If authors visit the Assets page Locomotive crashes. It seems that Locomotive tries to resize the images and completely freezes. See this screenshot: https://drive.google.com/file/d/1Gitjbgk9_EbZYUhvOdXmkd7PAFVAjYEt/view?usp=sharing

Allow custom HTML attributes (data-...)

For our lazy loading script, it would be nice to allow any HTML attributes in the WISIWYG editor (the editor seems to cut any attributes that aren't whitelisted). For example, we'd like to be able to save an image tag like ``` <img data-lazy="some/url"> ``` Has anyone made this happen?

Error: Mongo::Error::NoServerAvailable

Mongo::Error::NoServerAvailable (No primary server is available in cluster: #<Cluster topology=Unknown[localhost:27017] servers=[#<Server address=localhost:27017 UNKNOWN>]> with timeout=30, LT=0.015. The following servers have dead monitor threads: #<Server address=localhost:27017 UNKNOWN>):