modx - How to create ContentBlock with multiple text inputs? -


i'm using contentblocks modmore, , trying figure out how create new content block has input allows user enter title , source url. goal expose these fields can edited resource, in following image, second text field being red square indicator is.

enter image description here

this has been bugging me while, appreciate if can this.

first of all, can support contentblocks , other modmore extras via helpdesk (support@modmore.com) or our own forum (https://forum.modmore.com). don't monitor stackoverflow, luckily received alert question.

there's couple of options you're trying do.

1) add field setting "iframe" field. can contentblocks component under extras > contentblocks. right click field update it, , on settings tab, add text setting key/name of choice. go templates tab, , use [[+placeholder]] syntax insert value template.

depending on "expose field" option choose, field can show in modal window available when clicking settings icon on field, or directly on canvas red square indicator.

for more on option, see settings section in fields documentation.

2) more complex types of fields, can choose use repeater field. these bit more complicated setup, allow combine not different field settings, any supported input type in contentblocks, images or repeaters within repeaters.

while repeater meant multiple rows of content (sliders, feature blocks, etc), can set minimum , maximum number of rows on properties tab when editing field. set them both 1, , have better described group field.

more detailed information repeater can found in documentation.

hope helps. if continue struggle it, please in touch via our normal support channels. :)


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -