Help - Search - Members - Calendar
Full Version: Folder Names Use Underscores Instead Of Hyphens
Movable Type Community Forum > Using Movable Type > Entries and Archives
cherdt
I have created folder names that have spaces in them. Movable Type creates a directory for the folder on the filesystem using hyphens in place of the spaces, but on the Manage--Folders page it displays the path with underscores instead.

The output on the page also incorrectly links to the underscore version for the folder itself, but links to pages within the folder properly.

The page archive mapping is set to "folder-path/page-basename.html".

Here is a demo site that exhibits the issue described (see the "cogs and sprokets" folder):
http://osric.org/demo/

I am using both MT 4.21 and MT 4.23 on separate installations and am seeing this issue both places. I'm sure it's a simple fix, but I just don't know where to fix it. Thanks!
cherdt
I didn't fix the underscore issue, but I created an admittedly ridiculous workaround.

Old link:
CODE
<a href="<$mt:BlogURL$><$mt:FolderPath$>/"><$mt:FolderLabel$></a>


New link:
CODE
<mt:pages>
   <mt:if tag="PageBasename" eq="index">
      <a href="<$mt:PagePermalink$>"><$mt:FolderLabel$></a>    
   </mt:if>
</mt:pages>


I'd prefer to avoid this, but I have not yet identified how to specify that mt:FolderPath should use underscores.
cherdt
This works!
CODE
<mt:FolderPath separator="-">

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.