In regard to the Checkbox. Works great, but allows the user to check both. So... I changed to Radio Button. Only problem here is that the user MUST select one or the other even though I have left YES in the field for "Allow Blank"
Perhaps I need to modify the Input Option Values to include a show none option.
Maybe : show slider==[[$sliderChunk]]||show image==[[$singleImageChunk]]||show none==[[]]
Input Options
Input Type: Radio Button
Input Option Values: show slider==[[$sliderChunk]]||show image==[[$singleImageChunk]]
Default Value: (left empty)
Allow Blank: YES
Columns: 1
Output Options
Output Type: Default
I inserted this into my Input Type and it seemed to work. I am able to select show none on the resource and no code gets generated. I don't know whether ==[[]] is correct or not, but it was what came to mind for something that would be empty.
show slider==[[$sliderChunk]]||show image==[[$singleImageChunk]]||show none==[[]]
Its better to create a new thread for each different issue!
To get the description-part, only if not empty:
<li>
<img src="[[+image]]" alt="[[+description:htmlentities]]" />
[[+description:!empty=`<div class="orbit-caption">[[+description]]</div>`]]
</li>
your input-options should look like that:
show slider==[[$sliderChunk]]||show image==[[$singleImageChunk]]||show none==
your slider chunk should have this code:
<ul class="class="dh_orbit" data-orbit data-options="timer_speed:4000; slide_number:false;"">
[[getImageList? &tvname=`deserthills.images` &tpl=`deserthills.images.gallery.tpl`]]
</ul>
But I have so many issues:) My apologies for unloading.
I'm reading DOCs on MIGx back-end usage now trying to get a better understanding.
show none== and !empty= are both very helpful. Thank you.
To get the url to resources working, and you have a resource-id in your link-field, try this:
<li>
[[+image-link-path:isnot=``:then=`
<a href=`[[~[[+image-link-path]]]]`><img src="[[+image]]" alt="[[+description:htmlentities]]" /></a>
`:else=`
<img src="[[+image]]" alt="[[+description:htmlentities]]" />
`]]
[[+description:!empty=`<div class="orbit-caption">[[+description]]</div>`]]
</li>
yikes. something went south after adding: [[+description:!empty=`<div class="orbit-caption">[[+description]]</div>`]] Display contains code referring to array this or that.
Adding in the ul info you provide remedied the situation. Thank you for helping out.
Now I need to do some more reading to better understand it all. I think maybe I need to add an item to my MIGx form for the Orbit so that a user has the ability to omit a caption/description for a photo, but still insert an alt tag. At the moment, with my current configuration it appears as though the photo caption and the alt tag are one and the same.
I am humbled and very appreciative of your expertise and helpfulness.