dirify

Converts the input into a filename-friendly format. This strips accents from accented characters and changes spaces into underscores (or dashes, depending on parameter).

The dirify parameter can be either "1", "-" or "_". "1" is equivalent to "_".

Example:

    <$mt:EntryTitle dirify="-"$>

which would translate an entry titled "Cafe" into "cafe".

This page was last updated on 2007-08-13, 15:48.

1 Note

This filter will also accept a specific string to use as the separator. So, to "dashify" whatever you're modifying, for example, set dirify="-"

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.