I have 13 sites in Joomla installed on one server.
One main site + 12 other sites.
Each site is a diffrent Joomla installation (based on the same template etc.)
Now I need to display news from Main Site in Other sites.
I'm thinking about:
Do this by RSS but I have a news slider and it doesn't support RSS chanles.
Make PHP script, when I inserting article on main site, insert article directly to databases of other 12 sites.
Make custom script to parse content from main site and load like news in other sites.
Do you have any ideas? How to do this?
If all of the website databases in question are on the same server I would directly query the relevant tables instead of going through all the trouble and overhead of setting up 12 different RSS feeds. This is assuming there is no other business need to implement those feeds to the outside world.
Check out the below link on how to connect to external databases using Joomla's core database classes. Depending on how you structure, you could write one module with connection, table and query options that can be installed on all websites. This allows you to accomplish your goals for all websites while only having to maintain one modules code package.
http://docs.joomla.org/Connecting_to_an_external_database
Related
I have recently discovered the multisite functionality of the wordpress core. really exciting! After digging around some more, I noticed that the database simply replicates 9 tables each time we create a new subdomain; but keeps them all in the same database.
The project I am in the planning stages for has a high amount of data information to be stored. The information that would be stored would be proprietary for each company that uses the site.
My question is this. How would I go about getting the entire database to replicate vs getting just a few tables to replicate? Basically, I am looking to create exact copies of the site over and over and over, but each site would have its own database. eventually, each copy of the site would be created once a customer has paid to use the service.
I have seen shardb and hyperdb, but they actually just add databases to store tables from multiple subdomains (at least thats how i interpretted it) to increase site speed.
Im not concerned about site speed as much as I am security and redundency.
Any ideas?
One of the features of MultiSite is that all the WP instances use a single WP installation, and a single database, just with different tables.
In answer to your question, a plugin you could use for this is Multi DB https://premium.wpmudev.org/project/multi-db/. Although this plugin is no longer officially supported by them anymore, it's still compatible with WP 4.5.3 according to the site.
As for redundancy, you could run 2 linux VM's for hosting the databases, one a primary, one a failover
If you've heard of EduBlogs (Like Wordpress.com, but for education), they host about 3 million blogs using Multisite. The guys behind it are WPMUDev (Linked to above) but here they have a thorough article for Multisite for a large number of sites and the potential Database issues you may encounter: https://premium.wpmudev.org/blog/ultimate-guide-multisite/
i have 3 self hosted wordpress sites in same machine but each one uses different url as explained below.
publication.mysite.com (wordpress site)
info.mysite.com (wordpress site)
flipbook.mysite.com (wordpress site)
now mysite.com is our primary company's website. it is a sharepoint site. because of this i cannot create mysite.com as our primary wordpress site.
i want to keep publication.mysite.com as our primary wordpress site and under this site bring the other 2 wordpress sites (multi-installation).
below is what in am trying to accomplish.
all 3 sites should consume it's own mysql database
all should be pointing to it's directory
all 3 sites url should not changed.
all posts, and other data in all 3 sites must be retained.
how could i do this? i tried to follow wordpress multisite installation documentation but i am stuck because i do not know how to setup as per my domain requirement.
another reason why i want to do this because of search. i have a global site search plugin from wpmudev. we need the ability to search from any one of our site to other 2 sites. for example: if i am searching for a 'productA'in one site, i need to display all post related to 'productA' from other 2 sites as well.
if there is any better way to perform global search like i explained, then i would like to hear about it
Thanks for help.
Your network-wide search functionality will be difficult to achieve if you must use separate databases for each site. It will require development chops that most people don't have. I respectfully suggest you reconsider that requirement.
Multisite search, in a single database, can be done with a plugin. For example. https://wordpress.org/plugins/multisite-global-search/
A WordPress multisite installation is designed to host sites with varying URLs. The migration isn't hard to do. You set up the target multisite system with three sites (blogs, WordPress's documentation calls them) in it. Rig the URLs for each of them.
This document explains the path to follow. https://codex.wordpress.org/Create_A_Network Multisite's administrative menu offers ways to configure the individual sites.
You then export the content from the individual sites and import them, one by one, into the target sites.
WordPress is decently well documented. Read this for an outline of the process of migrating to multisite. https://codex.wordpress.org/Migrating_Multiple_Blogs_into_WordPress_3.0_Multisite
I have installed WordPress at Azure, and my database is limited to four connections at maximum.
For blog and website pages, will all the new pages and content be pulled from the database every time the user will visit the website? Or is it HTML generated pages?
Any way to avoid database dependency that HTML pages are generated.
First your questions:
if you won't use cache, yes.
using wordpress cache plugins.
There are some things you can do:
Install a mysql in a Virtual Machine or upgrade your clear db (microsoft partner that offers mysql in azure) to a special version.
Use wordpress cache plugins, so it will create a in memory version of your posts posts and avoid a DB hit every time.
I'm developing a component which has the below structure. This system is developed under Multi-Tenant concept.
www.a.com, www.b.com, www.c.com are web sites which are in different domains but they run the same system. Each website have their own template and web pages in their local database. That's doable.
The system which is ran on these three sites are independent from the mentioned above(templates etc). www.a.com, www.b.com, www.c.com have a one large database where all the system data is maintained. Since the system is developed according to MVC what I want to do is have a single model(multiple models) where all the logic is contained. So if I make a single change in the model it affects the 3 sites.
According to my research, model should be maintained in the cloud. How can I implement such a requirement with MVC(Given I'm using Joomla as my CMS, MySQL as DBs) ? How can I have a single model for all the 3 sites ?
You can put more than one domain on the very same joomla installation without any changes, just add a plugin that's called virtualdomains which will allow you (for free) to choose template and - thus - menus, extensions and available pages for each domain;
Maintenance-wise this will be easy since all is in one box; but the users will see three sites with different content, layout and urls.
Just a couple of warnings:
1) make sure no scripts or css or other local resources are invoked with the url (http://www.a.com/template/xxx/js/jquery.autocomplete.js) vs /template/xxx/js/jquery.autocomplete.js, the first will work badly with cache.
2) handle any intricacies such as same-url on different domains with .htaccess; use a sh404 or similar component to manage the SEF urls.
This model looks quite complicated to me.
It depends what the main goal of this? Its just fetching all articles/users together? But why?
If you are dealing with problem of running one project on multiple Joomla installations I can advise you to put them on single Joomla and than using Virtual Domains (http://extensions.joomla.org/extensions/core-enhancements/multiple-sites/7557) for "copying" the website on other domains. Then you will one database for all your project.
One downside of this is that its mainly suitable for the projects with same component and article structure. Meaning for example local news divided by regions under different domains etc.
For the reference: the solution is really working fast on Joomla 2.5 latest update.
I need to create a mobile website for a Joomla website that is already live and running (has been for a while). I have no experience in using Joomla, so hence why I am asking you Guru's on here! I need to be able to display news and their categories, and possibly a few sub pages of cut down text from the full site.
I have found a few Joomla Extensions which hint at redirecting users to a mobile theme.
See:
Mobile Joomla!
Architect for Joomla
Do these include a mobile theme with them? Or do you have to manually create a separate theme for these extensions to identify and use when a mobile device or tablet is visiting the website? If so - can any of you direct me to the best possible route of implementing a "simple" mobile theme based on the current website? And note any common pitfalls + issues.
The website in question is here.
I look forward to your answers - thanks!
Due to the fact that a mobile version (if optimized for mobile devices) looks quite different to a normal website, I would write my own code which accesses the joomla database. For example, you create an own subdomain (no need to check "show mobile version" on every page) and there you can create a very lean and fast php/html5 version, for example. The php accesses the joomla database and gets all the news you need. Writing your own code has some advantages (in imho):
You can create a lean and dedicated version specific for your needs -> less code which handles generic things is needed
You can use some sophisticated gui-tools like iScroll to create a nice gui
I don't think that there's a great community for mobile joomla websites...