#1
Posted 26 December 2011 - 03:35 PM
today I started and finished work on my new module "TextboxList". It includes "FieldtypeTextboxList" and "InputtypeTextboxList". The main function is to create inputfields like Facebook when you have to insert the name of your friend (see the screenshot below).
It automatically creates a new "box" if you press "," or "enter". The result will be saved as a comma-separated list.
It is based on the TextboxList.js of Guillermo Rauch so I wouldn't use this for a commercial project right now. (But I wrote him a mail if he would allow this).
I changed the color schema so it looks like a native element.
I recommend to use it if you have something like a tag list (like: bla, christmas, bla, 2011, bla, ...).
You can download it here: https://github.com/N...oll/TextboxList
Have fun with it!
Greets,
Nico
#2
Posted 26 December 2011 - 04:12 PM
Anyway, based on the screenshot this looks like a very useful module.
#3
Posted 26 December 2011 - 04:12 PM
But I think I need both... Nevertheless a new version is uploaded
#4
Posted 26 December 2011 - 05:31 PM
#5
Posted 26 December 2011 - 05:33 PM
#6
Posted 26 December 2011 - 09:29 PM
#8
Posted 27 December 2011 - 04:05 AM
No, because I don't know what you want to autocomplete
(But maybe I'll add one later so that you can define some points in the "Details" page)
I was thinking that if you have a "Tags" field then it will search all Tags fields on all pages where the field is used and suggest tags as you type as it does on some of the examples on his site.
I know it's not particularly simple, but on a per-field basis where you would use this it would be neat to have the ability to tick a box to enable this as I can see places where it would be handy and places where you might not want it.
In the tags example it might stop someone adding a tag that's spelled slightly differently by accident or something like that. That's not normally a problem with one author, but could be in a multi-author environment.
#10
Posted 27 December 2011 - 07:32 AM
But I think I need both...
I am pretty sure you only need inputfield at the moment. Unless you need different db schema, or different way to save and retrieve data from db you will be fine with normal textfield. Please correct my Ryan if I am telling lies here
Not sure where you are heading with this, so it might be more convenient for you to keep it this way.
Anyways, looking forward to using this - looks like a very useful module. Not sure if I would like to use this with tags, since I like my page references there (they allow easy renaming, removing etc if ever needed).
#11
Posted 27 December 2011 - 12:11 PM
Nico, if you want to make it PW 2.2 ready, look at the thread on module dependencies in the announcements board. The fieldtype+inputfield is a good 'requires' and 'installs' dependency to use with the new options. Though all are optional.
#12
Posted 17 April 2012 - 04:10 AM
unfortunatelly I've got a problem with the module. If I chose "TextboxList" for a field, there's no way to switch back to normal "TextArea". Is this because of the own fieldtype of TextboxList? Is there a way to tell the module what compatible fields are?
In addition, I'd also try to make the InputField independent from the Fieldtype, but I'm not sure if I've got the skills yet...
But perhaps with a little support, I can do it. I think a checkbox, to turn TextboxList als input on an off should be enough, right?
#13
Posted 17 April 2012 - 09:01 AM
public function ___getCompatibleFieldtypes(Field $field) {
$fieldtypes = new Fieldtypes();
foreach($this->fuel('fieldtypes') as $fieldtype) {
if($fieldtype instanceof FieldtypeText) $fieldtypes->add($fieldtype);
}
return $fieldtypes;
}In addition, I'd also try to make the InputField independent from the Fieldtype, but I'm not sure if I've got the skills yet...
But perhaps with a little support, I can do it. I think a checkbox, to turn TextboxList als input on an off should be enough, right?
I can help you get started with this if you'd like. But need more detail.
#15
Posted 23 October 2012 - 11:00 AM
#17
Posted 09 April 2013 - 10:26 AM
Maybe a bit more details about what "crashed my site completly" means would be helpful ![]()
#18
Posted 09 April 2013 - 11:43 AM
Sorry, that was a bit lame wasn't it
Basically I got a WSOD.
I am really not sure what happened. I actually had the same issue with the thumbnail module. I just reinstalled yours and it is fine now. Seems like there is something weird on my server. All the other modules I have installed (either manually or through the modules manager) have been fine, but these two have required installing, deleting the folder, and then installing again to get them to work.
I'll let you know if I ever figure it out.
#19
Posted 09 April 2013 - 02:09 PM
Okay, glad to see it's working for you!
Also tagged with one or more of these keywords: Module
Community Support →
General Support →
MarkupTwitterFeed - where do I get the feed?Started by vayu, 13 Jun 2013 |
|
|
||
Community Support →
Modules/Plugins →
Audio MP3 Flash PlayerStarted by kixe, 13 Jun 2013 |
|
|
||
Community Support →
Modules/Plugins →
Simple Module for Session messagesStarted by Harmster, 09 Jun 2013 |
|
|
||
Module
Community Support →
Modules/Plugins →
ProcessEmailToPageStarted by Pete, 02 Jun 2013 |
|
|
||
Community Support →
Modules/Plugins →
Markup Load AtomStarted by teppo, 02 Jun 2013 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













