Jquery Table Auto Row

Another one mostly for myself, part of a larger picture I'm putting together. This small little javascript object will make it so any table you add a class of "auto-row" will have fun new behaviors. When any select, input, or textarea element in the last row changes, the row is duplicated and added right below. All digits in patterns "like" [##]" are automatically incremented for you before they are attached to the DOM. The row you were editing looses it's special behavior, and the newly inserted row is prepared to do the same.

Text Filter Skeleton

Having to search over text can take a while, this might help speed your work up a bit. The idea is that you pass any text you like through it, and it picks up the "tags" reads the contained settings for you, and handles the replacements. This assumes you're working in PHP, but regexs and logic work everywhere of course. The syntax for these "tags" looks like [tag] or [tag|setting=value|setting2=value].

Tags: 

Adding CCK Fields Through Modules

Original Credit to Drewish from http://drewish.com/node/118, and of course the CCK team for such a fantastic tool. I'm just adding it here for reference, and expanding a bit with the uninstall knowledge.

Tags: 

Collapsible Form Item Descriptions

emfluence™ needed to start including fairly lengthy descriptions on some of their fields today, without taking all the screen real estate or bothering the users that already knew the system. The answer everyone agreed would be best would be to allow the form items to have collapsible descriptions. I traced out a way to do this by overriding the form_item theme provided by the basic form.inc from Drupal. This could be done through your template file, or a module by overriding the theme function (I explained this in another fragment a couple weeks ago) in case you're running multiple themes.

Pages

Subscribe to Fragmented Thought RSS