Hello Guys,
I am using OctoberCMS and using one of its awesome plugins called as "Builder" http://octobercms.com/plugin/rainlab-builder and so far so good.
But i m stuck at one stage and confused how to achive this. This is my scenario below.
I have created one new field called as "status" in my one of the plugins in which i have key values like (0=>Inactive, 1=>Active) .. this works fine as i am able to insert or update values based on my status selection..
But the thing is, when i go to listing page, i have selected a "status" field but its showing me values 0 or 1 instead of Active or Inactive.
How can i show Active or Inactive instead of 0 and 1 using builder plugin or any other way.. I need to be able to search and sort as well ..
Can anyone guide me for the same ?
Thanks
We plan on adding a list column type that can handle this, similar to the way a form dropdown field works. Prototype code:
status:
type: array
This will look up the attribute via an options method and grab the label from the current value.
ok, eventually i found this solution http://stackoverflow.com/questions/40799476/show-dropdown-value-in-listing-search-instead-of-dropdown-key-using-builder-plug . Not sure whether this is an ideal soultion, howver, i got what i wanted doing this.
Glad to hear it! That solution is a good alternative / workaround for sure.
Thank you for help and support!!! Highly appreciated.
This has already PR here: https://github.com/octobercms/october/pull/4377
@Samuell1 Yes, and the PR is ready to be integrated too considering that I鈥檝e already already tested it out. Waiting for it to be tested by a maintainer so that it gets approved.
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling.
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue.
If this issue is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.
Most helpful comment
ok, eventually i found this solution http://stackoverflow.com/questions/40799476/show-dropdown-value-in-listing-search-instead-of-dropdown-key-using-builder-plug . Not sure whether this is an ideal soultion, howver, i got what i wanted doing this.