ZenphotoCMS Forum
How to change a Directory name with out deleting the files in the directory - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to change a Directory name with out deleting the files in the directory (/thread-9848.html)



How to change a Directory name with out deleting the files in the directory - jacgo - 2012-04-13

Hi all,

zenphoto help us to create SEO directory name.
but I would like to change our file and folder name and hope the directory name change.

Our site here:
http://1004.tw/site/illustration-/blot-/--_1334229529.jpg.php

hope to change to
http://1004.tw/site/illustration-/beauty/nicegirl.jpg.php

How to change a Directory name with out deleting the files in the directory

Is there any one know how to do it?

Thanks a lot!

Jacgo




How to change a Directory name with out deleting the files in the directory - acrylian - 2012-04-13

So you want to rename an album and an image? Use the tools on the backend on each album and image edit page.
http://www.zenphoto.org/screenshots/zenphoto-1.4.2-admin/album-edit.jpg.php
http://www.zenphoto.org/screenshots/zenphoto-1.4.2-admin/images-edit.jpg.php




How to change a Directory name with out deleting the files in the directory - jacgo - 2012-04-20

Hi acrylian

sorry for my late reply.

no, I would like to change the site path to other name.
when I rename album and image name. The site path doesn't change.

Is there any why to do it?

Thanks!

Jacgo
1004.tw




How to change a Directory name with out deleting the files in the directory - acrylian - 2012-04-20

So I am confused. The example you posted above was about albums and now you mean the site?
Example from above:
http://1004.tw/site/illustration-/blot-/--_1334229529.jpg.php
Zenphoto is installed in a folder named "site" apparently and the album is "Illustration" with the subalbum "blot" and an image named "--_1334229529.jpg"

hope to change to
http://1004.tw/site/illustration-/beauty/nicegirl.jpg.php
Here we have the same but the subalbum of "Illustration" is named "beauty" and the image named "nicegirl.jpg".

So again, rename the album and the image. And note that titles and names are two things.

If you want to remove the "site" (which your above example really doesn't tell) move Zenphoto to the root and re.run setup (or change the rewrite base in .htaccess manually).




How to change a Directory name with out deleting the files in the directory - jacgo - 2012-04-22

Hi acrylian

sorry for my bad english.

I hope to change the album name and the route /illustration-/blot-/--_1334229529.jpg.php also can be changed.

Hope you can understand my meaning.

Thanks for the quick reply.

Jacgo.




How to change a Directory name with out deleting the files in the directory - acrylian - 2012-04-22

Then you have to rename the parent album "illustration" and its sub album "blot" individually on each album page on the admin. Same for the image filename.

You can do that also on the filesystem directly but then you will loose all the data you have entered manually as Zenphoto being file system based will discover all as new albums and images.




How to change a Directory name with out deleting the files in the directory - jacgo - 2012-04-22

Is there any whay to change the route without loose data?

I hope when I change the album name on admin panel and the route also can be changed at same time.

Is it possible to do it?

Thanks!

Jacgo




How to change a Directory name with out deleting the files in the directory - acrylian - 2012-04-22

As I said use the backend tools, then you won't.

THe route consists of the folder names of an album. So if you change "illustration" the route of course changes to what ever you rename the folder. But you have to do that with all levels of sub albums you have.




How to change a Directory name with out deleting the files in the directory - jacgo - 2012-04-24

Thank you a lot!