Help - Search - Members - Calendar
Full Version: Basename Length Problem In Import
Movable Type Community Forum > Installing and Upgrading > Importing and Exporting
Luciano G.
Hello.

I'm upgrading to 4.23 pro. Since I want start from scratch with a brand new template from the Pro (mine was from a 2.6 version through 4.2), my strategy was this:

a) Export entries, comments, tbs
b) Create new Blog
c) Do some settings
d) Import

All went fine, except for one little/big problem: the entries don't have the same name anymore. This, although I set a Basename length of 35. But when I do the import, Movable Type decides to truncate all names to 15.

I.e. In my old blog, I had i.e. an entry with the name:
http://www.lucianogiustini.org/blog/archiv..._eni_e_di.shtml

In the new blog (now not visible), the new name is:
http://www.lucianogiustini.org/blog/archiv...osito-del.shtml

I worked with the templates in these years, and with settings in deep. So I tried to find where the problem could be, and found this .

In the actual blog, I have in Templates -> Individual Entry Archives :
<$MTArchiveDate format="%Y"$>/<$MTArchiveDate format="%m"$>/<$MTEntryTitle dirify="1" trim_to="35"$>.shtml

Now, I think that I could set it also in the fresh MT installation, in the Templates -> Entries -> Custom

But I'm not sure it will work.

Any hint will be very appreciated. Many thanks in advance!

Luciano

PRO IT Service
Ciao Luciano,

You should just use the same individual entry archive url pattern (in movable type 4 this template is called 'entry'):

CODE
<$MTArchiveDate format="%Y"$>/<$MTArchiveDate format="%m"$>/<$MTEntryTitle dirify="1" trim_to="35"$>.shtml


or adapt it to movable type 4 new tagging format

i.e.

CODE
<$mt:ArchiveDate format="%Y"$>/<$mt:ArchiveDate format="%m"$>/<$mt:EntryTitle dirify="1" trim_to="35"$>.shtml


Kind Regards,
Mihai Bocsaru
Luciano G.
QUOTE (PRO IT Service @ Jan 9 2009, 05:49 AM) *
Ciao Luciano,

You should just use the same individual entry archive url pattern (in movable type 4 this template is called 'entry'):

CODE
<$MTArchiveDate format="%Y"$>/<$MTArchiveDate format="%m"$>/<$MTEntryTitle dirify="1" trim_to="35"$>.shtml


Kind Regards,
Mihai Bocsaru


Many thanks Mihai, that's what I did and works !

Thanks.
Luciano
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-2009 Invision Power Services, Inc.