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!
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 5 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 5 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 5 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 5 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 5 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 5 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 5 years ago
hi, I am triying to render a custom content type called posts in the index page, I choose HAML so I 'm getting this error: undefined local variable or method `contents' for # My code to render is: %ul - contents.posts.each do |post| %li = post.title regards
Posted by yohan morales 5 years ago
Hello! I have companies (~300) and categories (~100) in my project and they are in a N:M relationship. Everything works perfectly in Wagon project, but after I synced the data to Engine project the relationship won't work. https://dl.dropboxusercontent.com/u/16954780/Locomotive/n_m_relation_seed.yml (All the other content entries are synced correctly as well as 1:1, 1:N relationships.) Many thanks for any answers! Zsolt
Posted by Zsolt Vad 5 years ago
I'm trying to get the next/previous siblings of a content entry. I have 6 content entries and for each `content_entry.next` and `content_entry.previous` return the `first` and `last` entries (except on the first or last entry where `previous` or `next` returns nil respectively). Any advice?
Posted by Harry Blackett 5 years ago
I have an issue where I can deploy my site and it works perfectly in production, but on syncing the site locally I get the following error: `Malformed YAML in this file /.../Sites/Wagon/.../data/years.yml, error: undefined method 'to_sym' for 2014:Fixnum` The data/years.yml file looks like this: ``` - 2014: _slug: '2014' name: 2014 projects: - residency-works ```
Posted by Harry Blackett 5 years ago
I'm not sure if these questions are read but my love for the CMS part of LocomotiveCMS is being dulled by the obscurity and obtuseness of the Wagon deploy process. Current issue is that unless a file is physically edited it appears to be assumed to be the same. If I drop a new file that has the same name as a previous one it is ignored(skipped). Obviously if it is an image file or similar this becomes problematic. I am trying to force all assets to be redeployed to overwrite the existing ones to get everything in sync. No matter what I have tried ( even deleting all the deployed assets ) every time I run deploy to local engine it skips all the ThemeAssets but appears to push everything else. I suspect some caching issue or failure to reload the current assets or similar may be to blame. Anyway: I worked my way to the file push_theme_assets_command.rb and this appears to be where it is checked. and commenting out this line 26 gets me a bit further. raise SkipPersistingException.new if same?(decorated_entity, _entity) To get round this I commented it out and that gets me a bit further. Perhaps a -f flag on the deploy command could be used to force all assets to be replaced?
Posted by Colin 5 years ago
I have a 'Categories' content type populated with pluralized category names ('movies', 'games', 'videos', etc.). Is it possible to singularize a category name in certain places in the Liquid template? Or is it considered better practice to have a separate field in categories.yml for a singular name?
Posted by Harry Blackett 5 years ago
I am getting this "getaddrinfo: Name or service not known". I think that it is something to do with S3 but I can't tell. If I drag a file onto upload it looks like it is doing something but the the "drop" image shakes which I assume means failure. The S3 bucket works with the same credentials in my Transmit FTP app. Struggling to diagnose this. Regards Colin McGowan Seahorse::Client::NetworkingError in Locomotive::CurrentSiteController#edit getaddrinfo: Name or service not known Extracted source (around line #879): 877 878 879 880 881 882 D "opening connection to #{conn_address}:#{conn_port}..." s = Timeout.timeout(@open_timeout, Net::OpenTimeout) { TCPSocket.open(conn_address, conn_port, @local_host, @local_port) } s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) D "opened" Rails.root: /app Application Trace | Framework Trace | Full Trace vendor/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:879:in `initialize' vendor/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:879:in `open' vendor/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:879:in `block in connect' vendor/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout' vendor/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:99:in `call' vendor/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:99:in `timeout' vendor/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:878:in `connect' vendor/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:863:in `do_start' vendor/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:858:in `start'
Posted by Colin 5 years ago