English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

save sub-site images into different image folders
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: save sub-site images into different image folders
#2579
save sub-site images into different image folders 14 Years, 6 Months ago Karma: 0
It might be asked before.

I am working on component sobi2 and multisites.

I have a master site and two slave sites.

I hope the image folder for each slave site can be saved under its own slave-site layout. (Current images are all saved to the master site image folder)

the code sobi2 write the images to the folder is as follow:

$this->imagesLivePath = "{$config->liveSite}/images/com_sobi2/gallery";
$this->imagesAbsPath = sobi2Config::translatePath("images|com_sobi2|gallery", "root", false, null);

----------------------

$savePath = sobi2Config::translatePath("{$this->imagesAbsPath}|{$sobi2Id}|", null, false, null);


How can I make it happen? shall I change the code for the sobi2 or I can make some configuration change in mulitisite?


Thanks for your help.
bailey
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/11/18 04:14 By bailey.
The administrator has disabled public write access.
 
#2580
Re:save sub-site images into different image folders 14 Years, 6 Months ago Karma: 54
If you want that each slave site has its own images directory, this is possible.
See tutorial video CP-05 that show how to create the JMS templates rules for the replication
www.jms2win.com/tutorial#jms12x-CP-05

In very short:
You have to select a website to replicate
Enter the "new media folder" = images
Enter the "new image folder" = images/stories
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2597
Re:save sub-site images into different image folders 14 Years, 6 Months ago Karma: 0
Thanks for your reply.

I followed the instruction and have the new folder for slave site medias and images.

Which is : images and images/stories

However, after I tried to upload new images in the slave site. I found Images are still uploaded to the master site but the read directory changed have been changed to slave site.
bailey
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2598
Re:save sub-site images into different image folders 14 Years, 6 Months ago Karma: 54
If you have used a domain or a subdomain, you have to check your hosting server configuration to ensure that you have provided the "deployed directory".
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2816
Re:save sub-site images into different image folders 14 Years, 5 Months ago Karma: 0
Same question here.

I have a master site and some slave sites.

I want to have all the slave sites to have their own image folders to hold pics only for that slave. However, same time, I also want to have a central place such as the master site to have a image folder to hold the avatars for all the users, because the users are shared by all the slaves.

Also, please advise me on the "deployed directory" problem. I use Godaddy Linux server.

Thanks,
Ning
wangning
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2817
Re:save sub-site images into different image folders 14 Years, 5 Months ago Karma: 54
Dear Ning,
it is more difficult to have both share and independent images folder.
You can either share everything or have a totally independe image folder.

If you want to have a totally independent images directory, you can find a sample in the tutorial video CP-05.
www.jms2win.com/tutorial#jms12x-CP-05

Create an independent directory can be done when you replicate a website.
You can create a JMS template like in CP-05 and put
- domain = {site_url}/multisites/{site_id}
- New table prefix = {site_id}_
- Deploy directory = {site_dir}
- media folders = images
- images folders = images/stories

or you can go in "folders and files" where you select the action "copy" for the "images" folder.

If inside the specific images folder you want have sub-direcory like "common" or "shared" folder, you will need to create manually a Symbolic Link like JMS is doing with other directories. You will need a SSH prompt and use a unix command like "ln -s".
See the unix "man"ual to get more detail on this unix "ln -s" command.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla