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!
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. We've sent them the link to the staging URL without the version number extension so our edits to the css aren't showing up. Is there a way to make our edits show up? We don't have access to the iframe source and can't update the css URL there to have the correct version number. Thanks!
Posted by Laura Fischer 4 years ago
I'm getting the following error when trying to clone our site. ``` undefined method `force_encoding' for {"de"=>"false"}:Hash ``` Seems to be a locale issue. German is the only language used on the site. Top line of backtrace: ``` /home/vagrant/.rvm/gems/ruby-2.2.3/gems/locomotivecms_wagon-2.1.1/lib/locomotive/wagon/commands/pull_sub_commands/concerns/assets_concern.rb:19:in `replace_asset_urls' ``` Any idea on how to fix this?
Posted by Tobias Geisler 4 years ago
After pushing to our site (on locomotive.works) with the data option, suddenly images which have appeared correctly, are not appearing correctly anymore. The changes pushed only affected content types, not the pages showing the faulty behavior. In contrast to working image links, the links of the missing images don't contain any file endings (.png, .jpg or similar), have this weird ´´_old_´´ param on the path and include some query strings: ´´´ .../sites/5720d0ca1a3dcd1/pages/5720d807a2f4220ca1a3dcd3/files/_old_?1463132645&editable-path=main--landingpage_coins--coin_left_image ´´´ The images are captured as follows: ´´´ {% capture coin_topright_url %}{% editable_file "coin_topright_image", hint: "Upload a coin image for the top right coin." %}{% endeditable_file %}{% endcapture %} ´´´ Any idea about what causes this issue and how to fix this?
Posted by Tobias Geisler 4 years ago
I've been running into the "can't be blank" issue for relationships when pushing data to the engine a lot lately. This happens for relationships with _required:true_. So am I right in the assumption, that required relationships still haven't been implemented? Or how would I make them work?
Posted by Tobias Geisler 4 years ago
Hi I put my Iframe to have inside another web my code is the next: <div class="container"> <iframe name=miframeflotante src="http://www.birs.ca" width=1100 height=1100 frameborder="0" scrolling=yes marginwidth=2 marginheight=4 align=left>Tu navegador no soporta frames!!</iframe> </div> But: I can't see this in my web https://station.locomotive.works/_app/cmo/preview/birs Best, Miguel. Pd: Locomotive Rules!
Posted by miguel 4 years ago
I'm quite new to using Locomotive and so far it is great. But now that I'm considering adding some basic logic to my app like I would do normally with a Rails controller, things start to get confusing. Am I supposed to directly modify the engine for that purpose ? If so I think it's really not ideal... For example, I want to add a contact form, I've seen there is a tutorial on this in the docs but it doesn't say anything about the POST side of it. I want to send an email when a message is sent through the contact form and I really have no idea how I should do this with Locomotive. Also I'd like to use Locomotive for a future project that will require a lot of custom logic and I'm afraid it won't fit. I hoped to use a Rails CMS so that I can develop easily with Rails and at the same time have a nice CMS. Is this realistic with Locomotive ?
Posted by Geoffrey Hug 4 years ago
Hi I have a trouble in when deploy my site in station.locomotive.works locally I see my logo great, but in the station looks broken. <a class="navbar-collapse collapse" href="{% path_to home %}"> <img src="/samples/cmo.png" width="80" height="50"> </a> How can fix this? Regards, miguel.
Posted by miguel 4 years ago
I have known that specific resources such as pages can be pushed to remote, but what can I do if I just wanna push the pages only changed on local not all the pages? Does it exist a design or implementation consideration for wagon that only supports push the specific types of resource?
Posted by vincent 4 years ago
Resource invalid: source You are not allowed to upload "pdf" files, allowed types: jpg, jpeg, gif, png, css, js, swf, flv, eot, svg, svgz, ttf, woff, woff2, otf, ico, htc, map, html, cur can't be blank https://station.locomotive.works/_app/cmobirs/preview I can't see the format css, js,etc and my photos dont see. pd. what is the file name for use coffescript ej(myexample.js) Sorry I'm new
Posted by miguel 4 years ago
How can I remove slug name from URL? I have URL with parent page: host_url/home/index favorite How can I remove slug name from URL? I have URL with parent page: host_url/home/index but I need this to be as: host_url/index #without parent slug name
Posted by vijay 4 years ago
Hi there, I've spent a tremendous amount of time trying to solve this: Before I upgraded to v3 I've been adding images as editable_files with a default value as mentioned in http://doc.locomotivecms.com/references/api/tags/editable-file Now, after the upgrade, everything works fine on wagon, but not on the engine (e.g. locomotive.works). I've tried every possible combination of capture and editable_file I could think of and keep missing my default value (which is not something I want to give up!). Old version: > {% capture coin_topright_url %}{% editable_file "coin_topright_image", hint: "Upload a coin image for the top right coin." %}{% endeditable_file %}{% endcapture %} with > src=" {% if coin_topright_url != '' %}{{ coin_topright_url }}{% else %}{{ 'coins/student.png' | theme_image_url }}{% endif %}" Things I've tried (among many others): > src="{{ coin_topright_url | default: '/coins/student.png' | theme_image_url }}" > {% capture coin_topright_ur %}{{ coin_topright_ur | strip_html }}{% endcapture %} > > src="{{ page.editable_elements.main.landingpage_coins.coin_right_image }}" > src="{% if page.editable_elements.main.landingpage_coins.coin_right_image != '' %}{{ page.editable_elements.main.landingpage_coins.coin_right_image }}{% else %}{{ 'coins/investor.png' | theme_image_url }}{% endif %}"
Posted by Diego Mueller 4 years ago
Hi! I think I found another bug on engine-side. I have many "events" which are grouped by "country" field. - country: label: Country type: select required: true hint: Explanatory text displayed in the back office localized: false select_options: ['HUN', 'IND'] I have two locales: 'en' (default) and 'hu'. If I switch to 'hu', the scoped list items are empty: {% with_scope country: 'HUN' %} {% for event in contents.events %} ... {% endfor %} {% endwith_scope %} Everything works correctly (scoped events are displayed on both locales) in wagon project. If I remove the scope, it will work on engine-side too. (and all of the "events" will be listed) Regards, Zsolt (PS: If you would like to see the full example I will share my code.)
Posted by Zsolt Vad 4 years ago
Hello everybody, I created a local application and when I want to start his return me the following: Your website is served now . Browse http://0.0.0.0:3333 No such file or directory @ rb_sysopen - /home/samba/myApp/log/server.log I do not know why its return me this error. Could someone help me ? Thank you :)
Posted by sam dia 4 years ago
when i try and push to my locomotive site i get this error .. "Deploying... Resource invalid: local_path is already taken" how do i go about diagnosing the cause? >bundle exec wagon version 2.0.1 ************************ answering my own question if i use the command > bundle exec wagon deploy production -v the -v causes it to be verbose, which in turn tells me spaces arent workign in a file name.
Posted by Joe Lovick 4 years ago