Filemanager folder name change not reflected in modules

How to install and use Contao

Filemanager folder name change not reflected in modules

Postby ramjet » Fri Mar 05, 2010 1:10 am

It seems that when you change the name of a folder in the File Manager, this change is not picked up by any modules so the paths to any any file-tree selected files or folders are lost.
If you change the name back, they reappear...meaning no database updates on the original filename change were carried through to the module entries.

For instance a Flash Module drawing a swf from tl_files/site_files/myswf.swf wont draw from tl_files/ChangedFolderName/myswf.swf meaning you need to enter the module and reselect the source file.


I'm not sure if this is a bug/a request or too difficult to programme for.
Can someone verify this please with other versions and modules? (I'm using 2.8.1).
ramjet
User
 
Posts: 536
Joined: Sat Jun 20, 2009 12:24 pm

Re: Filemanager folder name change not reflected in modules

Postby Ben » Fri Mar 05, 2010 8:20 am

This is not a bug and is how TL has always worked. Modules and CE's are unaware of changes made to the file structure. So it is best not to change folder / file names. If this is necessary, you might want to update the path listings from a db admin tool. I haven't checked, but hopefully it stores the actual path and not an encoded string to reference it.
User avatar
Ben
Contao team
 
Posts: 486
Joined: Wed Jun 10, 2009 7:45 pm
Location: Atlanta, Georgia

Re: Filemanager folder name change not reflected in modules

Postby ramjet » Fri Mar 05, 2010 10:28 am

Yeah, i think this would be difficult to programme, and probably only possible if Typolight was storing each folder as an id number (like pages). I'll have a read through Trac and see if this has been requested before.

But mainly i'll remember not to change a folder name again!
ramjet
User
 
Posts: 536
Joined: Sat Jun 20, 2009 12:24 pm

Re: Filemanager folder name change not reflected in modules

Postby ramjet » Fri Mar 05, 2010 10:39 am

OK it has been requested before, but is "unfeasable".
ramjet
User
 
Posts: 536
Joined: Sat Jun 20, 2009 12:24 pm


Return to Using Contao

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot]