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?
Go to bottomPage: 1
TOPIC: Modifying Domains
#5279
Modifying Domains 14 Years, 3 Months ago Karma: 0
Hello

I have a component that handles virtual hosts at the site level. I wish to update config_multisites.php using 4.2.1.1.function updateSiteInfo( $site_id, $values)

Would I need to make two separate calls to update both $domains and $indexdomains ?

I assume I would need to pass an array with all values.

Thanks
Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5280
Re: Modifying Domains 14 Years, 3 Months ago Karma: 54
YES the values is an array.
If you modify the internal domain and indexdomain, you will also have to rebuild the master index (createMasterIndex).
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5284
Re:Modifying Domains 14 Years, 3 Months ago Karma: 0
Hello

Would one of these be the correct format of the array? Which one?

Code:

Values['domains'] = Array ( [0] => http://test2.com [1] => http://test1.com [2] => http://test.com [4] => http://slave.example.com )

Values['domains'] = Array ( [url] => Array ( [0] => http://test2.com [1] => http://test1.com [2] => http://test.com [4] => http://slave.example.com ) ) 


Thanks
Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/17 15:50 By DaveC.
The administrator has disabled public write access.
 
#5286
Re:Modifying Domains 14 Years, 3 Months ago Karma: 54
I think you can cross-check yourself with a debugger.
This is an array without any key.
So the solution is none of them or perhaps the first one.
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