Not a developer? Go to MovableType.com

Documentation

FolderLabel

The label of the folder in context.

Examples

In a Page archive template, list the folder label which the page is in:

<mt:PageFolder>
    <$mt:FolderLabel$>
</mt:PageFolder>

Note: Because folders don’t have archive templates, there is no <$mt:FolderArchiveLink$> because there is no guarantee that a page with the basename of index exists in the folder. Thus linking to the folder must be created manually using “<$mt:BlogURL$><$mt:FolderPath$>/”.

In order to create a link to the folder’s URL the href must be constructed using mt:BlogURL and mt:FolderPath:

<mt:PageFolder>
    <a href="<$mt:BlogURL$><$mt:FolderPath$>/"><$mt:FolderLabel$></a>
</mt:PageFolder>
Back

Leave a Comment