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?

modify multisites frontend view to ajax check aval
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: modify multisites frontend view to ajax check aval
#9723
modify multisites frontend view to ajax check aval 12 Years, 9 Months ago Karma: 0
Hi -

i know multisites doesn't use database tables... is there a way we can check the availability of the slave site using ajax before the user hit the submit button?
chetanmadaan
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9734
Re: modify multisites frontend view to ajax check aval 12 Years, 9 Months ago Karma: 54
Inside JMS, there is an API that allow collect all the list of slave site like you would do it with a select * from table.

So it is possible to create an ajax to "ping" the server to verify if a name already exists. The Site ID correspond to a directory name or a set of directory name.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9739
Re: modify multisites frontend view to ajax check aval 12 Years, 9 Months ago Karma: 0
Quick question -

how and where do i access the API?
is there a documentation avaliable?
chetanmadaan
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9744
Re: modify multisites frontend view to ajax check aval 12 Years, 9 Months ago Karma: 54
NO, this is not documented.
This is inside the JMS core.
This is computed by the model that manage the site.

If you want to develop an ajax, you need to create a PHP code (server side) that will received the request from the javascript and verify the site ID.

This is something specific to develop and use the low level api of JMS.
In particular the manage model but becarefull that the internal structure is no considered as static as this is not a public API.

The only thing that is public and present in the user manual is the "utility" api that allow get info on a website or update an existing website.
So I suppose that you could use this "utility" to check if a slave site already exists.

See chapter 4.2
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9745
Re: modify multisites frontend view to ajax check aval 12 Years, 9 Months ago Karma: 0
Thank you Sir!
chetanmadaan
Senior Boarder
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9751
Re: modify multisites frontend view to ajax check aval 12 Years, 8 Months ago Karma: 0
Edwin -

one more questions sir... i know the list of sites is save in a php file in array... could you tell me where??? i remember like around an year ago when i used the software... it was in administrator/components/com_multisites/somefile.php... but i can't find it now.

Thanks
Chetan
raholt
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla