Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: multiple select preference saving?
Technicalities apart, we have to decide whether an empty ''
item can be part of an options list: 'apple,,banana'
? I would say no, otherwise what is ''
itself: an empty list or a list with one empty element? In many places txp already uses do_list_unique()
function that removes empty elements by default, so I would adhere to this behaviour.
Offline
Re: multiple select preference saving?
etc wrote #298915:
Technicalities apart, we have to decide whether an empty
''
item can be part of an options list:'apple,,banana'
? I would say no…
I agree, I can’t really imagine how an empty value would be useful but others may have an other opinion…?
Offline
Offline
Offline
Re: multiple select preference saving?
NicolasGraph wrote #298936:
That could be useful; we now have a great prefs package.
It’s getting better, I agree. Don’t rely on this new function too much right now though, as we’ll probably refactor the parameters later today.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: multiple select preference saving?
Offline
Re: multiple select preference saving?
Bloke wrote #298943:
Don’t rely on this new function too much right now though, as we’ll probably refactor the parameters later today.
We can even postpone core handlers to cf era, integrating into 4.6 only array-to-list prefs saves to let plugins use their owns.
Offline