Discussions
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
Posted by Johan Wentholt over 3 years ago
Localize Section
Is it possible to localize a section without duplicating the template?
Posted by Patrick Hausa over 3 years ago
List of all accessable methods inside Liquid
I don't get what methods are accessable in the liquid. When I try for example to access the listed attribute of an page it seems to be empty.
Is there in any way a full list of all methods that I can call from the liquid code?
Posted by Patrick Hausa over 3 years ago
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?
Posted by Patrick Hausa over 3 years ago
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
Posted by Simon Pinkas over 3 years ago
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.
Posted by Patrick Hausa over 3 years ago
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
Posted by Max Engel almost 4 years ago
Custom metafields per page
Hi! I recently discovered Locomotive CMS and I'm quit happy with it. But I'm missing the option to define custom fields for all pages. (Every page has the fields, but they are individually per page)
For Example: Every page should have an open graph image and an open graph description. (The authors should be allowed to edit them)
It there a way to define metafields per page? It would be nice to define own tabs, additionally to content, settings and seo. Another solution would be to create own SEO fields.
Thanks in Advance
Posted by max almost 4 years ago
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?
Posted by Tobias Geisler almost 4 years ago
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>):
Posted by zr0243 almost 4 years ago