Documentation

Best Practices for Sharing Common Code Among Multiple Websites in Dollie Cloud

Last Updated: November 14, 2024 3:30 PM

When managing multiple websites on Dollie Cloud, ensuring consistency and efficiency in updates can be a challenge. A strategic approach to this is using custom plugins and themes to house common code. This method streamlines the process of distributing changes across various sites. Let’s explore how this can be effectively implemented.

The Advantage of Custom Plugins and Themes

Using custom plugins and themes for common code offers significant benefits:

  • Consistency: Ensures uniform functionality and design across all your sites.
  • Efficiency: Simplifies the update process – update once, and all sites with the plugin or theme receive the changes.
  • Flexibility: Allows for easy customization and scalability as your needs evolve.

Implementing Custom Plugins and Themes

  1. Identify Common Elements: Pinpoint functionalities and design elements that are shared across multiple websites.
  2. Develop Custom Solutions: Create custom plugins or themes that encapsulate these common elements.
  3. Deploy Across Sites: Install these custom plugins or themes on your blueprint so that they will be included in any subsequently deployed websites.

Updating Websites with Custom Solutions

When a blueprint is updated:

  1. Update Custom Plugins/Themes: Instead of updating the each individual website simply update the relevant custom plugin or theme.
  2. Automatic Sync: Use the update manager to ensure your websites have the latest version of your custom plugin or theme.

Conclusion

Incorporating custom plugins and themes into your Dollie Cloud workflow is a smart strategy to manage code efficiently across multiple websites. Harness the power of custom plugins and themes, and take your multi-site management to the next level with Dollie Cloud.