Welcome to the Locomotive V4 developer hub. You'll find comprehensive guides and documentation to help you start working with Locomotive V4 as quickly as possible, as well as support if you get stuck. Let's jump right in!
When I create an editable text block, the HTML id's and classes are missing from the CMS' WYSIWYG editor if you click on the "<>" code button. That means you lose those from the markup the minute you make a change and save it. It looks like Locomotive is using wysihtml5. Is there somewhere we can change the config for the parser rules for this?
Posted by Jackie Johnston 2 years ago
Hi, we migrate from V2 to V3 and correct the names for editable elements to underscore in one of our websites. But we encountered a huge problem, that just opening a page clears the values of the editable elements. So the page/content is broken. Is that a known problem? Best regards Steffen Marschall
Posted by Steffen Marschall 3 years ago
I'd like to have the content_type creator's name pull straight from the member that created it. Right now, I'm having to create an Author content_type and associate it, but that doesn't seem to be the most efficient way to achieve this. I'm not currently seeing a way to do that in the docs or discussion forum. Am I overlooking something simple?
Posted by Sean Oldham 3 years ago
Hello, I am completely new to Ruby and RoR, and ofcourse LocomotiveCMS. Fortunately, I have managed to follow the instruction at [https://locomotive-v3.readme.io/docs/getting-started-with-locomotive](https://locomotive-v3.readme.io/docs/getting-started-with-locomotive) until `bundle exec rails server`, eventhough I have to install `node.js` and `puma` before that, which are the missing requirements from the docs. I did it directly on my VPS. So my question are: 1. how to change the IP/URL (and the port) so that I can change localhost with my IP/URL? 2. What to do after `bundle exec rails server` and register to my site as user? I am not sure what to do to follow section `Pushing a site template with Wagon` at [https://locomotive-v3.readme.io/docs/getting-started-with-locomotive](https://locomotive-v3.readme.io/docs/getting-started-with-locomotive). Thanks!
Posted by Atok Fakhrudin 3 years ago
The dashboard on Locomotive helpfully lists recent edits to models in the system. Is there a way to choose which models show up there? In my case I have one model which is frequently edited by an automated process, and it's making the dashboard very noisy.
Posted by Josh Santangelo 3 years ago
Hello! I really like locomotive and try to push this cms in our company. But my CTO ask who actually uses locomotive. The only one place I found your site - this is several static images with company logos. But i need if possible links to sites developed with CMS, and I could't find them (( Ask for help ))
Posted by Igor 3 years ago
We just launched a site using Locomotive Hosting, and we are receiving a ssl mismatch. The server is serving a ssl cert of "locomotive.works" which obviously is not our domain. I looked all over the documentation and found nothing on ssl certs, or anything in the back office where I could configure or upload a valid SSL cert. How do we get our cert onto the locomotive hosting server?
Posted by Ryan Gallagher 3 years ago
What's the best way to create a page nav in a layout to show only the child pages of which ever page the layout is applied to? Have tried the following and it doesn't work. {% nav page.slug %} {% nav 'page.slug' %} {% assign nav_name = page.slug %} {% nav nav_name %} When trying the actual page slug as a string, it works as desired.
Posted by Laura Fischer 3 years ago
I'm looking to use gzip compression on my files, but I can't find any information on if it's supported with wagon/locomotive. I found this by googling the question, but i don't see any conclusion on whether it's been included or how to use it. https://github.com/locomotivecms/engine/issues/886
Posted by Patrick Sparks 3 years ago
Hi there, We upgraded wagon to the latest version and moved our hosting to station.locomotive.works. I'm seeing a greatly reduced feature set on the admin interface, has the ability to edit liquid templates and create models been removed? We used this functionality quite extensively (even though we also use wagon for development). Just wondering what the suggested workflow modifications are for a reduced feature set in the new admin interface. Another thing I can't find is how / where to search through a set of resources. In the old version I could search through our models, I can't see how to do this in the new version. Cheers, Damien
Posted by Damien Radford 3 years ago
Hello, I had a site wiped out, but I still have the data as a mongodump, I have been trying to create an updated site with v3 but have been having a hard time getting the data to reintegrate correctly. I am able to get the site running on 2.54 again in development with the correct data in the rails app (image linking back to s3 might be another challenge), but I am having trouble moving the data to the new version. it seems to be there, but just returns a page not found error for pages and content in the backend. 1. Is this even possible? (i would like to use the new features) 2. how complicated would this process become due to data changes between the versions. Sorry if I missed info about this anywhere. Thank you, Robert
Posted by Robert Brackett 3 years ago
On the site I have built with Locomotive sometimes the users upload images to go with a story. They may use the same image in multiple places but if they then remove/delete it from one location they are unable to access the page. It seems that the other links to that image are now broken. Is there a way to fix this other than telling the users not to delete an image of they've used it in more than one location?
Posted by Brian Hill 3 years ago
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
Posted by Kations 3 years ago
I'm running through the installation guide at https://locomotive-v3.readme.io/docs/getting-started-with-locomotive to get Engine up and running on my local machine and getting the following error: ``` $ bundle exec rails generate locomotive:install Could not find generator 'locomotive:install'. Maybe you meant 'coffee:assets', 'model' or 'integration_test' Run `rails generate --help` for more options. ``` Anyone run into this and have a solution. Runnings lastest version of OS X and followed the install guide of wagon at https://locomotive-v3.readme.io/docs to get Ruby and Rails up and running.
Posted by Raymond Johnson 3 years ago
I've look through all the docs and cannot find this mentioned anywhere. I've locally edited a file in the data folder of my locally deployed wagon. The file is photos.yml and I added a bunch of entries for photos that should appear on the site. When I serve the site locally all the entries that I've added show up without issue, but when I deploy to my server (also local) none of the images are showing up on the page or in the models section for photos which I would assume them to be in. Any idea of how to deploy a .yml file so I don't have to manually add all the photos to locomotive?
Posted by Patrick Sparks 3 years ago
Hey! So I'm doing first steps, the basic stuff. And I'm stuck on this step – https://locomotive-v3.readme.io/docs/use-them-in-templates. Path_to link to a single entry generates empty space and thus the link just reloads the page we're on. I checked docs and my code like 10 times, I don't get what I'm doing wrong and where's the problem. Any help and advice would be much appreciated.
Posted by Vlad Arbatov 3 years ago