Welcome To Snipplr
Everyone's Recent Snippets Tagged drupal
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
It's not immediately clear from the `context_set()` function how to trigger a context to be "active" using code. Do it like this:
0
729
posted 13 years ago by jonathanpglick
This override function for the default Drupal.toggleFieldset function adds code that looks for instances of TinyMCE inside the fieldset and triggers the autoresize on them when the fieldset is opened. Otherwise TinyMCE renders with a weird height.
0
709
posted 13 years ago by jonathanpglick
Use this to pull a list of items based on the nid of the 'parent' node.... so you can show fields added to that node, on the child. Handy.
Make nid argument..... use custom php arg code below to feed the argument the nid of the parent.
Remember...
0
589
posted 13 years ago by janlodey
Use this on a Term ID argument - enter the below as provide default agrument - php Code
remember to change the vid to your vocabulary
0
609
posted 13 years ago by janlodey