Ask a Question

Can't install last version of Wagon. Only v.1.5.8 seems installable

Hi, I'm struggling at the very beggining of the "Quick Start" Guide, as I simply cannot install the latest version of wagon (3.0.5 at the time i'm writing this). I'm using Ubuntu 20.04 and I installed ruby following this guide : https://gorails.com/setup/ubuntu/20.04 Then I try to install wagon using gem install locomotivecms_wagon but it installs the version 1.5.8. So I try forcing the latest version using gem install locomotivecms_wagon -v 3.0.5 but i got the following error : ERROR: While executing gem ... (NoMethodError) undefined method `request' for nil:NilClass Can somebody help me here ? I really don't understand what's going on. I never experienced such issues with other standalone gem installations. Thanks a lot, Grégoire

List pages in menu vs sitemap.xml

Since v3 or v4 sitemap.xml is populated by pages which are tagged as "listed". In previous version we used to use this attribute to know if the page should be listed in the menu or not. But now we would like to send to sitemap all pages and keep using "listed" for our menu. Is it possible to add a new attribute to split these functionality from the dashboard ?

Forcing site-goers to login, question

Hello, I'm an admin trying to debug something going on the locomotive CMS for a client. The issue I'm facing is that after clicking a link on the preview/mysite, it redirects to the login screen for https://station.locomotive.works/_app/sign_in All of the pages' published status is set to "published" in the CMS so I'm really not sure why this behaviour is occuring. I would like to take the site live (point the domain to locomotive), but I'm not sure if the behaviour would carry over, and if it does that would be a significant problem. I would be happy to provide the exact website in an e-mail, but let me know if this behaviour is intended across your hosted sites, or might be case-specific to my site for some reason. Thank you

Resetting site content to default

I have noticed that whenever I change default values in a section or config files like translations.yml then "wagon deploy" to my site, the values on the site do not change. This makes sense from a content management standpoint, but there are times where it would be convenient to forcibly reset these values. For example, I recently changed a large number of translations in my yml file, and it would be a chore to go through and update them all by hand in the back office. Is there any way to force the site to revert to the default values? I would like to be able to reset, for instance, just one page or just the translations without nuking the whole site.

Any way to delete a section?

I'm trying to delete a section. I've made some breaking changes (e.g. changing block types, etc) and want delete the section and re-deploy. I tried running `bundle exec wagon delete staging -r sections -v` but received a garbled error message including the following: *"Resource must be one of page,content_type,snippet,translation if you pass an identifier OR be one of content_types,snippets,theme_assets,translations if you want to delete all the items of that resource. (ArgumentError)"* Is it possible to delete a section?

Any way to delete an asset from a metafield type: image field?

I've set up a number of metafields with `type: image`. They work as expected. However, if I add an image to a particular field and then decide I no longer want an image applied to that field, there is no way to delete the image. I can delete the image from the Assets section of the Admin panel ("Back Office") but what if I don't want to do that? What if I want to retain the image to use elsewhere but simply don't want it applied to my metafield? There doesn't appear to be a solution at this point.

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?

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 option 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?

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?

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

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

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>):

User guide

Hi, Do you have a user guide for the actual usage of the CMS? I mean the daily usage, content publishing, etc.

How to add custom extensions (gems) with LocomotiveCMS hosting

Is it possible to add custom gem extensions to the engine while using Locomotive CMS hosting solution. And if so, how can it be done ?

How do i reset a user in the Administrator section

i am trying to add a member from my team to our production site so she can upload content. when i tried to add the user it said her email is already in use, but i didn't see the user on the list of administrators. I thought maybe it was because the user was in our QA site already so i removed the user from our QA site and tried again. I got the same message that the her email was in use. When i went to add the user back to our QA site i got the same message again saying the users email was already in use. Is there a way to remove the users email completely or reset the user so we can get them back in and able to upload content to the site?