Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input_properties not working for listbox TV #33

Open
DESIGNfromWITHIN opened this issue Sep 16, 2014 · 2 comments
Open

input_properties not working for listbox TV #33

DESIGNfromWITHIN opened this issue Sep 16, 2014 · 2 comments

Comments

@DESIGNfromWITHIN
Copy link

{
    "name": "home_cta_show",
    "caption": "Show Call To Action URL",
    "description": "Show the CTA button on this page?",
    "category": "CTA button",
    "rank": "2",
    "type": "listbox",
    "input_properties": "Yes==yes||No==no",
    "default_text": "yes",
    "template_access": ["Homepage"]

}

This is creating a TV with a empty Input Option Values field

@hugopeek
Copy link

@DESIGNfromWITHIN I don't know why, but I'm using "elements" instead of "input_properties" for that.. So this still works for me:

"elements": "Yes==yes||No==no",

@roryg
Copy link
Owner

roryg commented Sep 16, 2014

@hugopeek is correct you need to use the "elements" property to fill in the "Input Option Values" field. The weird naming comes from what the MODx developers chose as the column name for the TV table in the database. I plan on mapping these to names that make more sense in 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants