Discussions

Ask a Question
ANSWERED

How wan i edit content types fields names

Hi, I just changed a field name of one of my content types from "location_name" to "name". I also changed every reference to "location_name" in the others files, and especially in data files, to avoid issues. Nevertheless when i try to deploy my site locally this error show up : ` Resource invalid: entries_custom_fields is invalid, #0: Label is already taken` The error seems to alert about the label attribute of the field, as if it was trying to create a new field instead of overwriting the existing one. If it's the case it makes sense that there is a conflict with the already existing field with the same attributes. But it seems really strange to me not to be able to edit fields in some files without breaking everything...

how to add anchor links in menu

My pages include multiple sections that i'd like to reference in the menu as sub-links (anchor links, with #) of the pages links. Example : I have a "Home" Page with 3 sections with ids "section-1", "section-2" and "section-3". In the menu I display the main "Home" link and when hovering this link i'd like to display 3 anchor links to go directly to the corresponding sections. Is it possible ? The "page" liquid drop doesn't seem to include the page content of sections, so I wonder how to achieve this. Thanks ! Grégoire

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
ANSWERED

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.
ANSWERED

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

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.
ANSWERED

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?