This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Video demo at http://screencast.com/t/WcjpL2lc. | |
| By default it uses a title field ending in [title] or [name] as the source field, and a field ending in [slug] as the destination. This matches the naming conventions for a framework like CakePHP, i.e. <?php echo $form->input('title'); ?> outputs an input with a name of data[Model][title]. | |
| You can override the default source and destination fields by setting document.slugField and document.titleField in JavaScript beforehand: | |
| <script> | |
| document.titleField = "input[name$='[heading]']"; | |
| document.slugField = "input[name$='[url_safe_heading]']"; | |
| </script> |
NewerOlder