-
☆ A M B ☆
- 24,524 Posts
I presume that your main content area is Rich Text; can you insert images into that text OK?
I've tried this, and cannot reproduce your problem. Images and links are inserted as expected.
Personally, I wouldn't do those blocks that way at all. I would use MIGx; the demo in its documentation fits your situation exactly.
http://rtfm.modx.com/display/ADDON/MIGX
-
☆ A M B ☆
- 24,524 Posts
It would help if we could see what your block-1 chunk looks like.
-
☆ A M B ☆
- 24,524 Posts
I'm not exactly sure what you are trying to accomplish with your chunks and TVs. Do you want a content block that consists of a title, an image, and a caption/description for the image? Or is the block-1-text going to contain additional images?
The purpose of the properties in the chunks is so that you can have different material in the same chunk. Instead of chunk-1, chunk-2, etc. you would only need one chunk. The placeholders in the chunk would accept the values of the properties you specify in the chunk tags.
<h2>[[+title]]</h2>
<img src="[[+img]]" alt="responsive">
<p>[[+text]]</p>
And your template would now look like
<div class="row">
[[$block? &img=[[*block-1-image]] &title=[[*block-1-title]] &text=[[*block-1-text]]]]
[[$block? &img=[[*block-2-image]] &title=[[*block-2-title]] &text=[[*block-2-text]]]]
[[$block? &img=[[*block-3-image]] &title=[[*block-3-title]] &text=[[*block-3-text]]]]
</div>
-
☆ A M B ☆
- 24,524 Posts
I still strongly recommend MIGx for this kind of thing. Take a look at my site; the blocks are done with MIGx.
http://sottwell.com
-
☆ A M B ☆
- 24,524 Posts
The thing is, you need three different chunks and nine different TVs, or one chunk and nine TVs using properties.
With MIGx, you need three TVs and a snippet, but the TVs are all edited in the one MIGx TV in your resource, so in effect you're only editing one TV. Each row of the MIGx TV has three fields, title, img, text. The "helper" image TV and Rich Text TV are used as fields in the MIGx TV - you don't need to specify a "helper" TV for the one-liner title, that comes with MIGx by default. With MIGx, you can create as many of these rows as you need, all in the same single TV. You can even set up the TV to have checkboxes so you can select which blocks you want. I use them for sidebar blocks, for JQuery carousels, or anything else where I want consistently formatted blocks of content.