Discussions
block_display: tree not working
I tried to implement a menu section as suggested [here](https://doc.locomotivecms.com/discuss/603f8aa0a0b7aa004f7bb65a).
I'm using the attribute `blocks_display: tree` for the section, but it does not seem to work. The list of blocks in the editor UI is still linear and does not look like a tree. I can't even access any of the blocks I created inside my liquid template using `section.blocks_as_tree`. `section.blocks` seems to work.
Can somebody give me an example of a working section using `blocks_display: tree` ? Or maybe i understood something wrong ?
Thanks !
Posted by Grégoire Colson about 3 years ago
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...
Posted by Grégoire Colson about 3 years ago
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
Posted by Grégoire Colson about 3 years ago
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
Posted by Grégoire Colson about 3 years ago
List pages in menu vs sitemap.xml
Since v3 or v4 sitemap.xml is populated by pages which are tagged as "listed". In previous version we used to use this attribute to know if the page should be listed in the menu or not.
But now we would like to send to sitemap all pages and keep using "listed" for our menu.
Is it possible to add a new attribute to split these functionality from the dashboard ?
Posted by RB about 3 years ago
Forcing site-goers to login, question
Hello,
I'm an admin trying to debug something going on the locomotive CMS for a client. The issue I'm facing is that after clicking a link on the preview/mysite, it redirects to the login screen for https://station.locomotive.works/_app/sign_in
All of the pages' published status is set to "published" in the CMS so I'm really not sure why this behaviour is occuring.
I would like to take the site live (point the domain to locomotive), but I'm not sure if the behaviour would carry over, and if it does that would be a significant problem.
I would be happy to provide the exact website in an e-mail, but let me know if this behaviour is intended across your hosted sites, or might be case-specific to my site for some reason.
Thank you
Posted by Ryon over 3 years ago
Localize Section
Is it possible to localize a section without duplicating the template?
Posted by Patrick Hausa over 3 years ago
List of all accessable methods inside Liquid
I don't get what methods are accessable in the liquid. When I try for example to access the listed attribute of an page it seems to be empty.
Is there in any way a full list of all methods that I can call from the liquid code?
Posted by Patrick Hausa over 3 years ago
How to access Content Creator?
I have created a content type and when someone create a content entry I want to show his name without him to enter it. Is it possible to access the creator name in the liquid template?
Posted by Patrick Hausa over 3 years ago
MongoDB 3.4 EOL – Heroku
Hi,
I have a bunch of Locomotive instances running on Heroku. Unfortunately the MongoLab extension is being phased out by November (they recommend migrating by September) and Compose no longer supports MongoDB 3.4. I am having difficulties finding a cost-effective cloud solution for that version of MongoDB, given that it has been marked end of life since January of this year. Do you have any suggestions? Do you plan on updating Engine to support a more recent version of Mongo?
Thanks in advance
Posted by Simon Pinkas over 3 years ago