Discussions
Locomotive doesn't allow me to add noscript and object html to text field in backoffice
When I add tableau code with some noscript and object tags and save it, code just disapppear
Posted by Misha Shelestiuk 6 days ago
Backoffice remove noscript and object code from textfield
Hi, I have an issue in my locomotive app, I have a content type with text field, and I wanted to add table au code that will appear on my page, but when I post this code:
<div class='tableauPlaceholder' id='viz1677159285896' style='position: relative;margin-right: auto;margin-left: auto;'>
<noscript><a href='#'>
<img alt='UX ' src='https://public.tableau.com/static/images/Co/ComparisonTool_16659911503480/UX/1_rss.png' style='border: none' />
</a>
</noscript>
<object class='tableauViz' style='display:none;'>
<param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' />
<param name='embed_code_version' value='3' /> <param name='site_root' value='' />
<param name='name' value='ComparisonTool_16659911503480/UX' /><param name='tabs' value='no' />
<param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Co/ComparisonTool_16659911503480/UX/1.png' />
<param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' />
<param name='display_spinner' value='yes' />
<param name='display_overlay' value='yes' />
<param name='display_count' value='yes' />
<param name='language' value='es-ES' />
<param name='filter' value='publish=yes' />
</object>
</div>
I get this code when I save my object:
<div class='tableauPlaceholder' id='viz1677159285896' style='position: relative;margin-right: auto;margin-left: auto;'></div>
Posted by Misha Shelestiuk 6 days ago
wagon not installing on ubuntu
Hi,
I have ruby: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] and also imagemagick, bundler, rake installed still when I try to run `gem install locomotivecms_coal --pre` it fails with these errors
```ERROR: Error installing locomotivecms_wagon:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.7.0/gems/nio4r-2.5.8/ext/nio4r
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20230304-6677-1jq3ni4.rb extconf.rb
checking for unistd.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.7
--with-unistd-dir
--without-unistd-dir
--with-unistd-include
--without-unistd-include=${unistd-dir}/include
--with-unistd-lib
--without-unistd-lib=${unistd-dir}/lib
/usr/lib/ruby/2.7.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.7.0/mkmf.rb:613:in `try_cpp'
from /usr/lib/ruby/2.7.0/mkmf.rb:1124:in `block in have_header'
from /usr/lib/ruby/2.7.0/mkmf.rb:971:in `block in checking_for'
from /usr/lib/ruby/2.7.0/mkmf.rb:361:in `block (2 levels) in postpone'
from /usr/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/2.7.0/mkmf.rb:361:in `block in postpone'
from /usr/lib/ruby/2.7.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/2.7.0/mkmf.rb:357:in `postpone'
from /usr/lib/ruby/2.7.0/mkmf.rb:970:in `checking_for'
from /usr/lib/ruby/2.7.0/mkmf.rb:1123:in `have_header'
from extconf.rb:15:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/nio4r-2.5.8/mkmf.log
```
Posted by Umer MIB 18 days ago
Migrating locomotivehosting site
I'm trying to explore the possibility of migrating an old site from locomotivehosting to my own managed server. I've create a local wagon site, added the required fields to deploy.yml and tried to do 'wagon pull production', but I just get:
Locomotive::Coal::UnknownResourceError
I guess this is because the locomotivecms version is by now long outdated (local wagon version is 3.1.1). So what is the best way to proceed here? Any help much appreciated.
Posted by Daniel 23 days ago
Contractor reference
Hello - we're looking for a developer to help manage our existing Locomotive setup. Do you have any referrals for someone we can contract with on a hourly basis?
Posted by Jake Dold about 1 month ago
undefined method `to_sym' for nil:NilClass and Images giving internal server error
When syncing my content to local or to deploy to another environment (using wagon) I get the error undefined method `to_sym' for nil:NilClass and can't deploy but my current production env is working, although it's giving me the error on deploy and the uploaded images are throwing the internal server error
Posted by Diogo Sobreira about 1 month ago
Separate section for each content_entry page
Hi, I'm building e-comerce shop with locomotive. I want to add galery with dinamyc number of photos to each product. I add a template page for my product entry and then put section galery to entry template. I expected to edit galery on each product page separate, but content similar in all pages. Is any possibility to build what i want with section and content entry template? With best wishes to you.
Posted by Alex 3 months ago
Search by _id field
Hello again. I have a touble with "scope_with" tag. I need to filter scope with _id.in: array of ids. Looks like a normal case, but in mongodb logs i see {"_id" => { "$in" => false} } and all crashes. But in other case if i filter entirs by id.in: array of ids query looks good but i have no results from. Are there any prerequisites for such behavior or it's kind of bug?
Posted by Igor 3 months ago
Single content entry in edit section control
Hello, i would like to implement section view based on some content entries that need to be selected from edit section panel. In documentation described definition of section with content_type field, but it only create a link to content_type page. Is any way to select one entry from box, or i need to implement this functionality by myself ? Thanks for your answer.
Posted by Igor 3 months ago
Add "Code Promo" option in the shopping cart
Hi ! My company hired someone to develop a site using Locomotive 3 years ago, and today the shop looks not up-to-date at all. I wonder if it's possible to add options like a "code promo" champ for clients to add when checking out their cart?
Thx
Posted by Zara 7 months ago