multipe sites with 1 instance of CMSMS ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
cubitus
Forum Members
Forum Members
Posts: 32
Joined: Mon Oct 09, 2006 3:42 pm
Location: Lausanne/CH

multipe sites with 1 instance of CMSMS ?

Post by cubitus »

Hello, we are now using CMSMS from more than one year and are very happy with this product. The site (about 50 pages) is used to maintain contact (news, agenda, article, google map integration, user listing, etc) between members of a sport community.

Now we would like to have a version of the site for mobile terminal (pda, phone, ...). This mobile version of our site will contain only a few pages (news, agenda, some info about us). It is just a "subset" of the main.

How can I configure CMSMS in order to have those two sites integrated with 1 instances of cmsms. We would like to have only only admin interface for managing the calendar, news and enduser data.

I see two solutions :

** Solution 1 **

*Having two roots in the page hierarchy. The first one will contain page for the "main" site, the second will contain page for the mobile site. Smarty code of the menu's manager need to be aware not to display page of the other site.
*Having the domains url redirecting user to the homepage of the site. i.e.

www.mydomain.com  ->  www.mydomain.com/index.php?page=home
mobile.mydomian.com -> www.mydomain.com/index.php?page=mobile-home

Question: How can I do this redirection ? How can I have the sitemap (generator of sitemap.xml file) working for those two sites, meaning having i.e. sitemap.xml for the main site and sitemap_mobile.xml for the other site ?


** Solution 2 **

*Having two instance of cmsms. The first will be installed with a table prefix (ie. cms_main_) as the second will be installed with an other prefix (cms_mobile_). Of course both cmsms will use the same database.
*Modifying the sql's code (module news, calendar, enduser module ) from the mobile site's installation so it access the table of the main site (hardcoding the table's name).
*Managing the news, calendar and enduser from the main site. Those information will be the same on the page of the main site and the mobile site.



That are my two solutions. I would prefear the Solution 1 as it will be easier to maintain the site.

Do you have any other solution ? I am sure one of you has already get this problem. How did you some that ?

Thanks for your answer, that would help us a lot.
cyberman

Re: multipe sites with 1 instance of CMSMS ?

Post by cyberman »

Maybe the solution is easier than you think.

For displaying you can use the special stylesheet media typ "handheld". And the template could be modified by Smarty depending on the user agent string ...
Post Reply

Return to “CMSMS Core”