locomotivecms

Locomotive CMS: Dynamically Target content_types with Liquid Variable

守給你的承諾、 提交于 2020-12-15 07:15:50
问题 I'm building a custom navigation snippet in Locomotive CMS and I want content_type entries to be listed in the navigation along with pages. Specifically (and obviously) I only want entries listed if the content_type has a content_type_template set up. My plan was to set a handle (refereneced here but ultimately missing from the documentation) on the content_type_template page and then run the following logic when iterating through pages: {% assign myContentType = loopPage.handle %} {% for

Locomotive CMS: Dynamically Target content_types with Liquid Variable

允我心安 提交于 2020-12-15 07:15:47
问题 I'm building a custom navigation snippet in Locomotive CMS and I want content_type entries to be listed in the navigation along with pages. Specifically (and obviously) I only want entries listed if the content_type has a content_type_template set up. My plan was to set a handle (refereneced here but ultimately missing from the documentation) on the content_type_template page and then run the following logic when iterating through pages: {% assign myContentType = loopPage.handle %} {% for

Failing to install Locomotive CMS at bundle exec

旧城冷巷雨未停 提交于 2019-12-22 11:27:56
问题 I'm trying to install LocomotiveCMS and I'm trying to follow this guide: http://doc.locomotivecms.com/guides/get-started/install-engine. I get up to the part where I have to enter in: bundle exec rails g locomotive:install Which then just outputs the rails usage command: MacBook-Pro:myapp chris$ bundle exec rails g locomotive:install Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /Users/chris/.rvm/rubies/ruby-2.0.0-p195/bin

Locomotivecms Assets in Production

烈酒焚心 提交于 2019-12-21 23:30:27
问题 I have asked this question in the locomotivecms google groups, but haven't gotten any useful response yet. So, trying out here. I have a feeling the issue is not just a rails issue but has something to do with how the locomotivecms engine is implemented. I installed the locomotivecms app as per the instructions here - http://doc.locomotivecms.com/guides/get-started/install-engine The app runs fine in development mode. I then precompiled the assets and started it in production mode ( bundle

Failing to install Locomotive CMS at bundle exec

那年仲夏 提交于 2019-12-06 03:38:01
I'm trying to install LocomotiveCMS and I'm trying to follow this guide: http://doc.locomotivecms.com/guides/get-started/install-engine . I get up to the part where I have to enter in: bundle exec rails g locomotive:install Which then just outputs the rails usage command: MacBook-Pro:myapp chris$ bundle exec rails g locomotive:install Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /Users/chris/.rvm/rubies/ruby-2.0.0-p195/bin/ruby -b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL) -m, [-

Locomotivecms Assets in Production

无人久伴 提交于 2019-12-04 20:20:14
I have asked this question in the locomotivecms google groups, but haven't gotten any useful response yet. So, trying out here. I have a feeling the issue is not just a rails issue but has something to do with how the locomotivecms engine is implemented. I installed the locomotivecms app as per the instructions here - http://doc.locomotivecms.com/guides/get-started/install-engine The app runs fine in development mode. I then precompiled the assets and started it in production mode ( bundle exec unicorn_rails -E production ). Now when I open the app in the browser, the stylesheets are not