문제

It doesn't look like there's much information on this out there. I'm having trouble creating a MIGX template variable in ModX Revolution that includes a radio button array (if one is selected, then the others aren't). Here's what I got so far:

[{"caption":"Info", "fields": [
  {"field":"name","caption":"Name"},
  {"field":"description","caption":"Description", "inputTVtype":"richtext"},
  {"field":"price","caption":"Price"},
  {"field":"ticket_status","caption":"Ticket Status","inputTVtype":"radio","inputOptionValues":"On Sale==onsale||Off Sale==offsale||Sold Out==soldout"}
]}
]

So the end result should look like:

Name:
Description:(text editor)
Price:
Ticket Status:
radio button for On Sale
radio button for Off Sale
radio button for Sold Out
(only one should be able to be selected at a time)

Is this possible? How?

Thanks

도움이 되었습니까?

해결책

For ticket_status use this "inputTVtype":"option" instead "inputTVtype":"radio".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top