Discussions
How do I customize the display of dynamically selected data in a Liquid template's settings?
I have section configuration as below. In `type: select` attributes options I want to get data from `content_type` **nav_items** instead of setting data static.
**related_service.liquid**
```
---
name: Related Services
icon: default
keep_icon: true
settings:
- label: "Navigation items (Click button for choose list services of mega menu)"
id: nav_items
type: content_type
blocks_label: Related Services
blocks:
- name: Related Services
type: service_related_detail
settings:
- label: Related server
id: related_services
type: select
options:
/// I want get list from model nav_items
required: true
default:
settings:
title: Related Services
presets:
- name: Related Services
category: Services Info Page
settings:
title: Related Services
blocks: []
---
```
Posted by Phuong Nguyen 12 months ago
I have a page with many sections, each section contains many blocks, and within each block, I want to have many child blocks. Can someone please support me?
I have a page with many sections, each section contains many blocks, and within each block, I want to have many child blocks. Can someone please support me?
```
---
title: Mobile dashboard
published: true
listed: false
# response_type: application/json
sections_dropzone_content:
# Manage more way to use abc section
- type: mobile_dashboard_abc_ways
settings:
show_section: true
section_title: More ways to use abc
blocks:
- type: mobile_dashboard_abc_ways_card
settings:
image_banner: ""
name: "Way
title: "This is way 1"
description: "This is way 1"
cta_name: ""
cta_url: ""
project_codes: 'code-001,code-002'
design_profile_codes: 'code-001,code-002'
steps: [
{title: 'test', description: 'des'}
]
features:[
{title: 'test'}
]
show_card: true
show_tag: true
---
{% extends 'layouts/mobile-dashboard' %}
{% block main %}
<div id="page__{{ page.slug }}">
{% sections_dropzone %}
</div>
{% endblock %}
```
In my sections
```Text Section Definition
---
name: Mobile dashboard
icon: default
settings:
- label: Title
id: section_title
type: text
- label: Show Section?
id: show_section
type: checkbox
default: true
blocks_label: List of abc ways cards
block_max_depth: 1
blocks:
- name: Sakani ways cards
type: mobile_dashboard_abc_ways_card
settings:
- label: Steps
id: steps
type: text
- label: Features
id: features
type: text
---
<p>This is management section for mobile dashboard</p>
```
I want Steps and Features I can input value is title and description for show value in navigation of admin cms.
Posted by Tony about 1 year ago
Separate section for each content_entry page
Hi, I'm building an ecommerce shop with Locomotive CMS. I want to add a gallery with a dynamic number of photos to each product. I've created a template page for my product entries and then added a gallery section to the template. I expected to able to edit the gallery on each product page separately, but the content is the same on all product pages.
Is it possible to build what I want with sections and a content entry template?
With best wishes to you.
Posted by Alex almost 2 years 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 almost 2 years ago
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 over 3 years ago